Lines Matching refs:test
47 try_0send(const char *test, int fd) in try_0send() argument
55 err(1, "%s: try_0send", test); in try_0send()
57 errx(1, "%s: try_0send: returned %zd", test, len); in try_0send()
61 try_0write(const char *test, int fd) in try_0write() argument
69 err(1, "%s: try_0write", test); in try_0write()
71 errx(1, "%s: try_0write: returned %zd", test, len); in try_0write()
75 setup_udp(const char *test, int *fdp, int port1, int port2) in setup_udp() argument
88 err(1, "%s: setup_udp: socket", test); in setup_udp()
90 err(1, "%s: setup_udp: bind(%s, %d)", test, in setup_udp()
94 err(1, "%s: setup_udp: connect(%s, %d)", test, in setup_udp()
99 err(1, "%s: setup_udp: socket", test); in setup_udp()
101 err(1, "%s: setup_udp: bind(%s, %d)", test, in setup_udp()
105 err(1, "%s: setup_udp: connect(%s, %d)", test, in setup_udp()
113 setup_tcp(const char *test, int *fdp, int port) in setup_tcp() argument
131 err(1, "%s: setup_tcp: socket", test); in setup_tcp()
133 err(1, "%s: bind(%s, %d)", test, inet_ntoa(sin.sin_addr), in setup_tcp()
136 err(1, "%s: listen", test); in setup_tcp()
144 err(1, "%s: setup_tcp: socket", test); in setup_tcp()
146 err(1, "%s: setup_tcp: fcntl(O_NONBLOCK)", test); in setup_tcp()
149 err(1, "%s: setup_tcp: connect(%s, %d)", test, in setup_tcp()
157 err(1, "%s: sleep(1)", test); in setup_tcp()
160 err(1, "%s: accept", test); in setup_tcp()
162 err(1, "%s: sleep(1)", test); in setup_tcp()
172 err(1, "%s: setup_tcp: select", test); in setup_tcp()
174 errx(1, "%s: setup_tcp: select: exception", test); in setup_tcp()
176 errx(1, "%s: setup_tcp: select: not writable", test); in setup_tcp()
184 setup_udsstream(const char *test, int *fdp) in setup_udsstream() argument
188 err(1, "%s: setup_udsstream: socketpair", test); in setup_udsstream()
192 setup_udsdgram(const char *test, int *fdp) in setup_udsdgram() argument
196 err(1, "%s: setup_udsdgram: socketpair", test); in setup_udsdgram()
200 setup_pipe(const char *test, int *fdp) in setup_pipe() argument
204 err(1, "%s: setup_pipe: pipe", test); in setup_pipe()
208 setup_fifo(const char *test, int *fdp) in setup_fifo() argument
214 err(1, "%s: setup_fifo: mktemp", test); in setup_fifo()
218 err(1, "%s: setup_fifo: mkfifo(%s)", test, path); in setup_fifo()
222 err(1, "%s: setup_fifo: open(%s, O_RDONLY)", test, path); in setup_fifo()
226 err(1, "%s: setup_fifo: open(%s, O_WRONLY)", test, path); in setup_fifo()