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

12

/external/ltp/testcases/kernel/syscalls/listen/
H A Dlisten01.c75 } tdat[] = { variable in typeref:struct:test_case_t
82 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
95 tdat[testno].setup();
97 TEST(listen(s, tdat[testno].backlog));
98 if (TEST_RETURN != tdat[testno].retval ||
100 TEST_ERRNO != tdat[testno].experrno)) {
103 " %d)", tdat[testno].desc,
104 TEST_RETURN, tdat[testno].retval,
105 TEST_ERRNO, tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/fdatasync/
H A Dfdatasync02.c101 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
106 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
121 if ((tdat[testno].setup) && (tdat[testno].setup())) {
129 (TEST_ERRNO == tdat[testno].experrno)) {
131 "errno: %d", tdat[testno].desc,
136 "(expected %d)", tdat[testno].desc,
138 TEST_ERRNO, tdat[testno].experrno);
140 if (tdat[testn
[all...]
/external/ltp/testcases/kernel/module/query_module/
H A Dquery_module03.c128 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
149 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
166 if ((tdat[testno].setup) && (tdat[testno].setup())) {
170 TEST(query_module(tdat[testno].modname,
171 tdat[testno].which, tdat[testno].buf,
172 tdat[testno].bufsize,
173 tdat[testn
[all...]
H A Dquery_module02.c115 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
138 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
154 TEST(query_module(tdat[testno].modname,
155 tdat[testno].which, tdat[testno].buf,
156 tdat[testno].bufsize, &ret_size));
158 (TEST_ERRNO == tdat[testno].experrno)) {
160 tdat[testno].desc, TEST_ERRNO);
164 " %d)", tdat[testn
[all...]
H A Dquery_module01.c133 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
152 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
169 if ((tdat[testno].setup) && (tdat[testno].setup())) {
174 TEST(query_module(tdat[testno].modname,
175 tdat[testno].which, (void *)out_buf,
179 !test_functionality(tdat[testno].which,
182 "for %s", tdat[testno].desc);
187 " 0)", tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/syslog/
H A Dsyslog11.c98 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
116 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
131 if (tdat[testno].setup && tdat[testno].setup()) {
136 TEST(syslog(tdat[testno].type, tdat[testno].buf,
137 tdat[testno].len));
143 tdat[testno].desc);
147 "%d (%s)", tdat[testn
[all...]
H A Dsyslog12.c110 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
119 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
124 " for %s", tdat[testno].desc);
148 if (tdat[testno].setup && tdat[testno].setup()) {
155 TEST(syslog(tdat[testno].type, tdat[testno].buf,
156 tdat[testno].len));
163 (TEST_ERRNO == tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/getsockname/
H A Dgetsockname01.c77 } tdat[] = { variable in typeref:struct:test_case_t
102 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
115 tdat[testno].setup();
117 TEST(getsockname(s, tdat[testno].sockaddr,
118 tdat[testno].salen));
119 if (TEST_RETURN != tdat[testno].retval ||
121 TEST_ERRNO != tdat[testno].experrno)) {
124 " %d)", tdat[testno].desc,
125 TEST_RETURN, tdat[testn
[all...]
/external/ltp/testcases/kernel/module/delete_module/
H A Ddelete_module02.c69 } tdat[] = { variable in typeref:struct:test_case_t
78 int TST_TOTAL = ARRAY_SIZE(tdat);
93 if (tdat[i].setup)
94 tdat[i].setup();
96 tst_resm(TINFO, "test %s", tdat[i].desc);
98 tdat[i].modname, 0));
103 } else if (TEST_ERRNO == tdat[i].experrno) {
109 "%d - %s", tdat[i].experrno,
110 strerror(tdat[i].experrno));
112 if (tdat[
[all...]
/external/ltp/testcases/kernel/syscalls/getsockopt/
H A Dgetsockopt01.c83 } tdat[] = { variable in typeref:struct:test_case_t
127 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
140 tdat[testno].setup();
142 TEST(getsockopt(s, tdat[testno].level,
143 tdat[testno].optname,
144 tdat[testno].optval,
145 tdat[testno].optlen));
146 if (TEST_RETURN != tdat[testno].retval ||
148 TEST_ERRNO != tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/setsockopt/
H A Dsetsockopt01.c83 } tdat[] = { variable in typeref:struct:test_case_t
129 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
141 tdat[testno].setup();
143 TEST(setsockopt(s, tdat[testno].level,
144 tdat[testno].optname,
145 tdat[testno].optval,
146 tdat[testno].optlen));
151 if (TEST_RETURN != tdat[testno].retval ||
153 TEST_ERRNO != tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/setresgid/
H A Dsetresgid01.c102 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
115 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
131 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid,
132 *tdat[testno].sgid));
136 (tdat[testno].exp_rgid->pw_gid,
137 tdat[testno].exp_egid->pw_gid,
138 tdat[testno].exp_sgid->pw_gid)) {
142 tdat[testn
[all...]
H A Dsetresgid03.c107 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
114 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
130 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid,
131 *tdat[testno].sgid));
137 (tdat[testno].exp_rgid->pw_gid,
138 tdat[testno].exp_egid->pw_gid,
139 tdat[testno].exp_sgid->pw_gid)) {
H A Dsetresgid02.c107 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
122 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
138 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid,
139 *tdat[testno].sgid));
143 (tdat[testno].exp_rgid->pw_gid,
144 tdat[testno].exp_egid->pw_gid,
145 tdat[testno].exp_sgid->pw_gid)) {
149 tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/accept/
H A Daccept01.c67 } tdat[] = { variable in typeref:struct:test_case_t
91 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
104 tdat[testno].setup();
106 TEST(accept(s, tdat[testno].sockaddr,
107 tdat[testno].salen));
110 if (TEST_RETURN != tdat[testno].retval ||
112 TEST_ERRNO != tdat[testno].experrno)) {
115 " %d)", tdat[testno].desc,
116 TEST_RETURN, tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/bind/
H A Dbind01.c77 } tdat[] = { variable in typeref:struct:test_case_t
104 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
118 tdat[testno].setup();
121 (s, tdat[testno].sockaddr, tdat[testno].salen));
126 if (TEST_RETURN != tdat[testno].retval ||
128 TEST_ERRNO != tdat[testno].experrno)) {
131 " %d)", tdat[testno].desc,
132 TEST_RETURN, tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/socket/
H A Dsocket01.c42 } tdat[] = { variable in typeref:struct:test_case_t
57 struct test_case_t *tc = &tdat[n];
94 for (i = 0; i < ARRAY_SIZE(tdat); i++) {
95 if (tdat[i].experrno == EPROTONOSUPPORT)
96 tdat[i].experrno = ESOCKTNOSUPPORT;
102 .tcnt = ARRAY_SIZE(tdat),
/external/ltp/testcases/kernel/syscalls/sockioctl/
H A Dsockioctl01.c79 } tdat[] = { variable in typeref:struct:test_case_t
118 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
131 tdat[testno].setup();
133 TEST(ioctl(s, tdat[testno].cmd, tdat[testno].arg));
134 if (TEST_RETURN != tdat[testno].retval ||
136 TEST_ERRNO != tdat[testno].experrno)) {
139 " %d)", tdat[testno].desc,
140 TEST_RETURN, tdat[testn
[all...]
/external/ltp/testcases/kernel/module/create_module/
H A Dcreate_module02.c131 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
156 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
171 if ((tdat[testno].setup) && (tdat[testno].setup())) {
176 TEST(create_module(tdat[testno].modname,
177 tdat[testno].size));
178 if ((TEST_RETURN == (int)tdat[testno].retval) &&
179 (TEST_ERRNO == tdat[testno].experrno)) {
182 tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/recvfrom/
H A Drecvfrom01.c90 } tdat[] = { variable in typeref:struct:test_case_t
126 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
149 && (tdat[testno].flags & MSG_ERRQUEUE)
150 && (tdat[testno].type & SOCK_STREAM)) {
156 tdat[testno].setup();
157 TEST(recvfrom(s, tdat[testno].buf, tdat[testno].buflen,
158 tdat[testno].flags, tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/recv/
H A Drecv01.c81 } tdat[] = { variable in typeref:struct:test_case_t
105 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
127 && (tdat[testno].flags & MSG_ERRQUEUE)
128 && (tdat[testno].type & SOCK_STREAM)) {
134 tdat[testno].setup();
135 TEST(recv(s, tdat[testno].buf, tdat[testno].buflen,
136 tdat[testno].flags));
139 if (TEST_RETURN != tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/socketpair/
H A Dsocketpair01.c44 } tdat[] = { variable in typeref:struct:test_case_t
61 struct test_case_t *tc = &tdat[n];
98 for (i = 0; i < ARRAY_SIZE(tdat); i++) {
99 if (tdat[i].experrno == EPROTONOSUPPORT)
100 tdat[i].experrno = ESOCKTNOSUPPORT;
106 .tcnt = ARRAY_SIZE(tdat),
/external/ltp/testcases/kernel/syscalls/sendto/
H A Dsendto01.c79 struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
227 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
337 tdat[testno].setup();
339 TEST(sendto(s, tdat[testno].buf, tdat[testno].buflen,
340 tdat[testno].flags,
341 (const struct sockaddr *)tdat[testno].to,
342 tdat[testno].tolen));
347 if (TEST_RETURN != tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/connect/
H A Dconnect01.c80 } tdat[] = { variable in typeref:struct:test_case_t
112 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
133 tdat[testno].setup();
136 (s, tdat[testno].sockaddr, tdat[testno].salen));
138 if (TEST_RETURN != tdat[testno].retval ||
140 TEST_ERRNO != tdat[testno].experrno)) {
143 " %d)", tdat[testno].desc,
144 TEST_RETURN, tdat[testn
[all...]
/external/ltp/testcases/kernel/syscalls/send/
H A Dsend01.c77 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t
157 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
268 tdat[testno].setup();
270 TEST(send(s, tdat[testno].buf, tdat[testno].buflen,
271 tdat[testno].flags));
278 if (TEST_ERRNO != tdat[testno].experrno) {
281 " %d)", tdat[testno].desc,
282 TEST_RETURN, tdat[testn
[all...]

Completed in 358 milliseconds

12