Symbol: gethostname
bin/csh/csh.c
1357
gethostname(hostname, sizeof hostname);
bin/hostname/hostname.c
69
if (gethostname(hostname, sizeof(hostname)))
bin/ksh/lex.c
1285
gethostname(strbuf, sizeof strbuf);
bin/ksh/lex.c
1291
gethostname(strbuf, sizeof strbuf);
include/unistd.h
458
int gethostname(char *, size_t)
lib/libc/asr/asr.c
698
if (gethostname(buf, sizeof buf) == 0) {
lib/libc/gen/gethostname.c
46
DEF_WEAK(gethostname);
lib/libc/hidden/unistd.h
79
PROTO_NORMAL(gethostname);
lib/libc/rpc/auth_unix.c
192
if (gethostname(machname, sizeof machname) == -1)
lib/libskey/skeylogin.c
432
if (gethostname(pbuf, sizeof(pbuf)) == -1)
libexec/comsat/comsat.c
117
(void)gethostname(hostname, sizeof(hostname));
libexec/ftpd/ftpd.c
582
(void) gethostname(hostname, sizeof(hostname));
libexec/getty/main.c
158
gethostname(hostname, sizeof(hostname));
libexec/login_ldap/util.c
492
if (gethostname(hostname, sizeof(hostname)) ==
libexec/login_radius/raddauth.c
514
if (gethostname(hostname, sizeof(hostname)))
libexec/spamd/spamd.c
1262
if (gethostname(hostname, sizeof hostname) == -1)
libexec/talkd/talkd.c
70
if (gethostname(hostname, sizeof(hostname)) == -1) {
sbin/dhcpleased/frontend.c
990
if (gethostname(dhcp_hostname + 2,
sbin/dump/main.c
401
(void)gethostname(spcl.c_host, sizeof(spcl.c_host));
sbin/iked/ikev2.c
1839
if (gethostname((char *)polid->id_data,
sbin/ipsecctl/ike.c
103
if (gethostname(myname, sizeof(myname)) == -1)
sbin/route/show.c
478
if (gethostname(domain, sizeof(domain)) == 0 &&
sbin/shutdown/shutdown.c
312
(void)gethostname(hostname, sizeof(hostname));
usr.bin/bgplg/bgplgsh.c
227
gethostname(prompt, sizeof(prompt) - 2);
usr.bin/cdio/cddb.c
81
if (gethostname(hostname, sizeof(hostname)) == -1)
usr.bin/cvs/edit.c
283
if (gethostname(thishost, sizeof(thishost)) == -1)
usr.bin/cvs/edit.c
367
if (gethostname(thishost, sizeof(thishost)) == -1)
usr.bin/cvs/trigger.c
529
if (gethostname(hostname, sizeof(hostname)) == -1) {
usr.bin/doas/doas.c
219
if (gethostname(host, sizeof(host)))
usr.bin/ftp/ruserpass.c
97
if (gethostname(myname, sizeof(myname)) == -1)
usr.bin/ftp/util.c
248
gethostname(host_name, sizeof(host_name));
usr.bin/last/last.c
511
if (gethostname(name, sizeof(name)))
usr.bin/lock/lock.c
131
gethostname(hostname, sizeof(hostname));
usr.bin/login/login.c
164
if (gethostname(localhost, sizeof(localhost)) == -1) {
usr.bin/netstat/inet.c
920
if (gethostname(domain, sizeof(domain)) == 0 &&
usr.bin/netstat/inet6.c
931
if (gethostname(domain, sizeof(domain)) == 0 &&
usr.bin/netstat/show.c
421
if (gethostname(domain, sizeof(domain)) == 0 &&
usr.bin/newsyslog/newsyslog.c
421
(void)gethostname(hostname, sizeof(hostname));
usr.bin/rdist/common.c
135
gethostname(host, sizeof(host));
usr.bin/rdist/message.c
486
if (gethostname(mbuf, sizeof(mbuf)) == 0) {
usr.bin/rwall/rwall.c
121
(void)gethostname(hostname, sizeof(hostname));
usr.bin/skeyaudit/skeyaudit.c
173
if (hostname[0] == '\0' && gethostname(hostname, sizeof(hostname)) == -1)
usr.bin/skeyinit/skeyinit.c
197
if (gethostname(hostname, sizeof(hostname)) == -1)
usr.bin/ssh/canohost.c
111
if (gethostname(myname, sizeof(myname)) == -1) {
usr.bin/ssh/gss-serv.c
108
if (gethostname(lname, sizeof(lname))) {
usr.bin/ssh/misc-agent.c
61
if (gethostname(hostname, sizeof(hostname)) == -1) {
usr.bin/ssh/packet.c
3032
(void)gethostname(thishost, sizeof(thishost));
usr.bin/ssh/readconf.c
652
if (gethostname(thishost, sizeof(thishost)) == -1)
usr.bin/ssh/session.c
2241
if (gethostname(hostname, sizeof(hostname)) == -1)
usr.bin/ssh/ssh-keygen.c
3315
if (gethostname(hostname, sizeof(hostname)) == -1)
usr.bin/ssh/ssh.c
1383
if (gethostname(thishost, sizeof(thishost)) == -1)
usr.bin/systat/main.c
562
gethostname(hostname, sizeof (hostname));
usr.bin/talk/get_names.c
88
gethostname(hostname, sizeof (hostname));
usr.bin/telnet/commands.c
1446
gethostname(hbuf, sizeof hbuf);
usr.bin/tmux/format.c
524
if (gethostname(host, sizeof host) != 0)
usr.bin/tmux/format.c
535
if (gethostname(host, sizeof host) != 0)
usr.bin/tmux/window.c
1333
if (gethostname(host, sizeof host) == 0)
usr.bin/top/display.c
269
gethostname(buf, sizeof(buf));
usr.bin/vi/common/recover.c
375
(void)gethostname(host, sizeof(host));
usr.bin/w/w.c
286
if (gethostname(domain, sizeof(domain)) == -1 ||
usr.bin/wall/wall.c
199
(void)gethostname(hostname, sizeof(hostname));
usr.bin/watch/watch.c
290
gethostname(buf, sizeof(buf));
usr.bin/write/write.c
262
if (gethostname(host, sizeof(host)) == -1)
usr.sbin/amd/amd/amd.c
216
if (gethostname(hostname, sizeof(hostname)) == -1) {
usr.sbin/bgpctl/output_ometric.c
72
if (gethostname(hostname, sizeof(hostname)))
usr.sbin/cron/atrun.c
562
if (gethostname(hostname, sizeof(hostname)) != 0)
usr.sbin/cron/do_command.c
384
gethostname(hostname, sizeof(hostname));
usr.sbin/ikectl/ikeca.c
238
if (gethostname(hostname, sizeof(hostname)))
usr.sbin/iscsid/initiator.c
635
if (gethostname(hostname, sizeof(hostname)))
usr.sbin/lpd/engine.c
50
gethostname(lpd_hostname, HOST_NAME_MAX + 1);
usr.sbin/lpd/printer.c
129
gethostname(lpd_hostname, HOST_NAME_MAX+1);
usr.sbin/lpr/lpd/lpd.c
147
gethostname(host, sizeof(host));
usr.sbin/lpr/lpd/printjob.c
441
gethostname(class, sizeof(class));
usr.sbin/lpr/lpq/lpq.c
82
if (gethostname(host, sizeof(host)) != 0)
usr.sbin/lpr/lpr/lpr.c
139
gethostname(host, sizeof (host));
usr.sbin/lpr/lprm/lprm.c
98
gethostname(host, sizeof(host));
usr.sbin/mopd/mopd/process.c
293
i = gethostname(hname, sizeof(hname));
usr.sbin/mtree/create.c
81
(void)gethostname(host, sizeof(host));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1461
gethostname(hbuf, sizeof(hbuf));
usr.sbin/npppd/npppd/chap.c
142
gethostname(_this->myname, sizeof(_this->myname));
usr.sbin/nsd/dnstap/dnstap.c
636
if (gethostname(buf, MAXHOSTNAMELEN) == 0) {
usr.sbin/nsd/nsd.c
906
if (gethostname(hostname, MAXHOSTNAMELEN) == 0) {
usr.sbin/pppd/main.c
204
if (gethostname(hostname, sizeof hostname) < 0 ) {
usr.sbin/pppd/options.c
1435
gethostname(hostname, MAXNAMELEN);
usr.sbin/rbootd/rbootd.c
156
gethostname(MyHost, HOST_NAME_MAX+1);
usr.sbin/rpc.statd/statd.c
562
gethostname(our_hostname, sizeof(our_hostname));
usr.sbin/rpki-client/output-json.c
36
gethostname(hn, sizeof hn);
usr.sbin/rpki-client/output-ometric.c
213
if (gethostname(hostname, sizeof(hostname)))
usr.sbin/rpki-client/output.c
266
gethostname(hn, sizeof hn);
usr.sbin/smtpd/mail.maildir.c
170
if (gethostname(hostname, sizeof hostname) != 0)
usr.sbin/smtpd/smtpc.c
136
if (gethostname(hostname, sizeof(hostname)) == -1)
usr.sbin/smtpd/util.c
776
if (gethostname(hostname, len) == -1) {
usr.sbin/snmpd/parse.y
1878
if (gethostname(hostname, sizeof(hostname)) == -1)
usr.sbin/snmpd/parse.y
773
if (gethostname(hostname, sizeof(hostname)) == -1) {
usr.sbin/syslogd/syslogd.c
517
if (gethostname(LocalHostName, sizeof(LocalHostName)) == -1 ||
usr.sbin/traceroute/worker.c
1163
if (gethostname(domain, sizeof(domain)) == 0 &&
usr.sbin/unbound/daemon/worker.c
1144
if (gethostname(buf, MAXHOSTNAMELEN) == 0) {
usr.sbin/unbound/dnstap/dnstap.c
202
if (gethostname(buf, MAXHOSTNAMELEN) == 0) {
usr.sbin/ypldap/yp.c
658
if (gethostname(master, sizeof(master)) == 0) {
usr.sbin/ypserv/makedbm/makedbm.c
266
gethostname(myname, sizeof(myname));
usr.sbin/ypserv/mkalias/mkalias.c
305
gethostname(myname, sizeof(myname));