/third_party/ltp/testcases/kernel/syscalls/kill/ |
H A D | kill02.c | 239 if (self_exec(argv0, "nd", 4, pipe2_fd[1]) < 0) { in main() 268 if (self_exec in main() 273 "self_exec() failed"); in main() 462 if (self_exec(argv0, "nd", 2, pipeB_fd[1]) < 0) { in child1_rout() 464 "self_exec() failed"); in child1_rout() 489 if (self_exec(argv0, "nd", 1, pipeA_fd[1]) < 0) { in child1_rout() 490 tst_brkm(TBROK | TERRNO, NULL, "self_exec() failed"); in child1_rout() 630 * This is the routine for child A after self_exec 672 * This is the routine for child B after self_exec
|
H A D | kill09.c | 153 if (self_exec(av[0], "") < 0) { in main() 155 "self_exec of child failed"); in main()
|
H A D | kill08.c | 109 if (self_exec(av[0], "") < 0) { in main() 111 "self_exec of " in main()
|
H A D | kill07.c | 132 if (self_exec(av[0], "") < 0) { in main() 134 "self_exec of child failed"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
H A D | pipe04.c | 106 if (self_exec(av[0], "ndd", 1, fildes[0], fildes[1]) < in main() 108 tst_brkm(TBROK, cleanup, "self_exec failed"); in main() 118 if (self_exec(av[0], "ndd", 2, fildes[0], fildes[1]) < in main() 120 tst_brkm(TBROK, cleanup, "self_exec failed"); in main()
|
H A D | pipe02.c | 57 if (self_exec(av[0], "dd", fd[0], fd[1]) < 0) in verify_pipe() 58 tst_brk(TBROK, "self_exec failed"); in verify_pipe()
|
/third_party/ltp/testcases/kernel/syscalls/setsid/ |
H A D | setsid01.c | 102 if (self_exec(argv0, "n", 1) < 0) { in main() 103 tst_resm(TFAIL, "self_exec failed"); in main() 169 if (self_exec(argv0, "n", 2) < 0) { in do_child_1() 170 tst_brkm(TFAIL, NULL, "self_exec failed"); in do_child_1()
|
/third_party/ltp/testcases/kernel/syscalls/pause/ |
H A D | pause03.c | 61 if (self_exec(av[0], "") < 0) in main() 62 tst_brkm(TBROK, cleanup, "self_exec failed"); in main()
|
H A D | pause02.c | 64 if (self_exec(av[0], "") < 0) in main() 65 tst_brkm(TBROK, cleanup, "self_exec failed"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/waitpid/ |
H A D | waitpid02.c | 92 self_exec(argv[0], ""); in main()
|
H A D | waitpid03.c | 115 if (self_exec(argv[0], "d", ikids) < 0) { in main() 116 tst_resm(TFAIL, "cannot self_exec #%d", in main()
|
H A D | waitpid05.c | 116 self_exec(av[0], "d", sig); in main()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl17.c | 472 if (self_exec(av[0], "nddddddddd", 1, file_fd, in main() 477 perror("self_exec failed, child 1"); in main() 490 if (self_exec(av[0], "nddddddddd", 2, file_fd, in main() 495 perror("self_exec failed, child 2"); in main() 509 if (self_exec(av[0], "nddddddddd", 3, file_fd, in main() 514 perror("self_exec failed, child 3"); in main()
|
H A D | fcntl14.c | 749 if (self_exec(argv0, "nd", 1, parent) < 0) { in dochild() 750 tst_resm(TFAIL, "self_exec failed"); in dochild() 833 if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type, in run_test() 837 tst_resm(TFAIL, "self_exec failed"); in run_test() 1084 if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type, in main() 1088 tst_resm(TFAIL, "self_exec failed"); in main()
|
H A D | fcntl16.c | 502 if (self_exec(argv0, "ddddd", i, parent, in run_test() 504 perror("self_exec failed"); in run_test()
|
H A D | fcntl21.c | 308 if (self_exec in main() 311 tst_resm(TFAIL, "self_exec failed"); in main()
|
/third_party/ltp/lib/ |
H A D | self_exec.c | 3 * self_exec.c: self_exec magic required to run child functions on uClinux 40 static char *start_cwd; /* Stores the starting directory for self_exec */ 164 int self_exec(const char *argv0, const char *fmt, ...) in self_exec() function 180 tst_resm(TBROK, "Could not produce self_exec string"); in self_exec() 193 "Could not produce self_exec string"); in self_exec() 202 "Could not produce self_exec string"); in self_exec() 217 tst_resm(TBROK, "Could not change to %s for self_exec", in self_exec()
|
/third_party/ltp/include/old/ |
H A D | test.h | 187 /* lib/self_exec.c */ 189 int self_exec(const char *argv0, const char *fmt, ...);
|
/third_party/ltp/testcases/kernel/syscalls/connect/ |
H A D | connect01.c | 267 self_exec(argv0, "d", sfd); in start_server()
|
/third_party/ltp/testcases/kernel/syscalls/send/ |
H A D | send01.c | 191 if (self_exec(argv0, "d", sfd) < 0) in start_server() 193 "server self_exec failed"); in start_server()
|
/third_party/ltp/testcases/kernel/syscalls/recv/ |
H A D | recv01.c | 246 if (self_exec(argv0, "d", sfd) < 0) in start_server() 248 "server self_exec failed"); in start_server()
|
/third_party/ltp/testcases/kernel/syscalls/sendto/ |
H A D | sendto01.c | 261 if (self_exec(argv0, "d", sfd) < 0) in start_server() 263 "server self_exec failed"); in start_server()
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
H A D | ioctl02.c | 138 if (self_exec(av[0], "dS", parentpid, childtty) < 0) in main() 139 tst_brkm(TBROK, cleanup, "self_exec failed"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/recvfrom/ |
H A D | recvfrom01.c | 275 if (self_exec(argv0, "d", sfd) < 0) { in start_server() 276 tst_brkm(TBROK, cleanup, "server self_exec failed"); in start_server()
|
/third_party/ltp/testcases/kernel/syscalls/sigrelse/ |
H A D | sigrelse01.c | 219 if (self_exec(argv[0], "dd", pipe_fd[1], pipe_fd2[0]) < in main() 222 "self_exec() failed"); in main()
|