Searched refs:sock2 (Results 1 - 7 of 7) sorted by relevance
/freebsd-12-stable/tools/regression/sockets/unix_bindconnect/ |
H A D | unix_bindconnect.c | 89 int sock1, sock2; local 137 sock2 = socket(PF_UNIX, SOCK_STREAM, 0); 138 if (sock2 < 0) { 148 if (bind(sock2, (struct sockaddr *)&sun, sizeof(sun)) == 0) { 151 close(sock2); 157 close(sock2); 168 if (bind(sock2, (struct sockaddr *)&sun, sizeof(sun)) == 0) { 170 close(sock2); 175 close(sock2); 185 if (bind(sock2, (struc 200 int sock1, sock2; local [all...] |
/freebsd-12-stable/tools/regression/sockets/sigpipe/ |
H A D | sigpipe.c | 120 test_send_wantsignal(const char *testname, int sock1, int sock2) argument 123 if (shutdown(sock2, SHUT_WR) < 0) 126 test_send(testname, sock2); 130 close(sock2); 135 test_send_dontsignal(const char *testname, int sock1, int sock2) argument 140 if (setsockopt(sock2, SOL_SOCKET, SO_NOSIGPIPE, &i, sizeof(i)) < 0) 142 if (shutdown(sock2, SHUT_WR) < 0) 145 test_send(testname, sock2); 149 close(sock2); 154 test_write_wantsignal(const char *testname, int sock1, int sock2) argument 169 test_write_dontsignal(const char *testname, int sock1, int sock2) argument [all...] |
/freebsd-12-stable/tools/regression/sockets/zerosend/ |
H A D | zerosend.c | 80 int sock1, sock2; local 99 sock2 = socket(PF_INET, SOCK_DGRAM, 0); 100 if (sock2 < 0) 102 if (bind(sock2, (struct sockaddr *)&sin, sizeof(sin)) < 0) 106 if (connect(sock2, (struct sockaddr *)&sin, sizeof(sin)) < 0) 111 fdp[1] = sock2; 119 int ret, sock1, sock2, sock3; local 144 sock2 = socket(PF_INET, SOCK_STREAM, 0); 145 if (sock2 < 0) 147 if (fcntl(sock2, F_SETF [all...] |
/freebsd-12-stable/crypto/heimdal/appl/test/ |
H A D | nt_gss_server.c | 158 int sock, sock2; local 181 sock2 = accept (sock, NULL, NULL); 182 if (sock2 < 0) 185 return proto (sock2, service);
|
H A D | uu_server.c | 177 int sock, sock2; local 200 sock2 = accept (sock, NULL, NULL); 201 if (sock2 < 0) 204 return proto (sock2, service);
|
H A D | gssapi_server.c | 300 int sock, sock2; local 325 sock2 = accept (sock, NULL, NULL); 326 if (sock2 < 0) 329 ret = proto (sock2, service);
|
/freebsd-12-stable/tools/tools/netrate/juggle/ |
H A D | juggle.c | 100 int sock1, sock2; local 106 sock2 = socket(PF_INET, SOCK_DGRAM, 0); 107 if (sock2 == -1) { 126 close(sock2); 130 if (bind(sock2, (struct sockaddr *) &sin2, sizeof(sin2)) < 0) { 132 close(sock2); 138 close(sock2); 142 if (connect(sock2, (struct sockaddr *) &sin1, sizeof(sin1)) < 0) { 144 close(sock2); 149 *fd2p = sock2; [all...] |
Completed in 122 milliseconds