Defined in 6 files as a prototype:
Defined in 1 files as a member:
Defined in 5 files as a macro:
Defined in 3 files as a function:
Referenced in 219 files:
- bin/date/netdate.c, line 121
- bin/hostname/hostname.c, line 83
- bin/sh/var.c, line 1460
- crypto/dist/ipsec-tools/src/racoon/gssapi.c, line 140
- crypto/external/bsd/heimdal/dist/kdc/kx509.c, line 362
- crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c, line 376
- crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c, line 307
- crypto/external/bsd/heimdal/dist/lib/krb5/get_addrs.c, line 55
- crypto/external/bsd/heimdal/dist/lib/krb5/get_host_realm.c, line 273
- crypto/external/bsd/heimdal/dist/lib/krb5/principal.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/krb5/verify_init.c, line 96
- crypto/external/bsd/netpgp/dist/src/libpaa/libpaa.c, line 162
- crypto/external/bsd/openssh/dist/canohost.c, line 114
- crypto/external/bsd/openssh/dist/gss-serv.c, line 113
- crypto/external/bsd/openssh/dist/readconf.c, line 720
- crypto/external/bsd/openssh/dist/session.c, line 2423
- crypto/external/bsd/openssh/dist/ssh-keygen.c, line 3332
- crypto/external/bsd/openssh/dist/ssh.c, line 1360
- crypto/external/bsd/openssl.old/lib/libcrypto/rnd_keys.c, line 75
- crypto/external/bsd/openssl.old/lib/libdes/ornd_keys.c, line 75
- crypto/external/bsd/openssl/lib/libcrypto/rnd_keys.c, line 75
- crypto/external/bsd/openssl/lib/libdes/ornd_keys.c, line 75
- external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/sysinfo.cc, line 394
- external/apache2/llvm/dist/llvm/lib/Support/LockFileManager.cpp, line 102
- external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c, line 470
- external/bsd/am-utils/dist/amd/amd.c, line 425
- external/bsd/am-utils/dist/fixmount/fixmount.c, line 339
- external/bsd/am-utils/dist/fsinfo/fsinfo.c, line 232
- external/bsd/am-utils/dist/hlfsd/hlfsd.c, line 310
- external/bsd/am-utils/dist/libamu/mount_fs.c, line 1141
- external/bsd/am-utils/dist/wire-test/wire-test.c, line 64
- external/bsd/cron/dist/do_command.c, line 203
- external/bsd/dhcpcd/dist/src/dhcp-common.c, line 54
- external/bsd/fetch/dist/libfetch/ftp.c, line 1020
- external/bsd/ipf/dist/ipsend/ipsend.c, line 346
- external/bsd/ipf/dist/ipsend/iptest.c, line 150
- external/bsd/ipf/dist/lib/initparse.c, line 18
- external/bsd/ipf/dist/tools/ipfstat.c, line 1330
- external/bsd/iscsi/dist/src/initiator/iscsi-initiator.c, line 554
- external/bsd/libbind/dist/resolv/res_init.c, line 479
- external/bsd/libbind/dist/tests/dig8.c, line 336
- external/bsd/libevent/dist/evdns.c, line 3206
- external/bsd/nsd/dist/dnstap/dnstap.c, line 197
- external/bsd/nsd/dist/nsd.c, line 975
- external/bsd/ntp/dist/libntp/findconfig.c, line 32
- external/bsd/ntp/dist/ntpd/ntp_crypto.c, line 3951
- external/bsd/ntp/dist/sntp/libevent/evdns.c, line 3172
- external/bsd/ntp/dist/util/ntp-keygen.c, line 363
- external/bsd/nvi/dist/common/recover.c, line 411
- external/bsd/openldap/dist/clients/tools/common.c, line 227
- external/bsd/openldap/dist/libraries/libldap/cyrus.c, line 526
- external/bsd/openldap/dist/libraries/libldap/util-int.c, line 878
- external/bsd/openldap/dist/servers/slapd/slapi/slapi_utils.c, line 1908
- external/bsd/openldap/dist/tests/progs/slapd-auth.c, line 282
- external/bsd/openpam/dist/bin/pamtest/pamtest.c, line 392
- external/bsd/openpam/dist/bin/su/su.c, line 103
- external/bsd/openpam/dist/lib/libpam/pam_start.c, line 88
- external/bsd/pam-u2f/dist/fuzz/wrap.c, line 61
- external/bsd/pam-u2f/dist/pam-u2f.c, line 196
- external/bsd/pam-u2f/dist/pamu2fcfg/pamu2fcfg.c, line 79
- external/bsd/ppp/dist/pppd/main.c, line 312
- external/bsd/ppp/dist/pppd/options.c, line 1569
- external/bsd/tmux/dist/format.c, 2 times
- external/bsd/tmux/dist/window.c, line 946
- external/bsd/unbound/dist/daemon/worker.c, line 952
- external/bsd/unbound/dist/dnstap/dnstap.c, line 173
- external/gpl2/gettext/dist/gettext-tools/src/hostname.c, line 257
- external/gpl2/lvm2/dist/lib/misc/lvm-file.c, line 49
- external/gpl2/xcvs/dist/lib/xgethostname.c, line 70
- external/gpl3/binutils/dist/gprofng/src/collctrl.cc, line 69
- external/gpl3/gcc.old/dist/libgfortran/intrinsics/hostnm.c, 2 times
- external/gpl3/gcc.old/dist/libgomp/affinity-fmt.c, line 201
- external/gpl3/gcc.old/dist/libgomp/config/mingw32/affinity-fmt.c, line 64
- external/gpl3/gcc/dist/libgfortran/intrinsics/hostnm.c, 2 times
- external/gpl3/gcc/dist/libgomp/affinity-fmt.c, line 201
- external/gpl3/gcc/dist/libgomp/config/mingw32/affinity-fmt.c, line 64
- external/gpl3/gdb.old/dist/gnulib/import/sys_socket.in.h, 3 times
- external/gpl3/gdb.old/dist/gnulib/import/sys_time.in.h, 3 times
- external/gpl3/gdb.old/dist/gnulib/import/unistd.in.h, 11 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/alpha/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/arm/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/armeb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/hppa/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/i386/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68000/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68k/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64eb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64el/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipseb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsel/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv32/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3eb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3el/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/vax/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb.old/lib/libgnulib/arch/x86_64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/dist/gnulib/import/sys_socket.in.h, 3 times
- external/gpl3/gdb/dist/gnulib/import/sys_time.in.h, 3 times
- external/gpl3/gdb/dist/gnulib/import/unistd.in.h, 11 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64eb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsel/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv32/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3eb/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3el/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/vax/gnulib/import/unistd.h, 10 times
- external/gpl3/gdb/lib/libgnulib/arch/x86_64/gnulib/import/unistd.h, 10 times
- external/ibm-public/postfix/dist/src/util/get_hostname.c, line 76
- external/mit/libuv/dist/src/unix/core.c, line 1385
- external/mit/libuv/dist/test/test-gethostname.c, line 26
- external/mit/libuv/dist/test/test-list.h, 2 times
- external/mpl/bind/dist/bin/named/builtin.c, 2 times
- external/mpl/bind/dist/bin/named/server.c, 2 times
- external/mpl/bind/dist/bin/named/unix/os.c, line 877
- external/mpl/bind/dist/bin/named/win32/os.c, line 377
- external/mpl/bind/dist/bin/tests/system/feature-test.c, line 108
- external/mpl/bind/dist/lib/ns/client.c, 2 times
- external/mpl/bind/dist/lib/ns/server.c, line 100
- external/mpl/dhcp/dist/common/tree.c, line 2048
- external/mpl/dhcp/dist/keama/eval.c, line 1435
- external/mpl/dhcp/dist/server/ldap.c, line 258
- games/hunt/hunt/server.c, line 77
- games/warp/intrp.c, line 68
- lib/libc/gen/gethostname.c, 2 times
- lib/libc/gen/xsyslog.c, line 188
- lib/libc/resolv/res_init.c, line 532
- lib/libc/rpc/auth_unix.c, line 212
- lib/libcompat/4.3/ruserpass.c, line 121
- lib/libpam/modules/pam_login_access/pam_login_access.c, line 85
- lib/libpam/modules/pam_radius/pam_radius.c, line 114
- lib/librumpuser/rumpfiber.c, line 519
- lib/librumpuser/rumpuser.c, line 204
- lib/libskey/skeylogin.c, line 467
- lib/libutil/pidlock.c, line 66
- libexec/comsat/comsat.c, line 127
- libexec/ftpd/ftpd.c, 2 times
- libexec/getty/main.c, line 195
- libexec/httpd/bozohttpd.c, line 2580
- libexec/rlogind/rlogind.c, line 728
- libexec/rshd/rshd.c, line 774
- libexec/talkd/talkd.c, line 107
- libexec/telnetd/telnetd.c, line 709
- sbin/dump/main.c, line 483
- sbin/iscsid/iscsid_driverif.c, line 69
- sbin/route/rtutil.c, line 442
- sbin/routed/main.c, line 135
- sbin/shutdown/shutdown.c, line 306
- share/examples/refuse/ian/libfetch/ftp.c, line 943
- sys/external/bsd/compiler_rt/dist/lib/msan/msan_interceptors.cc, 3 times
- sys/external/bsd/compiler_rt/dist/lib/msan/tests/msan_test.cc, 2 times
- tests/lib/libc/gen/t_sethostname.c, 2 times
- usr.bin/ftp/ruserpass.c, line 99
- usr.bin/last/last.c, line 318
- usr.bin/lock/lock.c, line 170
- usr.bin/login/k5login.c, line 151
- usr.bin/login/login.c, line 191
- usr.bin/login/login_pam.c, line 149
- usr.bin/mail/dotlock.c, line 63
- usr.bin/netstat/inet.c, line 998
- usr.bin/netstat/inet6.c, line 1449
- usr.bin/newsyslog/newsyslog.c, line 171
- usr.bin/passwd/pam_passwd.c, line 118
- usr.bin/rdist/main.c, line 102
- usr.bin/rwall/rwall.c, line 171
- usr.bin/skeyinit/skeyinit.c, line 77
- usr.bin/su/su_pam.c, line 244
- usr.bin/systat/main.c, line 223
- usr.bin/talk/get_names.c, line 80
- usr.bin/telnet/commands.c, line 1655
- usr.bin/telnet/telnet.c, line 2053
- usr.bin/w/w.c, line 216
- usr.bin/wall/wall.c, line 198
- usr.bin/write/write.c, line 239
- usr.sbin/bootp/bootpd/bootpd.c, line 358
- usr.sbin/bootp/bootpgw/bootpgw.c, line 204
- usr.sbin/bootp/bootptest/bootptest.c, line 327
- usr.sbin/isibootd/isibootd.c, line 163
- usr.sbin/lpr/lpd/lpd.c, line 158
- usr.sbin/lpr/lpd/printjob.c, line 445
- usr.sbin/lpr/lpq/lpq.c, line 86
- usr.sbin/lpr/lpr/lpr.c, line 145
- usr.sbin/lpr/lprm/lprm.c, line 94
- usr.sbin/mlxctl/config.c, line 136
- usr.sbin/mtree/create.c, line 116
- usr.sbin/rbootd/rbootd.c, line 166
- usr.sbin/rpc.statd/statd.c, line 567
- usr.sbin/rwhod/rwhod.c, line 190
- usr.sbin/sysinst/net.c, 2 times
- usr.sbin/syslogd/syslogd.c, line 4084
- usr.sbin/timed/timed/timed.c, line 206
- usr.sbin/timed/timedc/cmds.c, line 81
- usr.sbin/traceroute/traceroute.c, line 1614
- usr.sbin/traceroute6/traceroute6.c, line 1110
- usr.sbin/ypserv/common/localhostname.c, line 55