HomeSort by: relevance | last modified time | path
    Searched defs:sock (Results 1 - 25 of 243) sorted by relevancy

1 2 3 4 5 6 7 8 910

  /src/external/apache2/mDNSResponder/dist/ServiceRegistration/
icmp.h 23 int sock; member in struct:icmp_listener
  /src/external/ibm-public/postfix/dist/src/util/
unix_connect.c 66 int sock; local
83 if ((sock = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
90 non_blocking(sock, NON_BLOCKING);
91 if (timed_connect(sock, (struct sockaddr *) &sun, sizeof(sun), timeout) < 0) {
92 close(sock);
96 non_blocking(sock, block_mode);
97 return (sock);
104 non_blocking(sock, block_mode);
105 if (sane_connect(sock, (struct sockaddr *) &sun, sizeof(sun)) < 0
107 close(sock);
    [all...]
unix_dgram_connect.c 69 int sock; local
86 if ((sock = socket(AF_UNIX, SOCK_DGRAM, 0)) < 0)
88 if (connect(sock, (struct sockaddr *) &sun, sizeof(sun)) < 0) {
89 close(sock);
92 non_blocking(sock, block_mode);
93 return (sock);
unix_dgram_listen.c 64 int sock; local
81 if ((sock = socket(AF_UNIX, SOCK_DGRAM, 0)) < 0)
85 if (bind(sock, (struct sockaddr *) &sun, sizeof(sun)) < 0)
88 if (fchmod(sock, 0666) < 0)
94 non_blocking(sock, block_mode);
95 return (sock);
unix_listen.c 73 int sock; local
91 if ((sock = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
95 if (bind(sock, (struct sockaddr *) &sun, sizeof(sun)) < 0)
98 if (fchmod(sock, 0666) < 0)
104 non_blocking(sock, block_mode);
105 if (listen(sock, backlog) < 0)
107 return (sock);
  /src/external/gpl3/gdb/dist/gnulib/import/
accept.c 34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 SOCKET fh = accept (sock, addr, addrlen);
bind.c 34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 int r = bind (sock, sockaddr, len);
connect.c 34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 int r = connect (sock, sockaddr, len);
listen.c 34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 int r = listen (sock, backlog);
setsockopt.c 37 SOCKET sock = FD_TO_SOCKET (fd); local
40 if (sock == INVALID_SOCKET)
53 r = setsockopt (sock, level, optname, optval, sizeof (int));
57 r = setsockopt (sock, level, optname, optval, optlen);
sockets.c 48 as sock; then the primary close() would call CloseHandle() on it. */
49 SOCKET sock; local
53 sock = FD_TO_SOCKET (fd);
55 WSAEnumNetworkEvents (sock, NULL, &ev);
63 if (closesocket (sock))
86 SOCKET sock; local
90 sock = FD_TO_SOCKET (fd);
92 WSAEnumNetworkEvents (sock, NULL, &ev);
96 if (ioctlsocket (sock, request, arg) < 0)
  /src/external/gpl3/gdb.old/dist/gnulib/import/
accept.c 34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 SOCKET fh = accept (sock, addr, addrlen);
bind.c 34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 int r = bind (sock, sockaddr, len);
connect.c 34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 int r = connect (sock, sockaddr, len);
listen.c 34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 int r = listen (sock, backlog);
setsockopt.c 37 SOCKET sock = FD_TO_SOCKET (fd); local
40 if (sock == INVALID_SOCKET)
53 r = setsockopt (sock, level, optname, optval, sizeof (int));
57 r = setsockopt (sock, level, optname, optval, optlen);
sockets.c 48 as sock; then the primary close() would call CloseHandle() on it. */
49 SOCKET sock; local
53 sock = FD_TO_SOCKET (fd);
55 WSAEnumNetworkEvents (sock, NULL, &ev);
63 if (closesocket (sock))
86 SOCKET sock; local
90 sock = FD_TO_SOCKET (fd);
92 WSAEnumNetworkEvents (sock, NULL, &ev);
96 if (ioctlsocket (sock, request, arg) < 0)
  /src/external/ibm-public/postfix/dist/src/local/
biff_notify.c 59 static int sock = -1; local
87 if (sock < 0) {
88 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
92 close_on_exec(sock, CLOSE_ON_EXEC);
98 if (sendto(sock, text, len, 0, (struct sockaddr *) &sin, sizeof(sin)) != len)
  /src/lib/libc/rpc/
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);
  /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);
  /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);
  /src/external/mit/libuv/dist/test/
test-poll-closesocket.c 29 static uv_os_sock_t sock; variable
48 closesocket(sock);
67 sock = socket(AF_INET, SOCK_STREAM, 0);
68 ASSERT_NE(sock, INVALID_SOCKET);
70 r = ioctlsocket(sock, FIONBIO, &on);
76 r = connect(sock, (const struct sockaddr*) &addr, sizeof addr);
80 r = uv_poll_init_socket(uv_default_loop(), &handle, sock);
  /src/sys/arch/hpcmips/stand/lcboot/
dev_net.c 98 int sock; local
100 sock = *((int *) f->f_devdata);
101 netif_close(sock);
  /src/crypto/external/bsd/heimdal/dist/lib/kadm5/
send_recv.c 46 krb5_storage *sock; local
48 assert(context->sock != rk_INVALID_SOCKET);
64 sock = krb5_storage_from_socket(context->sock);
65 if(sock == NULL) {
71 ret = krb5_store_data(sock, out);
74 krb5_storage_free(sock);
84 krb5_storage *sock; local
86 sock = krb5_storage_from_socket(context->sock);
    [all...]

Completed in 46 milliseconds

1 2 3 4 5 6 7 8 910