Defined in 3 files as a prototype:
Defined in 1 files as a member:
Defined in 3 files as a macro:
Referenced in 212 files:
- crypto/dist/ipsec-tools/src/racoon/sockmisc.c, 3 times
- crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/krb5/auth_context.c, line 202
- crypto/external/bsd/heimdal/dist/lib/krb5/sock_principal.c, line 51
- crypto/external/bsd/heimdal/dist/lib/roken/socket_wrapper.c, line 142
- crypto/external/bsd/heimdal/dist/lib/roken/socket_wrapper.h, 2 times
- crypto/external/bsd/heimdal/include/roken.h, line 288
- crypto/external/bsd/openssh/dist/canohost.c, 2 times
- crypto/external/bsd/openssh/dist/misc.c, line 241
- crypto/external/bsd/openssl.old/dist/apps/vms_term_sock.c, line 340
- crypto/external/bsd/openssl.old/dist/crypto/bio/b_sock.c, line 349
- crypto/external/bsd/openssl.old/dist/crypto/bio/bss_dgram.c, 2 times
- crypto/external/bsd/openssl/dist/apps/lib/vms_term_sock.c, line 340
- crypto/external/bsd/openssl/dist/crypto/bio/bio_sock.c, line 367
- crypto/external/bsd/openssl/dist/crypto/bio/bss_dgram.c, 2 times
- crypto/external/bsd/openssl/dist/test/helpers/ssltestlib.c, line 917
- dist/pf/libexec/tftp-proxy/tftp-proxy.c, 3 times
- dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c, 2 times
- external/apache2/mDNSResponder/dist/mDNSShared/PlatformCommon.c, line 87
- external/apache2/mDNSResponder/dist/mDNSShared/dnssd_clientstub.c, 2 times
- external/bsd/blocklist/bin/conf.c, line 1098
- external/bsd/fetch/dist/libfetch/ftp.c, 2 times
- external/bsd/ipf/dist/ipsend/iptests.c, line 1133
- external/bsd/ipf/dist/ipsend/lsock.c, line 228
- external/bsd/ipf/dist/ipsend/sirix.c, line 69
- external/bsd/ipf/dist/ipsend/sock.c, line 430
- external/bsd/ipf/dist/samples/proxy.c, 3 times
- external/bsd/ipf/dist/samples/relay.c, line 136
- external/bsd/iscsi/dist/src/lib/target.c, 2 times
- external/bsd/iscsi/dist/src/lib/util.c, line 770
- external/bsd/libbind/dist/isc/ev_connects.c, 3 times
- external/bsd/libevent/dist/evutil.c, 4 times
- external/bsd/libevent/dist/listener.c, line 838
- external/bsd/libevent/dist/sample/http-server.c, line 408
- external/bsd/libevent/dist/test/regress_bufferevent.c, line 677
- external/bsd/libevent/dist/test/regress_dns.c, 2 times
- external/bsd/libevent/dist/test/regress_listener.c, 4 times
- external/bsd/libevent/dist/test/regress_ssl.c, 2 times
- external/bsd/libevent/dist/test/regress_testutils.c, 2 times
- external/bsd/libevent/dist/test/test-fdleak.c, line 149
- external/bsd/libevent/dist/test/test-ratelim.c, line 391
- external/bsd/libpcap/dist/pcap-rpcap.c, 3 times
- external/bsd/libpcap/dist/rpcapd/daemon.c, line 1769
- external/bsd/libpcap/dist/sockutils.c, line 1460
- external/bsd/ntp/dist/lib/isc/socket_api.c, line 174
- external/bsd/ntp/dist/lib/isc/unix/net.c, line 168
- external/bsd/ntp/dist/lib/isc/unix/socket.c, 2 times
- external/bsd/ntp/dist/lib/isc/win32/socket.c, 2 times
- external/bsd/ntp/dist/libntp/machines.c, line 186
- external/bsd/ntp/dist/ntpd/ntp_io.c, line 4085
- external/bsd/ntp/dist/ntpd/ntpd.c, line 1369
- external/bsd/ntp/dist/sntp/libevent/evutil.c, 4 times
- external/bsd/ntp/dist/sntp/libevent/listener.c, line 827
- external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c, line 787
- external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c, 2 times
- external/bsd/ntp/dist/sntp/libevent/test/regress_listener.c, 2 times
- external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c, line 456
- external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.c, 2 times
- external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c, line 146
- external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c, line 305
- external/bsd/openldap/dist/libraries/libldap/request.c, line 873
- external/bsd/openldap/dist/libraries/liblutil/getpeereid.c, line 122
- external/bsd/openldap/dist/libraries/liblutil/sockpair.c, line 63
- external/bsd/openldap/dist/servers/slapd/back-asyncmeta/bind.c, line 1589
- external/bsd/openldap/dist/servers/slapd/syncrepl.c, line 2070
- external/bsd/ppp/dist/pppd/plugins/pppol2tp/pppol2tp.c, line 135
- external/bsd/tmux/dist/compat/systemd.c, line 46
- external/bsd/unbound/dist/dnstap/unbound-dnstap-socket.c, line 1081
- external/bsd/wpa/dist/src/radius/radius_client.c, 2 times
- external/gpl2/gmake/dist/remote-cstms.c, line 163
- external/gpl2/xcvs/dist/src/kerberos4-client.c, line 82
- external/gpl2/xcvs/dist/src/server.c, line 7355
- external/gpl3/gdb.old/dist/gdb/aarch64-linux-tdep.c, line 1263
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/info-os.c, line 141
- external/gpl3/gdb.old/dist/gdbserver/remote-utils.cc, line 384
- external/gpl3/gdb.old/dist/gnulib/import/sys_socket.in.h, 10 times
- external/gpl3/gdb.old/dist/gnulib/import/sys_time.in.h, 3 times
- external/gpl3/gdb.old/dist/gnulib/import/unistd.in.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/alpha/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/arm/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/armeb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/hppa/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/i386/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68000/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68k/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64eb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64el/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipseb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsel/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv32/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3eb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3el/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/vax/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb.old/lib/libgnulib/arch/x86_64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/dist/gdb/aarch64-linux-tdep.c, line 1263
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/info-os.c, line 141
- external/gpl3/gdb/dist/gdbserver/remote-utils.cc, line 384
- external/gpl3/gdb/dist/gnulib/import/sys_socket.in.h, 10 times
- external/gpl3/gdb/dist/gnulib/import/sys_time.in.h, 3 times
- external/gpl3/gdb/dist/gnulib/import/unistd.in.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64eb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsel/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv32/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3eb/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3el/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/vax/gnulib/import/unistd.h, 3 times
- external/gpl3/gdb/lib/libgnulib/arch/x86_64/gnulib/import/unistd.h, 3 times
- external/ibm-public/postfix/dist/src/postscreen/postscreen_endpt.c, line 174
- external/ibm-public/postfix/dist/src/smtpd/smtpd_peer.c, line 536
- external/ibm-public/postfix/dist/src/util/vstream_tweak.c, line 78
- external/ibm-public/postfix/dist/src/xsasl/xsasl_dovecot_server.c, line 470
- external/mit/libuv/dist/src/unix/pipe.c, line 287
- external/mit/libuv/dist/src/unix/tcp.c, 3 times
- external/mit/libuv/dist/src/unix/tty.c, 2 times
- external/mit/libuv/dist/src/unix/udp.c, 2 times
- external/mit/libuv/dist/src/win/tcp.c, 2 times
- external/mit/libuv/dist/src/win/udp.c, line 56
- external/mpl/bind/dist/lib/isc/tests/netmgr_test.c, line 251
- external/mpl/bind/dist/lib/isc/unix/net.c, 2 times
- external/mpl/bind/dist/lib/isc/unix/socket.c, 3 times
- external/mpl/bind/dist/lib/isc/win32/socket.c, 3 times
- external/mpl/dhcp/dist/omapip/connection.c, line 720
- games/hunt/huntd/driver.c, 2 times
- lib/libc/net/getaddrinfo.c, line 914
- lib/libc/net/getpeereid.c, line 52
- lib/libc/rpc/bindresvport.c, 2 times
- lib/libc/rpc/rpc_generic.c, 2 times
- lib/libc/rpc/svc_dg.c, line 154
- lib/libc/rpc/svc_vc.c, 2 times
- lib/libcompat/4.3/rexec.c, line 129
- lib/librumphijack/hijack.c, line 2489
- lib/libwrap/fix_options.c, line 64
- lib/libwrap/socket.c, line 127
- libexec/comsat/comsat.c, line 108
- libexec/ftpd/ftpd.c, 3 times
- libexec/httpd/bozohttpd.c, line 676
- libexec/identd/identd.c, line 355
- libexec/rpc.rquotad/rquotad.c, line 61
- libexec/rpc.rstatd/rstatd.c, line 83
- libexec/rpc.rusersd/rusersd.c, line 74
- libexec/rpc.rwalld/rwalld.c, line 94
- libexec/rpc.sprayd/sprayd.c, line 77
- libexec/rshd/rshd.c, line 197
- libexec/tftpd/tftpd.c, line 393
- sbin/iscsid/iscsid_discover.c, line 429
- sbin/ping6/ping6_hostops.c, line 47
- sbin/ping6/prog_ops.h, line 77
- share/doc/psd/20.ipctut/dgramread.c, line 71
- share/doc/psd/20.ipctut/strchkread.c, line 71
- share/doc/psd/20.ipctut/streamread.c, line 71
- share/examples/refuse/ian/libfetch/ftp.c, 2 times
- sys/compat/linux32/common/linux32_socketcall.c, line 73
- sys/external/bsd/compiler_rt/dist/lib/msan/tests/msan_test.cc, 5 times
- sys/rump/librump/rumpkern/rump_syscalls.c, line 683
- sys/rump/net/lib/libsockin/sockin_user.c, line 544
- tests/kernel/kqueue/t_empty.c, line 161
- tests/kernel/t_kauth_pr_47598.c, line 136
- tests/lib/libc/sys/t_connect.c, line 90
- tests/lib/libc/sys/t_getsockname.c, 2 times
- tests/net/net/t_pktinfo.c, line 75
- tests/net/net/t_tcp.c, line 129
- tests/net/net/t_unix.c, line 333
- tests/net/tcp/t_tcp_connect_port.c, 2 times
- tests/net/tcp/tcp_shutdown.c, line 99
- usr.bin/ftp/ftp.c, 2 times
- usr.bin/rfcomm_sppd/rfcomm_sppd.c, line 450
- usr.bin/rlogin/rlogin.c, line 284
- usr.bin/talk/ctl.c, 2 times
- usr.sbin/bootp/bootpd/bootpd.c, line 224
- usr.sbin/bootp/bootpgw/bootpgw.c, line 187
- usr.sbin/btpand/server.c, line 212
- usr.sbin/faithd/faithd.c, 2 times
- usr.sbin/faithd/ftp.c, 4 times
- usr.sbin/inetd/inetd.c, line 875
- usr.sbin/ldpd/ldp_command.c, line 438
- usr.sbin/ldpd/mpls_interface.c, line 137
- usr.sbin/ldpd/socketops.c, line 1007
- usr.sbin/map-mbone/mapper.c, line 888
- usr.sbin/mrinfo/mrinfo.c, line 407
- usr.sbin/mrouted/vif.c, 2 times
- usr.sbin/mtrace/mtrace.c, line 1324
- usr.sbin/sdpd/server.c, line 379
- usr.sbin/syslogd/syslogd.c, line 762
- usr.sbin/traceroute/traceroute_hostops.c, line 53
- usr.sbin/traceroute6/traceroute6.c, 2 times