Home
last modified time | relevance | path

Searched refs:setpgid (Results 1 - 25 of 36) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/setpgid/
H A Dsetpgid03.c12 * Tests setpgid(2) errors:
47 TST_EXP_FAIL(setpgid(child_pid, getppid()), EPERM); in run()
49 TST_EXP_FAIL(setpgid(0, child_pid), EPERM); in run()
60 TST_EXP_FAIL(setpgid(child_pid, getppid()), EACCES); in run()
H A Dsetpgid01.c38 * 1. Basic functionality test for setpgid(2).
39 * 2. Check functioning of setpgid(2) with pid = 0 and pgid = 0.
85 TEST(setpgid(pid, pgid)); in setpgid_test1()
87 tst_resm(TFAIL | TTERRNO, "test setpgid(%d, %d) fail", in setpgid_test1()
90 tst_resm(TPASS, "test setpgid(%d, %d) success", pid, pgid); in setpgid_test1()
119 TEST(setpgid(0, 0)); in setpgid_test2()
122 fprintf(stderr, "setpgid(0, 0) fails in " in setpgid_test2()
126 fprintf(stderr, "setpgid(0, 0) fails to make PGID" in setpgid_test2()
135 tst_resm(TPASS, "test setpgid(0, 0) success"); in setpgid_test2()
137 tst_resm(TFAIL, "test setpgid( in setpgid_test2()
[all...]
H A Dsetpgid02.c11 * Verify that setpgid(2) syscall fails with:
54 TST_EXP_FAIL(setpgid(*tc->pid, *tc->pgid), tc->error, in run()
55 "setpgid(%d, %d)", *tc->pid, *tc->pgid); in run()
/third_party/ltp/testcases/kernel/syscalls/setsid/
H A Dsetsid01.c110 if (setpgid(0, 0) < 0) { in main()
112 "setpgid(parent) failed: %s", in main()
159 if (setpgid(0, 0) < 0) { in do_child_1()
160 tst_resm(TFAIL, "setpgid(0,0) failed: %s", strerror(errno)); in do_child_1()
176 retval = setpgid(0, getppid()); in do_child_1()
178 tst_resm(TFAIL, "setpgid failed, errno :%d", errno); in do_child_1()
/third_party/musl/src/unistd/
H A Dsetpgrp.c5 return setpgid(0, 0); in setpgrp()
H A Dsetpgid.c4 int setpgid(pid_t pid, pid_t pgid) in setpgid() function
/third_party/toybox/toys/other/
H A Dsetsid.c24 setpgid(0, 0); in setsid_main()
H A Dtimeout.c77 if (!FLAG(foreground)) setpgid(0, 0); in timeout_main()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dsetpgid.c29 int result = setpgid(pid, pgid); in setpgid_0100()
31 t_error("%s setpgid failed", __func__); in setpgid_0100()
34 t_error("%s setpgid invalid", __func__); in setpgid_0100()
/third_party/ltp/testcases/lib/
H A Dtst_timeout_kill.c44 ret = setpgid(0, 0); in main()
46 print_msg("setpgid() failed: %s", strerror(errno)); in main()
/third_party/ltp/testcases/open_posix_testsuite/tools/
H A Dt0.c105 setpgid(0, 0); in main()
/third_party/alsa-lib/src/ucm/
H A Ducm_exec.c277 setpgid(p, p); in uc_mgr_exec()
/third_party/cups-filters/filter/foomatic-rip/
H A Dprocess.c147 setpgid(0, 0); in _start_process()
/third_party/mksh/
H A Djobs.c251 } else if (setpgid(0, restore_ttypgrp) < 0) { in j_suspend()
253 Tj_suspend, "setpgid", cstrerror(errno)); in j_suspend()
269 if (setpgid(0, kshpid) < 0) { in j_suspend()
271 Tj_suspend, "setpgid", cstrerror(errno)); in j_suspend()
328 setpgid(0, restore_ttypgrp); in j_exit()
379 if (setpgid(0, kshpid) < 0) {
381 "j_init", "setpgid", cstrerror(errno));
549 setpgid(p->pid, j->pgrp);
1346 * setpgid() won't fail)
/third_party/musl/porting/liteos_a/user/include/
H A Dunistd.h122 int setpgid(pid_t, pid_t);
/third_party/musl/porting/uniproton/kernel/include/
H A Dunistd.h97 int setpgid(pid_t, pid_t);
/third_party/musl/porting/linux/user/include/
H A Dunistd.h124 int setpgid(pid_t, pid_t);
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h122 int setpgid(pid_t, pid_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dunistd.h97 int setpgid(pid_t, pid_t);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dunistd.h102 int setpgid(pid_t, pid_t);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dunistd.h97 int setpgid(pid_t, pid_t);
/third_party/musl/include/
H A Dunistd.h161 int setpgid(pid_t, pid_t);
/third_party/ltp/lib/
H A Dtst_safe_macros.c46 rval = setpgid(pid, pgid); in safe_setpgid()
50 "setpgid(%i, %i) failed", pid, pgid); in safe_setpgid()
53 "Invalid setpgid(%i, %i) return value %d", pid, pgid, in safe_setpgid()
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-spawn.c465 setpgid(0, 0); in lws_spawn_piped()
/third_party/ltp/testcases/kernel/syscalls/kill/
H A Dkill10.c465 setpgid(child, child); in fork_pgrps()

Completed in 18 milliseconds

12