Home
last modified time | relevance | path

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

12

/external/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 …]
/external/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 …]
/external/ltp/testcases/kernel/module/query_module/
Dquery_module03.c128 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 …]
Dquery_module02.c115 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()
Dquery_module01.c133 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/
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 …]
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt01.c84 } 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/
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 …]
/external/ltp/testcases/kernel/syscalls/accept/
Daccept01.c67 } 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/
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 …]
/external/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()
/external/ltp/testcases/kernel/syscalls/bind/
Dbind01.c78 } 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/
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 …]
/external/ltp/testcases/kernel/module/create_module/
Dcreate_module02.c132 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/
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()
/external/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 …]
/external/ltp/testcases/kernel/module/delete_module/
Ddelete_module02.c70 } 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/
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 …]
/external/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 …]
/external/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c81 } 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/
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()
Dsetresgid02.c108 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()
Dsetresgid03.c108 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/
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 …]

12