Symbol: gethostname
bin/date/netdate.c
121
if (gethostname(hostname, sizeof(hostname)) == -1) {
bin/hostname/hostname.c
83
if (gethostname(hostname, sizeof(hostname)))
bin/sh/var.c
1579
(void)gethostname(buf.b + vp->name_len + 1,
crypto/dist/ipsec-tools/src/racoon/gssapi.c
140
if (gethostname(name, sizeof(name)) != 0) {
games/hunt/hunt/server.c
77
if (gethostname(local_name, sizeof(local_name)) < 0) {
games/warp/intrp.c
68
gethostname(buf,sizeof buf);
include/unistd.h
176
int gethostname(char *, size_t);
lib/libc/gen/gethostname.c
50
__weak_alias(gethostname,_gethostname)
lib/libc/gen/gethostname.c
54
gethostname(char *name, size_t namelen)
lib/libc/gen/xsyslog.c
188
if (data->log_hostname[0] == '\0' && gethostname(data->log_hostname,
lib/libc/resolv/res_init.c
532
gethostname(buf, sizeof(statp->defdname) - 1) == 0 &&
lib/libc/rpc/auth_unix.c
215
if (gethostname(machname, sizeof machname) == -1)
lib/libcompat/4.3/ruserpass.c
122
if (gethostname(myname, sizeof(myname)) < 0)
lib/libpam/modules/pam_login_access/pam_login_access.c
85
gethostname(hostname, sizeof hostname);
lib/libpam/modules/pam_radius/pam_radius.c
114
if (gethostname(host, sizeof host) != -1) {
lib/librumpuser/rumpfiber.c
519
if (gethostname(tmp, sizeof(tmp)) == -1) {
lib/librumpuser/rumpuser.c
204
if (gethostname(tmp, sizeof(tmp)) == -1) {
lib/libskey/skeylogin.c
467
if (gethostname(pbuf, sizeof(pbuf)) == -1)
lib/libutil/pidlock.c
66
if (gethostname(hostname, sizeof(hostname)))
libexec/comsat/comsat.c
127
(void)gethostname(hostname, sizeof(hostname));
libexec/ftpd/ftpd.c
391
if (gethostname(hostname, sizeof(hostname)) == -1)
libexec/ftpd/ftpd.c
684
(void)gethostname(hostname, sizeof(hostname));
libexec/getty/main.c
195
(void)gethostname(hostname, sizeof(hostname));
libexec/httpd/bozohttpd.c
2595
if (gethostname(httpd->virthostname, MAXHOSTNAMELEN+1) < 0)
libexec/rlogind/rlogind.c
728
(void) gethostname(localhost, sizeof(localhost));
libexec/rshd/rshd.c
774
(void)gethostname(localhost, sizeof(localhost));
libexec/talkd/talkd.c
107
if (gethostname(hostname, sizeof hostname) < 0) {
libexec/telnetd/telnetd.c
712
(void)gethostname(host_name, sizeof(host_name));
sbin/dump/main.c
484
(void)gethostname(spcl.c_host, sizeof(spcl.c_host));
sbin/iscsid/iscsid_driverif.c
69
gethostname((char *)node_name.InitiatorAlias, sizeof(node_name.InitiatorAlias));
sbin/route/rtutil.c
442
if (gethostname(domain, sizeof(domain)) == 0 &&
sbin/routed/main.c
135
(void)gethostname(myname, sizeof(myname) - 1);
sbin/shutdown/shutdown.c
308
(void)gethostname(hostname, sizeof(hostname));
share/examples/refuse/ian/libfetch/ftp.c
943
gethostname(pbuf + len, sizeof(pbuf) - len);
tests/lib/libc/gen/t_sethostname.c
125
ATF_REQUIRE(gethostname(host, sizeof(host)) == 0);
tests/lib/libc/gen/t_sethostname.c
67
ATF_REQUIRE(gethostname(name, sizeof(name)) == 0);
usr.bin/ftp/ruserpass.c
113
if (gethostname(myname, sizeof(myname)) < 0)
usr.bin/last/last.c
318
if (gethostname(name, sizeof(name)))
usr.bin/lock/lock.c
170
gethostname(hostname, sizeof(hostname));
usr.bin/login/k5login.c
151
gethostname(phost, sizeof(phost));
usr.bin/login/login.c
191
if (gethostname(localhost, sizeof(localhost)) < 0) {
usr.bin/login/login_pam.c
149
if (gethostname(localhost, sizeof(localhost)) < 0)
usr.bin/mail/dotlock.c
63
(void)gethostname(hostname, sizeof(hostname));
usr.bin/netstat/inet.c
998
if (gethostname(domain, sizeof domain) == 0) {
usr.bin/netstat/inet6.c
1449
if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
usr.bin/newsyslog/newsyslog.c
171
(void)gethostname(hostname, sizeof(hostname));
usr.bin/passwd/pam_passwd.c
118
(void)gethostname(hostname, sizeof hostname);
usr.bin/rdist/main.c
102
gethostname(host, sizeof(host));
usr.bin/rwall/rwall.c
171
(void)gethostname(hostname, sizeof(hostname));
usr.bin/skeyinit/skeyinit.c
77
if (gethostname(hostname, sizeof(hostname)) < 0)
usr.bin/su/su_pam.c
244
if (gethostname(hostname, sizeof(hostname)) != -1)
usr.bin/systat/main.c
223
gethostname(hostname, sizeof (hostname));
usr.bin/talk/get_names.c
80
if (gethostname(hostname, sizeof(hostname)) == -1)
usr.bin/telnet/commands.c
1655
gethostname(hbuf, sizeof hbuf);
usr.bin/telnet/telnet.c
2053
gethostname(local_host, sizeof(local_host));
usr.bin/w/w.c
216
rv = gethostname(domain, sizeof(domain));
usr.bin/wall/wall.c
198
(void)gethostname(hostname, sizeof(hostname));
usr.bin/write/write.c
239
if (gethostname(host, sizeof(host)) < 0)
usr.sbin/bootp/bootpd/bootpd.c
358
if (gethostname(hostname, sizeof(hostname)) == -1) {
usr.sbin/bootp/bootpgw/bootpgw.c
204
gethostname(myhostname, sizeof(myhostname));
usr.sbin/bootp/bootptest/bootptest.c
327
gethostname(hostname, sizeof(hostname));
usr.sbin/isibootd/isibootd.c
163
gethostname(station.name, sizeof(station.name) - 1);
usr.sbin/lpr/lpd/lpd.c
158
gethostname(host, sizeof(host));
usr.sbin/lpr/lpd/printjob.c
445
gethostname(class, sizeof(class));
usr.sbin/lpr/lpq/lpq.c
86
if (gethostname(host, sizeof(host)))
usr.sbin/lpr/lpr/lpr.c
145
gethostname(host, sizeof (host));
usr.sbin/lpr/lprm/lprm.c
94
gethostname(host, sizeof(host));
usr.sbin/mlxctl/config.c
136
gethostname(hostname, sizeof(hostname));
usr.sbin/mtree/create.c
109
gethostname(host, sizeof(host));
usr.sbin/rbootd/rbootd.c
166
if (gethostname(MyHost, sizeof MyHost) < 0) {
usr.sbin/rpc.statd/statd.c
567
gethostname(our_hostname, sizeof(our_hostname));
usr.sbin/rwhod/rwhod.c
190
if (gethostname(myname, sizeof(myname) - 1) < 0) {
usr.sbin/sysinst/net.c
439
if (gethostname(hostname, sizeof(hostname)) == 0 && hostname[0] != 0) {
usr.sbin/sysinst/net.c
706
if (gethostname(net_host, sizeof(net_host)) == 0 &&
usr.sbin/syslogd/syslogd.c
4125
(void)gethostname(hostname, sizeof(len));
usr.sbin/timed/timed/timed.c
204
if (gethostname(hostname, sizeof(hostname)) < 0)
usr.sbin/timed/timedc/cmds.c
81
(void)gethostname(name, sizeof(name));
usr.sbin/traceroute/traceroute.c
1614
if (gethostname(domain, sizeof(domain) - 1) < 0)
usr.sbin/traceroute6/traceroute6.c
1110
if (gethostname(domain, sizeof(domain)) == 0 &&
usr.sbin/ypserv/common/localhostname.c
55
if (gethostname(hostname, sizeof(hostname)))