Home
last modified time | relevance | path

Searched refs:tdat (Results 1 – 20 of 20) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c80 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/listen/
Dlisten01.c76 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/getsockname/
Dgetsockname01.c78 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c84 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/recvfrom/
Drecvfrom01.c91 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/syslog/
Dsyslog12.c111 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 …]
Dsyslog11.c99 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()
/third_party/ltp/testcases/kernel/syscalls/recv/
Drecv01.c82 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto01.c80 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 …]
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c108 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/fdatasync/
Dfdatasync02.c102 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()
/third_party/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg01.c104 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 …]
/third_party/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c81 } tdat[] = { variable
113 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
152 tdat[testno].setup(); in main()
155 (s, tdat[testno].sockaddr, tdat[testno].salen)); in main()
157 if (TEST_RETURN != tdat[testno].retval || in main()
159 TEST_ERRNO != tdat[testno].experrno)) { in main()
162 " %d)", tdat[testno].desc, in main()
163 TEST_RETURN, tdat[testno].retval, in main()
164 TEST_ERRNO, tdat[testno].experrno); in main()
167 tdat[testno].desc); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/setresgid/
Dsetresgid01.c103 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()
/third_party/ltp/testcases/kernel/syscalls/send/
Dsend01.c78 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 …]
/third_party/ltp/testcases/kernel/syscalls/socket/
Dsocket01.c30 } tdat[] = { variable
45 struct test_case_t *tc = &tdat[n]; in verify_socket()
82 for (i = 0; i < ARRAY_SIZE(tdat); i++) { in setup()
83 if (tdat[i].experrno == EPROTONOSUPPORT) in setup()
84 tdat[i].experrno = ESOCKTNOSUPPORT; in setup()
89 .tcnt = ARRAY_SIZE(tdat),
/third_party/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair01.c32 } tdat[] = { variable
49 struct test_case_t *tc = &tdat[n]; in verify_socketpair()
86 for (i = 0; i < ARRAY_SIZE(tdat); i++) { in setup()
87 if (tdat[i].experrno == EPROTONOSUPPORT) in setup()
88 tdat[i].experrno = ESOCKTNOSUPPORT; in setup()
93 .tcnt = ARRAY_SIZE(tdat),
/third_party/ltp/testcases/kernel/syscalls/mremap/
Dmremap05.c74 struct test_case_t tdat[] = { variable
119 static int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
225 tdat[testno].setup(&tdat[testno]); in main()
226 test_mremap(&tdat[testno]); in main()
227 tdat[testno].cleanup(&tdat[testno]); in main()
/third_party/ltp/testcases/kernel/syscalls/delete_module/
Ddelete_module02.c47 } tdat[] = { variable
57 struct test_case_t *tc = &tdat[n]; in do_delete_module()
92 .tcnt = ARRAY_SIZE(tdat),
/third_party/ltp/testcases/kernel/syscalls/waitid/
Dwaitid02.c78 struct testcase_t tdat[] = { variable
148 static int TST_TOTAL = ARRAY_SIZE(tdat);
296 test_waitid(&tdat[testno]); in main()