Lines Matching refs:socktype

62 fail(int error, const char *func, const char *socktype, const char *rest)
67 if (socktype == NULL)
70 printf("# %s(%s): %s\n", func, socktype,
73 printf("# %s(%s, %s): %s\n", func, socktype, rest,
79 fail_assertion(const char *func, const char *socktype, const char *rest,
85 if (socktype == NULL)
90 socktype, assertion);
93 socktype, rest, assertion);
104 test_evfilt_read(int kq, int fd[2], const char *socktype)
114 fail(errno, "kevent", socktype, "EVFILT_READ, EV_ADD");
124 fail(errno, "kevent", socktype, "EVFILT_READ");
127 fail_assertion("kevent", socktype, "EVFILT_READ",
137 fail(errno, "write", socktype, NULL);
140 fail_assertion("write", socktype, NULL, "write length");
150 fail(errno, "kevent", socktype, "EVFILT_READ");
153 fail_assertion("kevent", socktype, "EVFILT_READ",
162 fail(errno, "read", socktype, NULL);
165 fail_assertion("read", socktype, NULL, "read length");
175 fail(errno, "kevent", socktype, "EVFILT_READ");
178 fail_assertion("kevent", socktype, "EVFILT_READ",
184 fail(errno, "kevent", socktype, "EVFILT_READ, EV_DELETE");
189 test_evfilt_write(int kq, int fd[2], const char *socktype)
199 fail(errno, "kevent", socktype, "EVFILT_WRITE, EV_ADD");
209 fail(errno, "kevent", socktype, "EVFILT_WRITE");
212 fail_assertion("kevent", socktype, "EVFILT_WRITE",
222 fail(errno, "write", socktype, NULL);
225 fail_assertion("write", socktype, NULL, "write length");
235 fail(errno, "kevent", socktype, "EVFILT_WRITE");
238 fail_assertion("kevent", socktype, "EVFILT_WRITE",
244 fail(errno, "kevent", socktype, "EVFILT_WRITE, EV_DELETE");