Symbol: gethostname
bin/cpdup/hcproto.c
145
if (gethostname(hostbuf, sizeof(hostbuf) - 1) < 0)
bin/cpdup/hcproto.c
206
if (gethostname(hostbuf, sizeof(hostbuf) - 1) < 0)
bin/hostname/hostname.c
291
if (gethostname(hostname, (int)sizeof(hostname)))
bin/sh/parser.c
2071
gethostname(&ps[i], PROMPTLEN - i - 1);
crypto/openssh/canohost.c
146
if (gethostname(myname, sizeof(myname)) == -1) {
crypto/openssh/gss-serv.c
108
if (gethostname(lname, HOST_NAME_MAX)) {
crypto/openssh/readconf.c
770
if (gethostname(thishost, sizeof(thishost)) == -1)
crypto/openssh/session.c
2600
if (gethostname(hostname, sizeof(hostname)) == -1)
crypto/openssh/ssh-keygen.c
3386
if (gethostname(hostname, sizeof(hostname)) == -1)
crypto/openssh/ssh.c
1421
if (gethostname(thishost, sizeof(thishost)) == -1)
include/unistd.h
458
int gethostname(char *, size_t);
lib/libc/resolv/res_init.c
465
gethostname(buf, sizeof(statp->defdname) - 1) == 0 &&
lib/libc/rpc/auth_unix.c
184
if (gethostname(machname, sizeof machname) == -1)
lib/libc/rpc/netname.c
134
gethostname(hostname, sizeof(hostname));
lib/libcompat/4.3/rexec.c
155
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
81
gethostname(hostname, sizeof hostname);
lib/libtelnet/krb4encpwd.c
154
gethostname(hostname, sizeof(hostname));
lib/libtelnet/krb4encpwd.c
203
gethostname(lhostname, sizeof(lhostname));
lib/libtelnet/krb4encpwd.c
290
gethostname(hostname, sizeof(hostname));
lib/libtelnet/rsaencpwd.c
149
gethostname(lhostname, sizeof(lhostname));
lib/libutil/trimdomain.c
63
if (gethostname(domain, sizeof(domain) - 1) == 0 &&
libexec/bootpd/bootpd.c
250
if (gethostname(default_hostname, sizeof(default_hostname) - 1) < 0) {
libexec/comsat/comsat.c
89
gethostname(hostname, sizeof(hostname));
libexec/dma/util.c
121
if (gethostname(name, sizeof(name)) != 0)
libexec/ftpd/ftpd.c
613
if (gethostname(hostname, MAXHOSTNAMELEN - 1) < 0)
libexec/ftpd/ftpd.c
666
if (gethostname(hostname, MAXHOSTNAMELEN - 1) < 0)
libexec/getty/main.c
181
gethostname(hostname, sizeof(hostname) - 1);
libexec/pppoed/pppoed.c
586
if (gethostname(hostname, sizeof hostname))
libexec/rbootd/rbootd.c
156
if (gethostname(MyHost, MAXHOSTNAMELEN - 1) < 0) {
libexec/talkd/talkd.c
83
if (gethostname(hostname, sizeof(hostname) - 1) < 0) {
libexec/telnetd/telnetd.c
664
(void) gethostname(host_name, sizeof(host_name) - 1);
sbin/dump/main.c
319
gethostname(spcl.c_host, NAMELEN);
sbin/iscontrol/iscontrol.c
217
if(gethostname(hostname, sizeof(hostname)) == 0)
sbin/iscontrol/iscontrol.c
223
if(gethostname(hostname, sizeof(hostname)) == 0)
sbin/rconfig/server.c
154
if (gethostname(buf, sizeof(buf)) == 0) {
sbin/route/route.c
343
if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
sbin/routed/main.c
118
gethostname(myname, sizeof(myname)-1);
sbin/shutdown/shutdown.c
300
gethostname(hostname, sizeof(hostname));
sbin/svc/execute.c
881
if (gethostname(hostbuf, sizeof(hostbuf) - 1) < 0) {
tools/tools/net80211/wlanwatch/wlanwatch.c
143
if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
usr.bin/kcollect/kcollect.c
498
if (gethostname(hostname, HOST_NAME_MAX) != 0) {
usr.bin/kcollect/kcollect.c
798
gethostname((char *)ary[2].data,
usr.bin/kcollect/kcollect.c
900
gethostname(hostname, sizeof(hostname) - 1);
usr.bin/last/last.c
252
if (gethostname(name, sizeof(name)))
usr.bin/lock/lock.c
128
gethostname(hostname, sizeof(hostname));
usr.bin/netstat/inet6.c
1073
if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
usr.bin/passwd/passwd.c
143
gethostname(hostname, sizeof hostname);
usr.bin/rwall/rwall.c
146
gethostname(hostname, sizeof(hostname));
usr.bin/systat/main.c
164
gethostname(hostname, sizeof (hostname));
usr.bin/talk/get_names.c
72
gethostname(hostname, sizeof (hostname));
usr.bin/telnet/commands.c
1621
gethostname(hbuf, sizeof(hbuf));
usr.bin/telnet/telnet.c
2074
gethostname(local_host, sizeof(local_host));
usr.bin/w/w.c
365
if (gethostname(domain, sizeof(domain)) < 0 ||
usr.bin/wall/wall.c
191
(void)gethostname(hostname, sizeof(hostname));
usr.bin/write/write.c
247
if (gethostname(host, sizeof(host)) < 0)
usr.sbin/cron/cron/do_command.c
452
gethostname(hostname, MAXHOSTNAMELEN);
usr.sbin/lpr/common_source/common.c
514
gethostname(thishost, sizeof(thishost));
usr.sbin/lpr/common_source/net.c
196
gethostname(lclhost, sizeof(lclhost));
usr.sbin/lpr/lpd/lpd.c
133
gethostname(local_host, sizeof(local_host));
usr.sbin/lpr/lpd/printjob.c
473
gethostname(class, sizeof(class));
usr.sbin/lpr/lpq/lpq.c
81
if (gethostname(local_host, sizeof(local_host)))
usr.sbin/lpr/lpr/lpr.c
143
gethostname(local_host, sizeof(local_host));
usr.sbin/lpr/lprm/lprm.c
86
gethostname(local_host, sizeof(local_host));
usr.sbin/mtree/create.c
98
gethostname(host, sizeof(host));
usr.sbin/newsyslog/newsyslog.c
658
gethostname(hostname, sizeof(hostname));
usr.sbin/ppp/ipcp.c
452
if (gethostname(name, sizeof name) == 0) {
usr.sbin/ppp/prompt.c
122
if (gethostname(shostname, sizeof shostname) || *shostname == '\0')
usr.sbin/ppp/radius.c
842
if (gethostname(hostname, sizeof hostname) != 0)
usr.sbin/ppp/radius.c
961
if (gethostname(hostname, sizeof hostname) != 0)
usr.sbin/rpc.statd/file.c
228
gethostname(our_hostname, sizeof(our_hostname));
usr.sbin/rpc.yppasswdd/yppasswdd_main.c
238
if (gethostname((char *)&myname, sizeof(myname)) == -1) {
usr.sbin/rwhod/rwhod.c
247
if (gethostname(myname, sizeof(myname)) < 0)
usr.sbin/syslogd/syslogd.c
1545
if (gethostname(LocalHostName, sizeof(LocalHostName)))
usr.sbin/traceroute/traceroute.c
1156
if (gethostname(domain, sizeof domain) == 0 &&
usr.sbin/traceroute6/traceroute6.c
1194
if (gethostname(domain, sizeof(domain)) == 0 &&
usr.sbin/yp_mkdb/yp_mkdb.c
177
if (gethostname((char *)&hname, sizeof(hname)) == -1)
usr.sbin/yppush/yppush_main.c
550
if (gethostname ((char *)&myname, sizeof(myname))) {