Searched refs:sock1 (Results 1 - 4 of 4) sorted by relevance

/freebsd-11-stable/tools/regression/sockets/unix_bindconnect/
H A Dunix_bindconnect.c89 int sock1, sock2; local
91 sock1 = socket(PF_UNIX, SOCK_STREAM, 0);
92 if (sock1 < 0) {
100 close(sock1);
110 close(sock1);
114 if (bind(sock1, (struct sockaddr *)&sun, sizeof(sun)) < 0) {
116 close(sock1);
126 if (bind(sock1, (struct sockaddr *)&sun, sizeof(sun)) == 0) {
128 close(sock1);
133 close(sock1);
200 int sock1, sock2; local
[all...]
/freebsd-11-stable/tools/regression/sockets/zerosend/
H A Dzerosend.c80 int sock1, sock2; local
88 sock1 = socket(PF_INET, SOCK_DGRAM, 0);
89 if (sock1 < 0)
91 if (bind(sock1, (struct sockaddr *)&sin, sizeof(sin)) < 0)
95 if (connect(sock1, (struct sockaddr *)&sin, sizeof(sin)) < 0)
110 fdp[0] = sock1;
119 int ret, sock1, sock2, sock3; local
131 sock1 = socket(PF_INET, SOCK_STREAM, 0);
132 if (sock1 < 0)
134 if (bind(sock1, (struc
[all...]
/freebsd-11-stable/tools/regression/sockets/sigpipe/
H A Dsigpipe.c120 test_send_wantsignal(const char *testname, int sock1, int sock2) argument
129 close(sock1);
135 test_send_dontsignal(const char *testname, int sock1, int sock2) argument
148 close(sock1);
154 test_write_wantsignal(const char *testname, int sock1, int sock2) argument
163 close(sock1);
169 test_write_dontsignal(const char *testname, int sock1, int sock2) argument
182 close(sock1);
/freebsd-11-stable/tools/tools/netrate/juggle/
H A Djuggle.c113 int sock1, sock2; local
115 sock1 = socket(PF_INET, SOCK_DGRAM, 0);
116 if (sock1 == -1)
121 close(sock1);
137 if (bind(sock1, (struct sockaddr *) &sin1, sizeof(sin1)) < 0) {
138 close(sock1);
144 close(sock1);
149 if (connect(sock1, (struct sockaddr *) &sin2, sizeof(sin2)) < 0) {
150 close(sock1);
156 close(sock1);
[all...]

Completed in 107 milliseconds