Home
last modified time | relevance | path

Searched refs:self_exec (Results 1 - 25 of 29) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/kill/
H A Dkill02.c239 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 Dkill09.c153 if (self_exec(av[0], "") < 0) { in main()
155 "self_exec of child failed"); in main()
H A Dkill08.c109 if (self_exec(av[0], "") < 0) { in main()
111 "self_exec of " in main()
H A Dkill07.c132 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 Dpipe04.c106 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 Dpipe02.c57 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 Dsetsid01.c102 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 Dpause03.c61 if (self_exec(av[0], "") < 0) in main()
62 tst_brkm(TBROK, cleanup, "self_exec failed"); in main()
H A Dpause02.c64 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 Dwaitpid02.c92 self_exec(argv[0], ""); in main()
H A Dwaitpid03.c115 if (self_exec(argv[0], "d", ikids) < 0) { in main()
116 tst_resm(TFAIL, "cannot self_exec #%d", in main()
H A Dwaitpid05.c116 self_exec(av[0], "d", sig); in main()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl17.c472 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 Dfcntl14.c749 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 Dfcntl16.c502 if (self_exec(argv0, "ddddd", i, parent, in run_test()
504 perror("self_exec failed"); in run_test()
H A Dfcntl21.c308 if (self_exec in main()
311 tst_resm(TFAIL, "self_exec failed"); in main()
/third_party/ltp/lib/
H A Dself_exec.c3 * 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 Dtest.h187 /* lib/self_exec.c */
189 int self_exec(const char *argv0, const char *fmt, ...);
/third_party/ltp/testcases/kernel/syscalls/connect/
H A Dconnect01.c267 self_exec(argv0, "d", sfd); in start_server()
/third_party/ltp/testcases/kernel/syscalls/send/
H A Dsend01.c191 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 Drecv01.c246 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 Dsendto01.c261 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 Dioctl02.c138 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 Drecvfrom01.c275 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 Dsigrelse01.c219 if (self_exec(argv[0], "dd", pipe_fd[1], pipe_fd2[0]) < in main()
222 "self_exec() failed"); in main()

Completed in 12 milliseconds

12