/external/ltp/testcases/kernel/syscalls/sockioctl/ |
D | sockioctl01.c | 80 } tdat[] = { variable 119 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 132 tdat[testno].setup(); in main() 134 TEST(ioctl(s, tdat[testno].cmd, tdat[testno].arg)); in main() 135 if (TEST_RETURN != tdat[testno].retval || in main() 137 TEST_ERRNO != tdat[testno].experrno)) { in main() 140 " %d)", tdat[testno].desc, in main() 141 TEST_RETURN, tdat[testno].retval, in main() 142 TEST_ERRNO, tdat[testno].experrno); in main() 145 tdat[testno].desc); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/listen/ |
D | listen01.c | 76 } tdat[] = { variable 83 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 96 tdat[testno].setup(); in main() 98 TEST(listen(s, tdat[testno].backlog)); in main() 99 if (TEST_RETURN != tdat[testno].retval || in main() 101 TEST_ERRNO != tdat[testno].experrno)) { in main() 104 " %d)", tdat[testno].desc, in main() 105 TEST_RETURN, tdat[testno].retval, in main() 106 TEST_ERRNO, tdat[testno].experrno); in main() 109 tdat[testno].desc); in main() [all …]
|
/external/ltp/testcases/kernel/module/query_module/ |
D | query_module03.c | 128 static struct test_case_t tdat[] = { variable 149 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 166 if ((tdat[testno].setup) && (tdat[testno].setup())) { in main() 170 TEST(query_module(tdat[testno].modname, in main() 171 tdat[testno].which, tdat[testno].buf, in main() 172 tdat[testno].bufsize, in main() 173 tdat[testno].ret_size)); in main() 175 (TEST_ERRNO == tdat[testno].experrno)) { in main() 177 tdat[testno].desc, TEST_ERRNO); in main() 181 " %d)", tdat[testno].desc, in main() [all …]
|
D | query_module02.c | 115 static struct test_case_t tdat[] = { variable 138 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 154 TEST(query_module(tdat[testno].modname, in main() 155 tdat[testno].which, tdat[testno].buf, in main() 156 tdat[testno].bufsize, &ret_size)); in main() 158 (TEST_ERRNO == tdat[testno].experrno)) { in main() 160 tdat[testno].desc, TEST_ERRNO); in main() 164 " %d)", tdat[testno].desc, in main() 166 TEST_ERRNO, tdat[testno].experrno); in main()
|
D | query_module01.c | 133 static struct test_case_t tdat[] = { variable 152 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 169 if ((tdat[testno].setup) && (tdat[testno].setup())) { in main() 174 TEST(query_module(tdat[testno].modname, in main() 175 tdat[testno].which, (void *)out_buf, in main() 179 !test_functionality(tdat[testno].which, in main() 182 "for %s", tdat[testno].desc); in main() 187 " 0)", tdat[testno].desc, in main() 190 if (tdat[testno].cleanup) { in main() 191 tdat[testno].cleanup(); in main()
|
/external/ltp/testcases/kernel/syscalls/getsockname/ |
D | getsockname01.c | 78 } tdat[] = { variable 103 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 116 tdat[testno].setup(); in main() 118 TEST(getsockname(s, tdat[testno].sockaddr, in main() 119 tdat[testno].salen)); in main() 120 if (TEST_RETURN != tdat[testno].retval || in main() 122 TEST_ERRNO != tdat[testno].experrno)) { in main() 125 " %d)", tdat[testno].desc, in main() 126 TEST_RETURN, tdat[testno].retval, in main() 127 TEST_ERRNO, tdat[testno].experrno); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt01.c | 84 } tdat[] = { variable 130 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 142 tdat[testno].setup(); in main() 144 TEST(setsockopt(s, tdat[testno].level, in main() 145 tdat[testno].optname, in main() 146 tdat[testno].optval, in main() 147 tdat[testno].optlen)); in main() 152 if (TEST_RETURN != tdat[testno].retval || in main() 154 TEST_ERRNO != tdat[testno].experrno)) { in main() 157 " %d)", tdat[testno].desc, in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 84 } tdat[] = { variable 128 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 141 tdat[testno].setup(); in main() 143 TEST(getsockopt(s, tdat[testno].level, in main() 144 tdat[testno].optname, in main() 145 tdat[testno].optval, in main() 146 tdat[testno].optlen)); in main() 147 if (TEST_RETURN != tdat[testno].retval || in main() 149 TEST_ERRNO != tdat[testno].experrno)) { in main() 152 " %d)", tdat[testno].desc, in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/accept/ |
D | accept01.c | 67 } tdat[] = { variable 91 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 104 tdat[testno].setup(); in main() 106 TEST(accept(s, tdat[testno].sockaddr, in main() 107 tdat[testno].salen)); in main() 110 if (TEST_RETURN != tdat[testno].retval || in main() 112 TEST_ERRNO != tdat[testno].experrno)) { in main() 115 " %d)", tdat[testno].desc, in main() 116 TEST_RETURN, tdat[testno].retval, in main() 117 TEST_ERRNO, tdat[testno].experrno); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/recvfrom/ |
D | recvfrom01.c | 91 } tdat[] = { variable 127 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 150 && (tdat[testno].flags & MSG_ERRQUEUE) in main() 151 && (tdat[testno].type & SOCK_STREAM)) { in main() 157 tdat[testno].setup(); in main() 158 TEST(recvfrom(s, tdat[testno].buf, tdat[testno].buflen, in main() 159 tdat[testno].flags, tdat[testno].from, in main() 160 tdat[testno].salen)); in main() 163 if (TEST_RETURN != tdat[testno].retval || in main() 165 TEST_ERRNO != tdat[testno].experrno)) { in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/syslog/ |
D | syslog12.c | 111 static struct test_case_t tdat[] = { variable 120 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 125 " for %s", tdat[testno].desc); in timeout() 149 if (tdat[testno].setup && tdat[testno].setup()) { in main() 156 TEST(syslog(tdat[testno].type, tdat[testno].buf, in main() 157 tdat[testno].len)); in main() 164 (TEST_ERRNO == tdat[testno].exp_errno)) { in main() 167 tdat[testno].desc, TEST_ERRNO); in main() 172 " %d)", tdat[testno].desc, in main() 174 tdat[testno].exp_errno); in main() [all …]
|
D | syslog11.c | 99 static struct test_case_t tdat[] = { variable 117 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 132 if (tdat[testno].setup && tdat[testno].setup()) { in main() 137 TEST(syslog(tdat[testno].type, tdat[testno].buf, in main() 138 tdat[testno].len)); in main() 144 tdat[testno].desc); in main() 148 "%d (%s)", tdat[testno].desc, in main() 153 tdat[testno].desc); in main() 156 if (tdat[testno].cleanup) { in main() 157 tdat[testno].cleanup(); in main()
|
/external/ltp/testcases/kernel/syscalls/bind/ |
D | bind01.c | 78 } tdat[] = { variable 105 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 119 tdat[testno].setup(); in main() 122 (s, tdat[testno].sockaddr, tdat[testno].salen)); in main() 127 if (TEST_RETURN != tdat[testno].retval || in main() 129 TEST_ERRNO != tdat[testno].experrno)) { in main() 132 " %d)", tdat[testno].desc, in main() 133 TEST_RETURN, tdat[testno].retval, in main() 134 TEST_ERRNO, tdat[testno].experrno); in main() 137 tdat[testno].desc); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/recv/ |
D | recv01.c | 82 } tdat[] = { variable 106 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 128 && (tdat[testno].flags & MSG_ERRQUEUE) in main() 129 && (tdat[testno].type & SOCK_STREAM)) { in main() 135 tdat[testno].setup(); in main() 136 TEST(recv(s, tdat[testno].buf, tdat[testno].buflen, in main() 137 tdat[testno].flags)); in main() 140 if (TEST_RETURN != tdat[testno].retval || in main() 142 TEST_ERRNO != tdat[testno].experrno)) { in main() 145 " %d)", tdat[testno].desc, in main() [all …]
|
/external/ltp/testcases/kernel/module/create_module/ |
D | create_module02.c | 132 static struct test_case_t tdat[] = { variable 157 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 172 if ((tdat[testno].setup) && (tdat[testno].setup())) { in main() 177 TEST(create_module(tdat[testno].modname, in main() 178 tdat[testno].size)); in main() 179 if ((TEST_RETURN == (int)tdat[testno].retval) && in main() 180 (TEST_ERRNO == tdat[testno].experrno)) { in main() 183 tdat[testno].desc, TEST_ERRNO); in main() 187 "(expected %d)", tdat[testno].desc, in main() 188 TEST_RETURN, tdat[testno].retval, in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/fdatasync/ |
D | fdatasync02.c | 102 static struct test_case_t tdat[] = { variable 107 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 122 if ((tdat[testno].setup) && (tdat[testno].setup())) { in main() 130 (TEST_ERRNO == tdat[testno].experrno)) { in main() 132 "errno: %d", tdat[testno].desc, in main() 137 "(expected %d)", tdat[testno].desc, in main() 139 TEST_ERRNO, tdat[testno].experrno); in main() 141 if (tdat[testno].cleanup) { in main() 142 tdat[testno].cleanup(); in main()
|
/external/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto01.c | 80 struct test_case_t tdat[] = { variable 228 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 337 tdat[testno].setup(); in main() 339 TEST(sendto(s, tdat[testno].buf, tdat[testno].buflen, in main() 340 tdat[testno].flags, in main() 341 (const struct sockaddr *)tdat[testno].to, in main() 342 tdat[testno].tolen)); in main() 347 if (TEST_RETURN != tdat[testno].retval || in main() 349 TEST_ERRNO != tdat[testno].experrno)) { in main() 352 " %d)", tdat[testno].desc, in main() [all …]
|
/external/ltp/testcases/kernel/module/delete_module/ |
D | delete_module02.c | 70 } tdat[] = { variable 79 int TST_TOTAL = ARRAY_SIZE(tdat); 94 if (tdat[i].setup) in main() 95 tdat[i].setup(); in main() 97 tst_resm(TINFO, "test %s", tdat[i].desc); in main() 99 tdat[i].modname, 0)); in main() 104 } else if (TEST_ERRNO == tdat[i].experrno) { in main() 110 "%d - %s", tdat[i].experrno, in main() 111 strerror(tdat[i].experrno)); in main() 113 if (tdat[i].cleanup) in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg01.c | 108 } tdat[] = { variable 183 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 205 && (tdat[testno].flags & MSG_ERRQUEUE) in main() 206 && (tdat[testno].type & SOCK_STREAM)) { in main() 212 tdat[testno].setup(); in main() 215 iov[0].iov_base = tdat[testno].buf; in main() 216 iov[0].iov_len = tdat[testno].buflen; in main() 217 msgdat.msg_name = tdat[testno].from; in main() 218 msgdat.msg_namelen = tdat[testno].fromlen; in main() 219 msgdat.msg_iov = tdat[testno].iov; in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
D | sendmsg01.c | 104 struct test_case_t tdat[] = { variable 359 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 381 tdat[testno].setup(); in main() 383 iov[0].iov_base = tdat[testno].buf; in main() 384 iov[0].iov_len = tdat[testno].buflen; in main() 385 if (tdat[testno].type != SOCK_STREAM) { in main() 386 msgdat.msg_name = tdat[testno].to; in main() 387 msgdat.msg_namelen = tdat[testno].tolen; in main() 389 msgdat.msg_iov = tdat[testno].iov; in main() 390 msgdat.msg_iovlen = tdat[testno].iovcnt; in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/connect/ |
D | connect01.c | 81 } tdat[] = { variable 113 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 134 tdat[testno].setup(); in main() 137 (s, tdat[testno].sockaddr, tdat[testno].salen)); in main() 139 if (TEST_RETURN != tdat[testno].retval || in main() 141 TEST_ERRNO != tdat[testno].experrno)) { in main() 144 " %d)", tdat[testno].desc, in main() 145 TEST_RETURN, tdat[testno].retval, in main() 146 TEST_ERRNO, tdat[testno].experrno); in main() 149 tdat[testno].desc); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/setresgid/ |
D | setresgid01.c | 103 static struct test_case_t tdat[] = { variable 116 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 132 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main() 133 *tdat[testno].sgid)); in main() 137 (tdat[testno].exp_rgid->pw_gid, in main() 138 tdat[testno].exp_egid->pw_gid, in main() 139 tdat[testno].exp_sgid->pw_gid)) { in main() 143 tdat[testno].desc); in main() 147 tdat[testno].desc); in main() 152 " 0)", tdat[testno].desc, in main()
|
D | setresgid02.c | 108 static struct test_case_t tdat[] = { variable 123 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 139 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main() 140 *tdat[testno].sgid)); in main() 144 (tdat[testno].exp_rgid->pw_gid, in main() 145 tdat[testno].exp_egid->pw_gid, in main() 146 tdat[testno].exp_sgid->pw_gid)) { in main() 150 tdat[testno].desc); in main() 154 tdat[testno].desc); in main() 159 " 0)", tdat[testno].desc, in main()
|
D | setresgid03.c | 108 static struct test_case_t tdat[] = { variable 115 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 131 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main() 132 *tdat[testno].sgid)); in main() 138 (tdat[testno].exp_rgid->pw_gid, in main() 139 tdat[testno].exp_egid->pw_gid, in main() 140 tdat[testno].exp_sgid->pw_gid)) { in main()
|
/external/ltp/testcases/kernel/syscalls/send/ |
D | send01.c | 78 static struct test_case_t tdat[] = { variable 158 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 268 tdat[testno].setup(); in main() 270 TEST(send(s, tdat[testno].buf, tdat[testno].buflen, in main() 271 tdat[testno].flags)); in main() 278 if (TEST_ERRNO != tdat[testno].experrno) { in main() 281 " %d)", tdat[testno].desc, in main() 282 TEST_RETURN, tdat[testno].retval, in main() 283 TEST_ERRNO, tdat[testno].experrno); in main() 286 tdat[testno].desc); in main() [all …]
|