/freebsd-9.3-release/usr.sbin/mount_portalfs/ |
H A D | pt_tcplisten.c | 51 #include <sys/socket.h> 61 * Create a TCP socket bound to the requested host and port. 66 * XXX! The owner of the socket will be root rather then the user. This 148 so = socket(AF_INET, SOCK_STREAM, 0); 150 syslog(LOG_ERR, "socket: %m"); 175 so = socket(AF_INET, SOCK_STREAM, 0); 177 syslog(LOG_ERR, "socket: %m");
|
H A D | pt_tcp.c | 46 #include <sys/socket.h> 55 * Create a TCP socket connected to the 140 so = socket(AF_INET, SOCK_STREAM, 0); 142 syslog(LOG_ERR, "socket: %m");
|
/freebsd-9.3-release/usr.sbin/rtsold/ |
H A D | probe.c | 37 #include <sys/socket.h> 78 if ((probesock = socket(AF_INET6, SOCK_RAW, IPPROTO_NONE)) < 0) { 79 warnmsg(LOG_ERR, __func__, "socket: %s", strerror(errno)); 83 /* make the socket send-only */ 110 if ((s = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { 111 warnmsg(LOG_ERR, __func__, "socket: %s", strerror(errno));
|
H A D | rtsock.c | 34 #include <sys/socket.h> 86 return (socket(PF_ROUTE, SOCK_RAW, 0));
|
/freebsd-9.3-release/tools/regression/pjdfstest/tests/chmod/ |
H A D | 00.t | 23 for type in regular dir fifo block char socket symlink; do 57 for type in regular dir fifo block char socket symlink; do 88 for type in regular dir fifo block char socket symlink; do
|
/freebsd-9.3-release/tools/regression/pjdfstest/tests/link/ |
H A D | 00.t | 20 for type in regular fifo block char socket; do 57 for type in regular fifo block char socket; do 75 for type in regular fifo block char socket; do
|
/freebsd-9.3-release/tools/regression/pjdfstest/tests/rename/ |
H A D | 00.t | 20 for type in regular fifo block char socket; do 61 for type in regular dir fifo block char socket symlink; do 76 for type in regular dir fifo block char socket symlink; do
|
/freebsd-9.3-release/sys/netinet6/ |
H A D | ip6_var.h | 110 u_short im6o_num_memberships; /* no. memberships this socket */ 111 u_short im6o_max_memberships; /* max memberships this socket */ 318 VNET_DECLARE(struct socket *, ip6_mrouter); /* multicast routing daemon */ 378 int icmp6_ctloutput(struct socket *, struct sockopt *sopt); 421 int ip6_ctloutput(struct socket *, struct sockopt *); 422 int ip6_raw_ctloutput(struct socket *, struct sockopt *); 440 int rip6_ctloutput(struct socket *, struct sockopt *); 442 int rip6_usrreq(struct socket *,
|
/freebsd-9.3-release/contrib/bind9/lib/dns/ |
H A D | request.c | 147 isc_socket_t *socket; local 159 UNUSED(socket); 429 isc_socket_t *socket; local 435 socket = req_getsocket(request); 438 * We could connect the socket when we are using an exclusive dispatch 442 result = isc_socket_sendto(socket, &r, task, req_senddone, 516 isc_socket_t *socket = NULL; local 523 isc_sockettype_tcp, &socket); 530 result = isc_socket_bind(socket, &bind_any, 0); 534 result = isc_socket_bind(socket, 683 isc_socket_t *socket = NULL; local 883 isc_socket_t *socket = NULL; local 1247 isc_socket_t *socket; local 1457 isc_socket_t *socket; local [all...] |
/freebsd-9.3-release/contrib/bsnmp/snmpd/ |
H A D | trap.c | 114 if ((t->socket = socket(PF_INET, SOCK_DGRAM, 0)) == -1) { 115 syslog(LOG_ERR, "socket(UDP): %m"); 119 (void)shutdown(t->socket, SHUT_RD); 128 if (connect(t->socket, (struct sockaddr *)&sa, sa.sin_len) == -1) { 131 (void)close(t->socket); 147 if (t->socket != -1) 148 (void)close(t->socket); 166 if (t->socket != -1) 167 (void)close(t->socket); [all...] |
/freebsd-9.3-release/contrib/traceroute/ |
H A D | ifaddrlist.c | 42 #include <sys/socket.h> 85 fd = socket(AF_INET, SOCK_DGRAM, 0); 87 (void)sprintf(errbuf, "socket: %s", strerror(errno));
|
/freebsd-9.3-release/crypto/openssl/demos/ssl/ |
H A D | cli.cpp | 12 #include <sys/socket.h> 48 /* Create a socket and connect to server using normal socket calls. */ 50 sd = socket (AF_INET, SOCK_STREAM, 0); CHK_ERR(sd, "socket");
|
/freebsd-9.3-release/sys/netinet/ |
H A D | accf_dns.c | 40 static int sohasdns(struct socket *so, void *arg, int waitflag); 73 sohasdns(struct socket *so, void *arg, int waitflag) 77 /* If the socket is full, we're ready. */
|
/freebsd-9.3-release/sys/security/mac_ifoff/ |
H A D | mac_ifoff.c | 52 #include <sys/socket.h> 153 ifoff_socket_check_deliver(struct socket *so, struct label *solabel,
|
/freebsd-9.3-release/sys/security/mac_seeotheruids/ |
H A D | mac_seeotheruids.c | 54 #include <sys/socket.h> 171 seeotheruids_socket_check_visible(struct ucred *cred, struct socket *so,
|
/freebsd-9.3-release/tools/regression/file/ftruncate/ |
H A D | ftruncate.c | 39 #include <sys/socket.h> 143 fd = socket(PF_UNIX, SOCK_STREAM, 0); 145 err(-1, "socket(PF_UNIX, SOCK_STREAM, 0)"); 147 errx(-1, "ftruncate(socket) succeeded"); 149 err(-1, "ftruncate(socket) returned wrong error");
|
/freebsd-9.3-release/tools/regression/netatalk/simple_send/ |
H A D | simple_send.c | 30 #include <sys/socket.h> 58 * not socket receive). 62 * Create a netatalk socket with specified source and destination, if 71 s = socket(PF_APPLETALK, SOCK_DGRAM, ATPROTO_DDP); 73 errx(1, "socket: %s\n", strerror(errno)); 131 * First, create a socket and use explicit sendto() to specify
|
/freebsd-9.3-release/tools/regression/netinet/ipdivert/ |
H A D | ipdivert.c | 40 #include <sys/socket.h> 79 s = socket(PF_INET, SOCK_RAW, IPPROTO_DIVERT); 81 fail(test, "socket"); 123 * First test: create and close an IP divert socket. 131 * Second test: create, bind, and close an IP divert socket.
|
/freebsd-9.3-release/tools/regression/pjdfstest/tests/chflags/ |
H A D | 07.t | 21 for type in regular dir fifo block char socket symlink; do
|
H A D | 10.t | 21 for type in regular dir fifo block char socket symlink; do
|
/freebsd-9.3-release/tools/regression/sockets/so_setfib/ |
H A D | so_setfib.c | 35 * Check that the expected domain(9) families all handle the socket option 49 #include <sys/socket.h> 93 * Try the setsockopt with given FIB number i on socket s. 127 * Main test. Open socket given domain family and type. For each FIB, out of 128 * bounds FIB numbers and 3 random FIB numbers set the socket option. 135 /* PF_ROUTE only supports RAW socket types, while PF_LOCAL does not. */ 141 /* Open socket for given combination. */ 142 s = socket(t_dom[dom].domain, t_type[type].type, 0); 144 printf("not ok %d %s_%s # socket(): %s\n", testno, 157 /* Close socket [all...] |
/freebsd-9.3-release/tools/tools/mcgrab/ |
H A D | mcgrab.cc | 47 #include <sys/socket.h> 105 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { 106 perror("failed to open datagram socket");
|
/freebsd-9.3-release/tools/tools/net80211/wesside/udps/ |
H A D | udps.c | 29 #include <sys/socket.h> 142 s = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); 144 err(1, "socket()");
|
/freebsd-9.3-release/tools/tools/netrate/netblast/ |
H A D | netblast.c | 31 #include <sys/socket.h> 108 * For example, if the UDP socket gets back an ICMP from a 184 s = socket(PF_INET, SOCK_DGRAM, 0); 186 perror("socket");
|
/freebsd-9.3-release/crypto/openssl/crypto/rand/ |
H A D | rand_egd.c | 67 * will actually query "bytes" bytes of entropy form the egd-socket located 76 * num the number of bytes read from the EGD socket. This number is either 89 * num the number of bytes read from the EGD socket. This number is either 117 # include <sys/socket.h> 152 fd = socket(AF_UNIX, SOCK_STREAM, 0);
|