| /src/lib/libc/rpc/ |
| pmap_getmaps.c | 85 int sock = -1; local 95 PMAPVERS, &sock, 50, 500);
|
| pmap_getmaps.c | 85 int sock = -1; local 95 PMAPVERS, &sock, 50, 500);
|
| pmap_getport.c | 95 int sock = -1; local 97 return clnttcp_create(address, PMAPPROG, PMAPVERS, &sock, 0, 0); 100 &sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
|
| pmap_getport.c | 95 int sock = -1; local 97 return clnttcp_create(address, PMAPPROG, PMAPVERS, &sock, 0, 0); 100 &sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
|
| pmap_rmt.c | 94 int sock = -1; local 104 client = clntudp_create(addr, PMAPPROG, PMAPVERS, timeout, &sock);
|
| pmap_rmt.c | 94 int sock = -1; local 104 client = clntudp_create(addr, PMAPPROG, PMAPVERS, timeout, &sock);
|
| /src/sbin/mount_nfs/ |
| udp_xfer.c | 68 int sock; local 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 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/tests/lib/libc/sys/ |
| t_bind.c | 62 int sock = socket(AF_LOCAL, SOCK_STREAM, 0); local 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 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 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 118 ATF_REQUIRE(sock != -1); 120 ATF_REQUIRE(-1 == connect(sock, (struct sockaddr *)&addr, sizeof(addr))); 123 close(sock);
|
| /src/sys/arch/hpcmips/stand/lcboot/ |
| dev_net.c | 98 int sock; local 100 sock = *((int *) f->f_devdata); 101 netif_close(sock);
|
| dev_net.c | 98 int sock; local 100 sock = *((int *) f->f_devdata); 101 netif_close(sock);
|
| /src/usr.sbin/ypset/ |
| ypset.c | 115 int sock, port; local 132 sock = RPC_ANYSOCK; 134 client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
|
| ypset.c | 115 int sock, port; local 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 116 versnum, timeout, &sock)) == NULL)
|
| quota_nfs.c | 105 int sock = RPC_ANYSOCK; local 116 versnum, timeout, &sock)) == NULL)
|
| /src/usr.sbin/apm/ |
| apm.c | 129 int sock, errr; local 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 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 [all...] |
| /src/sbin/iscsictl/ |
| iscsic_main.c | 181 static int sock; /* the socket */ variable 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/arm/imx/ |
| imx_pcic.c | 456 struct imx_pcic_socket *sock = (struct imx_pcic_socket *)arg; local 460 while (sock->sc->sc_shutdown == 0) { 461 (void) tsleep(sock, PWAIT, "imx_pcicev", 0); 464 (void) tsleep((void *)sock, PWAIT, "imx_pcicss", hz/4); 466 cs = (*sock->pcictag->read)(sock, IMX_PCIC_CARD_STATUS); 467 present = sock->flags & IMX_PCIC_FLAG_CARDP; 473 imx_pcic_event_process(sock); 475 sock->event_thread = NULL; 478 wakeup(sock->sc) [all...] |
| /src/sys/arch/arm/xscale/ |
| pxa2x0_pcic.c | 401 struct pxapcic_socket *sock; local 417 sock = &sc->sc_socket[s[i]]; 422 cs = (*sock->pcictag->read)(sock, PXAPCIC_CARD_STATUS); 424 pxapcic_attach_card(sock); 427 sock, &sock->event_thread, "%s,%d", 428 device_xname(sc->sc_dev), sock->socket)) { 431 sock->socket); 453 struct pxapcic_socket *sock = (struct pxapcic_socket *)arg local [all...] |
| /src/usr.bin/netstat/ |
| unix.c | 144 struct socket sock, *so = &sock; local
|