Lines Matching refs:test_wrp

87 #define test_wrp(experr, syscall, ...)				\  macro
109 fails |= test_wrp (EBADF, accept, -1, &sa, &sl); in do_test()
110 fails |= test_wrp (EINVAL, access, "/", -1); in do_test()
111 fails |= test_wrp (EBADF, bind, -1, (struct sockaddr *)&sin, sizeof sin); in do_test()
112 fails |= test_wrp (ENOTDIR, chdir, "/bin/sh"); in do_test()
113 fails |= test_wrp (EBADF, close, -1); in do_test()
114 fails |= test_wrp (EBADF, connect, -1, (struct sockaddr *)&sin, sizeof sin); in do_test()
115 fails |= test_wrp (EBADF, dup, -1); in do_test()
116 fails |= test_wrp (EBADF, dup2, -1, -1); in do_test()
117 fails |= test_wrp (EBADF, fchdir, -1); in do_test()
118 fails |= test_wrp (EBADF, fchmod, -1, 0); in do_test()
119 fails |= test_wrp (EBADF, fcntl, -1, 0); in do_test()
120 fails |= test_wrp (EBADF, fstatfs, -1, &sfs); in do_test()
121 fails |= test_wrp (EBADF, fsync, -1); in do_test()
122 fails |= test_wrp (EBADF, ftruncate, -1, 0); in do_test()
129 fails |= test_wrp (EINVAL, getgroups, -1, 0); in do_test()
133 fails |= test_wrp (EBADF, getpeername, -1, &sa, &sl); in do_test()
134 fails |= test_wrp (EBADF, getsockname, -1, &sa, &sl); in do_test()
135 fails |= test_wrp (EBADF, getsockopt, -1, 0, 0, buf, &sl); in do_test()
136 fails |= test_wrp (EBADF, ioctl, -1, TIOCNOTTY); in do_test()
137 fails |= test_wrp (EBADF, listen, -1, 1); in do_test()
138 fails |= test_wrp (EBADF, lseek, -1, 0, 0); in do_test()
139 fails |= test_wrp (EINVAL, madvise, (void *) -1, -1, 0); in do_test()
142 fails |= test_wrp (EINVAL, mprotect, (void *) -1, pagesize, -1); in do_test()
143 fails |= test_wrp (EINVAL, msync, (void *) -1, pagesize, -1); in do_test()
144 fails |= test_wrp (EINVAL, munmap, (void *) -1, 0); in do_test()
145 fails |= test_wrp (EISDIR, open, "/bin", EISDIR, O_WRONLY); in do_test()
146 fails |= test_wrp (EBADF, read, -1, buf, 1); in do_test()
147 fails |= test_wrp (EINVAL, readlink, "/", buf, sizeof buf); in do_test()
148 fails |= test_wrp (EBADF, readv, -1, iov, 1); in do_test()
149 fails |= test_wrp (EBADF, recv, -1, buf, 1, 0); in do_test()
150 fails |= test_wrp (EBADF, recvfrom, -1, buf, 1, 0, &sa, &sl); in do_test()
151 fails |= test_wrp (EBADF, recvmsg, -1, &msg, 0); in do_test()
152 fails |= test_wrp (EINVAL, select, -1, 0, 0, 0, 0); in do_test()
153 fails |= test_wrp (EBADF, send, -1, buf, 1, 0); in do_test()
154 fails |= test_wrp (EBADF, sendmsg, -1, &msg, 0); in do_test()
155 fails |= test_wrp (EBADF, sendto, -1, buf, 1, 0, &sa, sl); in do_test()
156 fails |= test_wrp (EBADF, setsockopt, -1, 0, 0, buf, sizeof (*buf)); in do_test()
157 fails |= test_wrp (EBADF, shutdown, -1, SHUT_RD); in do_test()
158 fails |= test_wrp (EBADF, write, -1, "Hello", sizeof ("Hello") ); in do_test()
159 fails |= test_wrp (EBADF, writev, -1, iov, 1 ); in do_test()