Home
last modified time | relevance | path

Searched refs:pgid (Results 1 - 24 of 24) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/getpgid/
H A Dgetpgid01.c18 pid_t pid_1, child_pid, pgid; in run() local
20 pgid = getpgid(0); in run()
21 tst_res(TINFO, "getpgid(0) in parent = %d", pgid); in run()
31 TST_EXP_EQ_LI(TST_RET, pgid); in run()
34 TST_EXP_EQ_LI(TST_RET, pgid); in run()
36 TST_EXP_PID(getpgid(pgid), "getpgid(%d)", pgid); in run() local
37 TST_EXP_EQ_LI(TST_RET, pgid); in run()
/third_party/ltp/testcases/kernel/syscalls/setpgid/
H A Dsetpgid01.c39 * 2. Check functioning of setpgid(2) with pid = 0 and pgid = 0.
80 pid_t pgid, pid; in setpgid_test1() local
82 pgid = getpgrp(); in setpgid_test1()
85 TEST(setpgid(pid, pgid)); in setpgid_test1()
86 if (TEST_RETURN == -1 || getpgrp() != pgid) { in setpgid_test1()
88 pid, pgid); in setpgid_test1()
90 tst_resm(TPASS, "test setpgid(%d, %d) success", pid, pgid); in setpgid_test1()
109 pid_t pgid, pid; in setpgid_test2() local
120 pgid = getpgrp(); in setpgid_test2()
125 } else if (pgid ! in setpgid_test2()
[all...]
H A Dsetpgid02.c13 * - EINVAL when given pgid is less than 0.
24 static pid_t pgid, pid, ppid, inval_pgid; variable
29 pid_t *pgid; member
33 {&ppid, &pgid, ESRCH},
41 pgid = getpgrp(); in setup()
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/musl/src/signal/
H A Dkillpg.c4 int killpg(pid_t pgid, int sig) in killpg() argument
6 if (pgid < 0) { in killpg()
10 return kill(-pgid, sig); in killpg()
/third_party/rust/crates/rustix/src/process/
H A Dpriority.rs38 /// A `pgid` of `None` means the process group of the calling process.
51 pub fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> { in getpriority_pgrp()
52 backend::process::syscalls::getpriority_pgrp(pgid) in getpriority_pgrp()
93 /// `setpriority(PRIO_PGRP, pgid)`—Get the scheduling priority of the given
96 /// A `pgid` of `None` means the process group of the calling process.
109 pub fn setpriority_pgrp(pgid: Option<Pid>, priority: i32) -> io::Result<()> { in setpriority_pgrp()
110 backend::process::syscalls::setpriority_pgrp(pgid, priority) in setpriority_pgrp()
/third_party/ltp/lib/
H A Dtst_safe_macros.c42 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument
46 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()
62 pid_t pgid; in safe_getpgid() local
64 pgid = getpgid(pid); in safe_getpgid()
66 if (pgid == -1) { in safe_getpgid()
69 } else if (pgid < 0) { in safe_getpgid()
71 "Invalid getpgid(%i) return value %d", pid, pgid); in safe_getpgid()
74 return pgid; in safe_getpgid()
[all...]
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns05.c56 pid_t parentpid, pgid, pgid2; in find_cinit_pids() local
59 pgid = SAFE_GETPGID(parentpid); in find_cinit_pids()
67 if (pgid2 == pgid) { in find_cinit_pids()
/third_party/musl/src/unistd/
H A Dsetpgid.c4 int setpgid(pid_t pid, pid_t pgid) in setpgid() argument
6 return syscall(SYS_setpgid, pid, pgid); in setpgid()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dsetpgid.c22 * @tc.desc : Sets the process group ID of the process specified by pid to pgid
28 pid_t pgid = 0; in setpgid_0100() local
29 int result = setpgid(pid, pgid); in setpgid_0100()
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/
H A Dsegment.c883 int pgid, i; in segment_location() local
920 pgid = offset / gcp->pagesize; in segment_location()
928 if (pgid & PPL_MASK) { in segment_location()
932 int pgid2 = pgid & ~PPL_MASK; in segment_location()
934 while (pgid2 < pgid) { in segment_location()
942 for (; apage < end; apage += gcp->pagesize, ++pgid) { in segment_location()
954 if ((pgid & PPL_MASK) == 0) { in segment_location()
957 printf("%12x: ", pgid); /* start a new line */ in segment_location()
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-caps.c52 lws_plat_user_colon_group_to_ids(const char *u_colon_g, uid_t *puid, gid_t *pgid) argument
86 *pgid = g->gr_gid;
/third_party/musl/Benchmark/musl/
H A Dlibc_unistd.cpp525 int pgid = -1; in Bm_function_Getpgrp() local
527 pgid = getpgrp(); in Bm_function_Getpgrp()
528 if (pgid == -1) { in Bm_function_Getpgrp()
531 benchmark::DoNotOptimize(pgid); in Bm_function_Getpgrp()
H A Dlibc_pthread.cpp706 pid_t pgid = getpgid(pid); in Bm_function_Tgkill() local
708 if (tgkill(pgid, pid, SIGCONT) == -1) { in Bm_function_Tgkill()
/third_party/ltp/include/
H A Dtst_safe_macros.h144 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
146 #define SAFE_SETPGID(pid, pgid) \
147 safe_setpgid(__FILE__, __LINE__, (pid), (pgid))
/third_party/ntfs-3g/include/ntfs-3g/
H A Dsecurity.h232 ntfs_inode *ni, gid_t *pgid, mode_t *pdsetgid);
/third_party/python/Modules/
H A Dposixmodule.c6035 pid_t pgid = PyLong_AsPid(setpgroup); in parse_posix_spawn_flags() local
6036 if (pgid == (pid_t)-1 && PyErr_Occurred()) { in parse_posix_spawn_flags()
6039 errno = posix_spawnattr_setpgroup(attrp, pgid); in parse_posix_spawn_flags()
7867 pid_t pgid = getpgid(pid); in os_getpgid_impl() local
7868 if (pgid < 0) in os_getpgid_impl()
7870 return PyLong_FromPid(pgid); in os_getpgid_impl()
8121 pgid: pid_t
8129 os_killpg_impl(PyObject *module, pid_t pgid, int signal) in os_killpg_impl() argument
8132 if (PySys_Audit("os.killpg", "ii", pgid, signal) < 0) { in os_killpg_impl()
8135 /* XXX some man pages make the `pgid` paramete in os_killpg_impl()
9225 pid_t pgid = tcgetpgrp(fd); os_tcgetpgrp_impl() local
9245 os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid) os_tcsetpgrp_impl() argument
[all...]
/third_party/libwebsockets/lib/core/
H A Dprivate-lib-core.h943 lws_plat_user_colon_group_to_ids(const char *u_colon_g, uid_t *puid, gid_t *pgid);
/third_party/python/Modules/clinic/
H A Dposixmodule.c.h3663 "killpg($module, pgid, signal, /)\n"
3672 os_killpg_impl(PyObject *module, pid_t pgid, int signal);
3678 pid_t pgid; in os_killpg() local
3682 &pgid, &signal)) { in os_killpg()
3685 return_value = os_killpg_impl(module, pgid, signal); in os_killpg()
4486 "tcsetpgrp($module, fd, pgid, /)\n"
4495 os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid);
4502 pid_t pgid; in os_tcsetpgrp() local
4505 &fd, &pgid)) { in os_tcsetpgrp()
4508 return_value = os_tcsetpgrp_impl(module, fd, pgid); in os_tcsetpgrp()
[all...]
/third_party/node/deps/openssl/openssl/apps/
H A Docsp.c44 int setpgid(pid_t pid, pid_t pgid) in setpgid() argument
/third_party/openssl/apps/
H A Docsp.c44 int setpgid(pid_t pid, pid_t pgid) in setpgid() argument
/third_party/ntfs-3g/libntfs-3g/
H A Dsecurity.c3521 ntfs_inode *dir_ni, gid_t *pgid, mode_t *pdsetgid) in ntfs_allowed_create()
3550 *pgid = scx->gid; in ntfs_allowed_create()
3557 *pgid = stbuf.st_gid; in ntfs_allowed_create()
3520 ntfs_allowed_create(struct SECURITY_CONTEXT *scx, ntfs_inode *dir_ni, gid_t *pgid, mode_t *pdsetgid) ntfs_allowed_create() argument
/third_party/rust/crates/nix/src/
H A Dunistd.rs332 pub fn setpgid(pid: Pid, pgid: Pid) -> Result<()> { in setpgid()
333 let res = unsafe { libc::setpgid(pid.into(), pgid.into()) }; in setpgid()
/third_party/rust/crates/libc/src/unix/
H A Dmod.rs921 pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int; in setpgid()
/third_party/rust/crates/libc/src/fuchsia/
H A Dmod.rs3626 pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int; in setpgid()

Completed in 55 milliseconds