Symbol: gethostname
bin/hostname/hostname.c
80
if (gethostname(hostname, (int)sizeof(hostname)))
bin/sh/parser.c
2274
gethostname(&ps[i], PROMPTLEN - i - 1);
crypto/heimdal/appl/ftp/ftp/ruserpass.c
79
if (gethostname (hostname_str, sz) < 0) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
398
gethostname(hostname, sizeof(hostname));
crypto/heimdal/appl/gssmask/gssmask.c
1098
gethostname(hostname, sizeof(hostname));
crypto/heimdal/appl/kf/kfd.c
149
if(gethostname (hostname, sizeof(hostname)) < 0)
crypto/heimdal/appl/login/login_access.c
169
gethostname(name, sizeof(name));
crypto/heimdal/appl/login/utmp_login.c
54
gethostname (local_hostname, sizeof(local_hostname));
crypto/heimdal/appl/rsh/login_access.c
169
gethostname(name, sizeof(name));
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
160
gethostname(lhostname, sizeof(lhostname));
crypto/heimdal/appl/telnet/libtelnet/spx.c
175
gethostname(lhostname, sizeof(lhostname));
crypto/heimdal/appl/telnet/libtelnet/spx.c
328
gethostname(lhostname, sizeof(lhostname));
crypto/heimdal/appl/telnet/telnet/commands.c
1567
gethostname(hbuf, 256);
crypto/heimdal/appl/telnet/telnet/telnet.c
2048
gethostname(local_host, sizeof(local_host));
crypto/heimdal/appl/telnet/telnetd/telnetd.c
733
gethostname(host_name, sizeof (host_name));
crypto/heimdal/appl/test/tcp_server.c
64
if(gethostname (hostname, sizeof(hostname)) < 0)
crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c
374
if (gethostname(hostname, sizeof(hostname)) != 0) {
crypto/heimdal/lib/kadm5/ipropd_master.c
303
gethostname(hostname, sizeof(hostname));
crypto/heimdal/lib/krb5/get_addrs.c
53
if (gethostname (hostname, sizeof(hostname))) {
crypto/heimdal/lib/krb5/get_host_realm.c
229
if (gethostname (hostname, sizeof(hostname))) {
crypto/heimdal/lib/krb5/principal.c
1050
ret = gethostname(localhost, sizeof(localhost) - 1);
crypto/heimdal/lib/krb5/verify_init.c
91
if (gethostname (local_hostname, sizeof(local_hostname)) < 0) {
crypto/krb5/src/appl/simple/client/sim_client.c
174
if (gethostname(my_hostname, sizeof(my_hostname)) < 0) {
crypto/krb5/src/lib/kadm5/logger.c
508
if (gethostname(log_control.log_hostname, MAXHOSTNAMELEN) == -1) {
crypto/krb5/src/lib/kadm5/t_kadm5.c
762
r = gethostname(hostname, sizeof(hostname));
crypto/krb5/src/lib/krb5/os/hostrealm.c
265
if (gethostname(buf, sizeof(buf)) == -1)
crypto/krb5/src/lib/krb5/os/localaddr.c
1483
if (gethostname (host, sizeof(host))) {
crypto/krb5/src/lib/krb5/os/sn2princ.c
349
if (gethostname(localname, MAXHOSTNAMELEN) != 0)
crypto/krb5/src/lib/rpc/auth_unix.c
185
if (gethostname(machname, MAX_MACHINE_NAME) == -1)
crypto/krb5/src/plugins/preauth/otp/otp_state.c
572
retval = gethostname(hostname, sizeof(hostname));
crypto/openssh/canohost.c
146
if (gethostname(myname, sizeof(myname)) == -1) {
crypto/openssh/gss-serv.c
109
if (gethostname(lname, HOST_NAME_MAX)) {
crypto/openssh/readconf.c
676
if (gethostname(thishost, sizeof(thishost)) == -1)
crypto/openssh/session.c
2613
if (gethostname(hostname, sizeof(hostname)) == -1)
crypto/openssh/ssh-keygen.c
3423
if (gethostname(hostname, sizeof(hostname)) == -1)
crypto/openssh/ssh.c
1434
if (gethostname(thishost, sizeof(thishost)) == -1)
include/ssp/unistd.h
82
__ssp_redirect(int, gethostname, (char *__buf, size_t __len), (__buf, __len));
include/unistd.h
416
int gethostname(char *, size_t);
lib/libc/gen/gethostname.c
40
__ssp_real(gethostname)(char *name, size_t namelen)
lib/libc/gen/syslog.c
195
(void)gethostname(hostname, sizeof(hostname));
lib/libc/resolv/res_init.c
505
gethostname(buf, sizeof(statp->defdname) - 1) == 0 &&
lib/libc/rpc/auth_unix.c
190
if (gethostname(machname, sizeof machname) == -1)
lib/libc/rpc/netname.c
129
(void) gethostname(hostname, sizeof(hostname));
lib/libc/tests/secure/fortify_unistd_test.c
1688
gethostname(__stack.__buf, __len);
lib/libc/tests/secure/fortify_unistd_test.c
1711
gethostname(__stack.__buf, __len);
lib/libc/tests/secure/fortify_unistd_test.c
1736
gethostname(__stack.__buf, __len);
lib/libc/tests/secure/fortify_unistd_test.c
1761
gethostname(__stack.__buf, __len);
lib/libc/tests/secure/fortify_unistd_test.c
1795
gethostname(__stack.__buf, __len);
lib/libcompat/4.3/rexec.c
151
if (gethostname(myname, sizeof(myname)) < 0)
lib/libfetch/ftp.c
942
gethostname(pbuf + len, sizeof(pbuf) - len);
lib/libpam/modules/pam_login_access/pam_login_access.c
93
gethostname(hostname, sizeof hostname);
lib/libpam/modules/pam_radius/pam_radius.c
94
if (gethostname(host, sizeof host) != -1) {
lib/libutil/tests/trimdomain-nodomain_test.c
50
__ssp_real(gethostname)(char *name, size_t namelen)
lib/libutil/tests/trimdomain_test.c
50
__ssp_real(gethostname)(char *name, size_t namelen)
lib/libutil/trimdomain.c
65
if (gethostname(domain, sizeof(domain) - 1) == 0 &&
libexec/bootpd/bootpd.c
242
if (gethostname(default_hostname, sizeof(default_hostname) - 1) < 0) {
libexec/comsat/comsat.c
85
(void)gethostname(hostname, sizeof(hostname));
libexec/getty/main.c
175
gethostname(hostname, sizeof(hostname) - 1);
libexec/pppoed/pppoed.c
584
if (gethostname(hostname, sizeof hostname))
libexec/rbootd/rbootd.c
153
if (gethostname(MyHost, MAXHOSTNAMELEN - 1) < 0) {
libexec/talkd/talkd.c
82
if (gethostname(hostname, sizeof(hostname) - 1) < 0) {
sbin/dhclient/dhclient.c
496
if (gethostname(hostname, sizeof(hostname)) < 0)
sbin/dump/main.c
408
(void)gethostname(spcl.c_host, NAMELEN);
sbin/hastd/parse.y
739
if (gethostname(buf, sizeof(buf)) < 0) {
sbin/hastd/parse.y
806
if (gethostname(buf, sizeof(buf)) < 0) {
sbin/ipf/common/ipf.h
366
extern int gethostname(char *, int );
sbin/ipf/ipfstat/ipfstat.c
1308
gethostname(hostnm, sizeof(hostnm) - 1);
sbin/ipf/ipsend/ipsend.c
311
gethostname(host, sizeof(host));
sbin/ipf/ipsend/iptest.c
123
gethostname(host, sizeof(host));
sbin/ipf/libipf/initparse.c
17
gethostname(thishost, sizeof(thishost));
sbin/mount_nfs/mount_nfs.c
463
gethostname(hostname, MAXHOSTNAMELEN) == 0) {
sbin/route/route.c
585
if (gethostname(domain_storage,
sbin/routed/main.c
121
(void)gethostname(myname, sizeof(myname)-1);
sbin/shutdown/shutdown.c
321
(void)gethostname(hostname, sizeof(hostname));
sys/compat/freebsd32/freebsd32_sysent.c
157
{ compat(AS(ogethostname_args),gethostname), .sy_auevent = AUE_SYSCTL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 87 = old gethostname */
sys/kern/init_sysent.c
156
{ compat(AS(ogethostname_args),gethostname), .sy_auevent = AUE_SYSCTL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 87 = old gethostname */
tests/sys/netinet/udp_bindings.c
172
ATF_TC_WITHOUT_HEAD(gethostname);
tests/sys/netinet/udp_bindings.c
173
ATF_TC_BODY(gethostname, tc)
tests/sys/netinet/udp_bindings.c
244
ATF_TP_ADD_TC(tp, gethostname);
tools/regression/kgssapi/gsstest.c
128
gethostname(hostname, sizeof(hostname));
tools/regression/rpcsec_gss/rpctest.c
296
gethostname(hostname, sizeof(hostname));;
tools/regression/rpcsec_gss/rpctest.c
98
gethostname(hostname, sizeof(hostname));
tools/tools/net80211/wlanwatch/wlanwatch.c
148
if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
usr.bin/iscsictl/iscsictl.c
118
error = gethostname(name + strlen(DEFAULT_IQN),
usr.bin/last/last.c
485
if (gethostname(name, sizeof(name)))
usr.bin/lock/lock.c
134
gethostname(hostname, sizeof(hostname));
usr.bin/logger/logger.c
188
(void )gethostname(hbuf, MAXHOSTNAMELEN);
usr.bin/netstat/inet6.c
1331
if (gethostname(domain, sizeof(domain)) == 0 &&
usr.bin/passwd/passwd.c
144
gethostname(hostname, sizeof hostname);
usr.bin/rwall/rwall.c
136
gethostname(hostname, sizeof(hostname));
usr.bin/systat/main.c
225
gethostname(hostname, sizeof (hostname));
usr.bin/talk/get_names.c
76
gethostname(hostname, sizeof (hostname));
usr.bin/wall/wall.c
203
(void)gethostname(hostname, sizeof(hostname));
usr.bin/write/write.c
300
if (gethostname(host, sizeof(host)) < 0)
usr.sbin/bhyve/smbiostbl.c
688
if (gethostname(hostname, sizeof(hostname)))
usr.sbin/cron/cron/do_command.c
659
if (gethostname(hostname, MAXHOSTNAMELEN) == -1)
usr.sbin/ctld/ctld.cc
1015
error = gethostname(hostname, sizeof(hostname));
usr.sbin/ctld/ctld.cc
1039
error = gethostname(hostname, sizeof(hostname));
usr.sbin/ctld/ctld.cc
989
error = gethostname(hostname, sizeof(hostname));
usr.sbin/lpr/common_source/common.c
571
gethostname(thishost, sizeof(thishost));
usr.sbin/lpr/common_source/net.c
198
gethostname(lclhost, sizeof(lclhost));
usr.sbin/lpr/lpd/lpd.c
135
gethostname(local_host, sizeof(local_host));
usr.sbin/lpr/lpd/printjob.c
489
gethostname(class, sizeof(class));
usr.sbin/lpr/lpq/lpq.c
81
if (gethostname(local_host, sizeof(local_host)))
usr.sbin/lpr/lpr/lpr.c
146
gethostname(local_host, sizeof(local_host));
usr.sbin/lpr/lprm/lprm.c
87
gethostname(local_host, sizeof(local_host));
usr.sbin/newsyslog/newsyslog.c
700
(void)gethostname(hostname, sizeof(hostname));
usr.sbin/nfscbd/nfscbd.c
119
if (gethostname(myname, MAXHOSTNAMELEN) >= 0) {
usr.sbin/nfsd/nfsd.c
1065
gethostname(hostname, sizeof (hostname));
usr.sbin/nfsuserd/nfsuserd.c
143
if (gethostname(hostname, MAXHOSTNAMELEN) == 0) {
usr.sbin/ppp/ipcp.c
465
if (gethostname(name, sizeof name) == 0) {
usr.sbin/ppp/prompt.c
121
if (gethostname(shostname, sizeof shostname) || *shostname == '\0')
usr.sbin/ppp/radius.c
1022
if (gethostname(hostname, sizeof hostname) != 0)
usr.sbin/ppp/radius.c
1207
if (gethostname(hostname, sizeof hostname) != 0)
usr.sbin/rpc.lockd/kern.c
161
(void)gethostname(hostname, sizeof(hostname) - 1);
usr.sbin/rpc.statd/file.c
262
gethostname(our_hostname, sizeof(our_hostname));
usr.sbin/rpc.tlsservd/rpc.tlsservd.c
866
if (gethostname(hostname, MAXHOSTNAMELEN) == 0) {
usr.sbin/rpc.yppasswdd/yppasswdd_main.c
238
if (gethostname((char *)&myname, sizeof(myname)) == -1) {
usr.sbin/rwhod/rwhod.c
225
if (gethostname(myname, sizeof(myname) - 1) < 0) {
usr.sbin/syslogd/syslogd.c
2595
if (gethostname(LocalHostName, sizeof(LocalHostName)))
usr.sbin/traceroute/traceroute.c
1870
if (gethostname(domain, sizeof(domain) - 1) < 0)
usr.sbin/traceroute6/traceroute6.c
1638
if (gethostname(domain, sizeof(domain)) == 0 &&
usr.sbin/yp_mkdb/yp_mkdb.c
175
if (gethostname((char *)&hname, sizeof(hname)) == -1)
usr.sbin/ypldap/yp.c
588
if (gethostname(master, sizeof(master)) == 0) {
usr.sbin/yppush/yppush_main.c
564
if (gethostname ((char *)&myname, sizeof(myname))) {