/src/tests/lib/libc/sys/ |
t_bind.c | 62 int sock = socket(AF_LOCAL, SOCK_STREAM, 0); local in function:ATF_TC_BODY 63 ATF_REQUIRE(sock != -1); 66 ATF_REQUIRE(-1 == bind(sock, (struct sockaddr *)&addr, sizeof(addr))); 69 close(sock);
|
t_bind.c | 62 int sock = socket(AF_LOCAL, SOCK_STREAM, 0); local in function:ATF_TC_BODY 63 ATF_REQUIRE(sock != -1); 66 ATF_REQUIRE(-1 == bind(sock, (struct sockaddr *)&addr, sizeof(addr))); 69 close(sock);
|
t_connect.c | 117 int sock = socket(AF_LOCAL, SOCK_STREAM, 0); local in function:ATF_TC_BODY 118 ATF_REQUIRE(sock != -1); 120 ATF_REQUIRE(-1 == connect(sock, (struct sockaddr *)&addr, sizeof(addr))); 123 close(sock);
|
t_connect.c | 117 int sock = socket(AF_LOCAL, SOCK_STREAM, 0); local in function:ATF_TC_BODY 118 ATF_REQUIRE(sock != -1); 120 ATF_REQUIRE(-1 == connect(sock, (struct sockaddr *)&addr, sizeof(addr))); 123 close(sock);
|
/src/lib/libc/rpc/ |
pmap_getmaps.c | 85 int sock = -1; local in function:__weak_alias 95 PMAPVERS, &sock, 50, 500);
|
pmap_getmaps.c | 85 int sock = -1; local in function:__weak_alias 95 PMAPVERS, &sock, 50, 500);
|
pmap_getport.c | 95 int sock = -1; local in function:get_client 97 return clnttcp_create(address, PMAPPROG, PMAPVERS, &sock, 0, 0); 100 &sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
|
pmap_getport.c | 95 int sock = -1; local in function:get_client 97 return clnttcp_create(address, PMAPPROG, PMAPVERS, &sock, 0, 0); 100 &sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
|
pmap_rmt.c | 94 int sock = -1; local in function:pmap_rmtcall 104 client = clntudp_create(addr, PMAPPROG, PMAPVERS, timeout, &sock);
|
pmap_rmt.c | 94 int sock = -1; local in function:pmap_rmtcall 104 client = clntudp_create(addr, PMAPPROG, PMAPVERS, timeout, &sock);
|
/src/sbin/mount_nfs/ |
udp_xfer.c | 68 int sock; local in function:sendudp 76 sock = socket(d->ai->ai_family, SOCK_DGRAM, IPPROTO_UDP); 77 if (sock < 0) 79 d->socket = sock; 82 setsockopt(sock, IPPROTO_IP, IP_PORTRANGE, &range, sizeof(range)); 84 if (connect(sock, d->ai->ai_addr, d->ai->ai_addrlen) != 0) 87 return send(sock, pkt, len, 0);
|
udp_xfer.c | 68 int sock; local in function:sendudp 76 sock = socket(d->ai->ai_family, SOCK_DGRAM, IPPROTO_UDP); 77 if (sock < 0) 79 d->socket = sock; 82 setsockopt(sock, IPPROTO_IP, IP_PORTRANGE, &range, sizeof(range)); 84 if (connect(sock, d->ai->ai_addr, d->ai->ai_addrlen) != 0) 87 return send(sock, pkt, len, 0);
|
/src/sys/arch/hpcmips/stand/lcboot/ |
dev_net.c | 98 int sock; local in function:net_close 100 sock = *((int *) f->f_devdata); 101 netif_close(sock);
|
dev_net.c | 98 int sock; local in function:net_close 100 sock = *((int *) f->f_devdata); 101 netif_close(sock);
|
/src/usr.sbin/ypset/ |
ypset.c | 115 int sock, port; local in function:bind_tohost 132 sock = RPC_ANYSOCK; 134 client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
|
ypset.c | 115 int sock, port; local in function:bind_tohost 132 sock = RPC_ANYSOCK; 134 client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
|
/src/lib/libquota/ |
quota_nfs.c | 105 int sock = RPC_ANYSOCK; local in function:callaurpc 116 versnum, timeout, &sock)) == NULL)
|
quota_nfs.c | 105 int sock = RPC_ANYSOCK; local in function:callaurpc 116 versnum, timeout, &sock)) == NULL)
|
/src/usr.sbin/apm/ |
apm.c | 129 int sock, errr; local in function:open_socket 131 sock = socket(AF_LOCAL, SOCK_STREAM, 0); 132 if (sock == -1) 138 if (connect(sock, (struct sockaddr *)&s_un, s_un.sun_len) == -1) { 140 close(sock); 144 return (sock);
|
apm.c | 129 int sock, errr; local in function:open_socket 131 sock = socket(AF_LOCAL, SOCK_STREAM, 0); 132 if (sock == -1) 138 if (connect(sock, (struct sockaddr *)&s_un, s_un.sun_len) == -1) { 140 close(sock); 144 return (sock);
|
/src/regress/sys/net/frag/ |
ip4_frag_1.c | 156 test_case_0(int sock, in_addr_t target) 166 send_packet(sock, p, target); 169 send_packet(sock, p, target); 173 test_case_1(int sock, in_addr_t target) 185 send_packet(sock, p, target); 189 send_packet(sock, p, target); 193 test_case_2(int sock, in_addr_t target) 206 send_packet(sock, p, target); 209 send_packet(sock, p, target); 213 test_case_3(int sock, in_addr_t target 305 int sock; local in function:main [all...] |
/src/sbin/iscsictl/ |
iscsic_main.c | 181 static int sock; /* the socket */ variable in typeref:typename:int 204 close(sock); 407 ret = recv(sock, rsp, len, MSG_PEEK | MSG_WAITALL); 430 ret = recv(sock, rsp, len, MSG_WAITALL); 496 ret = sendto(sock, req, len, 0, (struct sockaddr *)(void *)&daemon_name, 552 sock = socket(AF_UNIX, SOCK_DGRAM, 0); 553 if (sock < 0) 562 if (bind(sock, (struct sockaddr *)(void *)&myname, 574 close(sock);
|
/src/sys/arch/hpc/stand/hpcboot/ |
file_http.cpp | 265 Socket sock(_sockaddr); local in function:HttpFile::read 267 if ((h = sock) == INVALID_SOCKET) 310 Socket sock(_sockaddr); local in function:HttpFile::_parse_header 312 if ((h = sock) == INVALID_SOCKET) { 387 Socket::Socket(struct sockaddr_in &sock) 388 : _sockaddr(sock)
|
/src/tests/lib/libc/rpc/ |
t_rpc.c | 48 struct sockaddr *sock = raddrp->buf; local in function:reply 52 error = getnameinfo(sock, sock->sa_len, host, sizeof(host), NULL, 0, 0);
|
/src/usr.bin/netstat/ |
unix.c | 144 struct socket sock, *so = &sock; local in function:unixpr
|