/external/ltp/testcases/kernel/syscalls/sockioctl/ |
D | sockioctl01.c | 46 int testno; variable 131 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 59 int testno; variable 95 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/syscalls/getsockname/ |
D | getsockname01.c | 58 int testno; variable 115 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 60 int testno; variable 141 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 58 int testno; variable 140 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 41 int testno; variable 103 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/syslog/ |
D | syslog12.c | 99 static int testno; variable 125 " for %s", tdat[testno].desc); in timeout() 147 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 88 static int testno; variable 130 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 58 int testno; variable 118 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/recvfrom/ |
D | recvfrom01.c | 59 int testno; variable 148 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/recv/ |
D | recv01.c | 59 int testno; variable 126 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/syscalls/fdatasync/ |
D | fdatasync02.c | 93 static int testno; variable 121 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 47 int testno; variable 336 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/syscalls/recvmsg/ |
D | recvmsg01.c | 62 int testno; variable 203 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/setresgid/ |
D | setresgid01.c | 94 static int testno; variable 130 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 99 static int testno; variable 137 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 | 100 static int testno; variable 129 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/sendmsg/ |
D | sendmsg01.c | 54 int testno; variable 380 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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/send/ |
D | send01.c | 48 int testno; variable 267 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 …]
|
/external/ltp/testcases/kernel/syscalls/connect/ |
D | connect01.c | 59 int testno; variable 151 for (testno = 0; testno < TST_TOTAL; ++testno) { in main() 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 …]
|
/external/curl/tests/ |
D | ftpserver.pl | 442 my ($testno) = @_; 445 $testno =~ s/^([^0-9]*)//; 446 if($testno > 10000) { 447 $testpart = $testno % 10000; 448 $testno = int($testno / 10000); 451 loadtest("$srcdir/data/test$testno"); 894 my $testno = $smtp_client; 895 my $filename = "log/upload.$testno"; 897 logmsg "Store test number $testno in $filename\n"; 1219 my $testno = $mailbox; [all …]
|
/external/curl/tests/server/ |
D | sws.c | 103 long testno; /* test number found in the request */ member 371 filename = test2file(req->testno); in parse_servercmd() 378 logmsg(" Couldn't open test file %ld", req->testno); in parse_servercmd() 491 (req->testno == DOCNUMBER_NOTHING) && in ProcessRequest() 494 req->testno = DOCNUMBER_WERULEZ; in ProcessRequest() 498 else if((req->testno == DOCNUMBER_NOTHING) && in ProcessRequest() 524 req->testno = DOCNUMBER_WERULEZ; in ProcessRequest() 530 req->testno = DOCNUMBER_QUIT; in ProcessRequest() 540 req->testno = strtol(ptr, &ptr, 10); in ProcessRequest() 542 if(req->testno > 10000) { in ProcessRequest() [all …]
|
D | rtspd.c | 101 long testno; /* test number found in the request */ member 347 req->testno, line); in ProcessRequest() 351 if((req->testno == DOCNUMBER_NOTHING) && in ProcessRequest() 394 req->testno = DOCNUMBER_WERULEZ; in ProcessRequest() 400 req->testno = DOCNUMBER_QUIT; in ProcessRequest() 410 req->testno = strtol(ptr, &ptr, 10); in ProcessRequest() 412 if(req->testno > 10000) { in ProcessRequest() 413 req->partno = req->testno % 10000; in ProcessRequest() 414 req->testno /= 10000; in ProcessRequest() 420 req->testno, req->partno); in ProcessRequest() [all …]
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap05.c | 217 int lc, testno; in main() local 224 for (testno = 0; testno < TST_TOTAL; testno++) { in main() 225 tdat[testno].setup(&tdat[testno]); in main() 226 test_mremap(&tdat[testno]); in main() 227 tdat[testno].cleanup(&tdat[testno]); in main()
|
/external/ltp/testcases/kernel/syscalls/bdflush/ |
D | bdflush01.c | 89 int testno; variable 117 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
|