/third_party/ltp/testcases/kernel/syscalls/setpgid/ |
D | setpgid01.c | 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 != pid) { in setpgid_test2()
|
D | setpgid02.c | 63 static pid_t pgid, pid; variable 71 pid_t *pgid; member 79 &unused_pid, &pgid, ESRCH}, 102 TEST(setpgid(*TC[i].pid, *TC[i].pgid)); in main() 135 pgid = getpgrp(); in setup()
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
D | pidns02.c | 67 pid_t pgid, sid; in child_fn1() local 71 pgid = getpgid(0); in child_fn1() 75 if (pgid == PGID && sid == SID) { in child_fn1() 77 pgid, sid); in child_fn1() 81 "%d\n", pgid, sid); in child_fn1()
|
D | pidns05.c | 86 pid_t parentpid, pgid, pgid2; in find_cinit_pids() local 90 pgid = getpgid(parentpid); in find_cinit_pids() 98 if (pgid2 == pgid) { in find_cinit_pids() 199 pid_t pid, pgid; in main() local 233 pgid = getpgid(pid); in main()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/process/ |
D | syscalls.rs | 106 let pgid: i32 = in getpgid() localVariable 109 pgid as u32, in getpgid() 119 let pgid: i32 = ret_usize_infallible(syscall_readonly!(__NR_getpgrp)) as __kernel_pid_t; in getpgrp() localVariable 120 debug_assert!(pgid > 0); in getpgrp() 121 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid as u32)) in getpgrp() 127 let pgid: i32 = in getpgrp() localVariable 129 debug_assert!(pgid > 0); in getpgrp() 130 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid as u32)) in getpgrp() 271 pub(crate) fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> { in getpriority_pgrp() 277 c_uint(Pid::as_raw(pgid)) in getpriority_pgrp() [all …]
|
/third_party/musl/src/signal/ |
D | killpg.c | 4 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/ltp/lib/ |
D | tst_safe_macros.c | 22 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument 26 rval = setpgid(pid, pgid); in safe_setpgid() 30 "setpgid(%i, %i) failed", pid, pgid); in safe_setpgid() 33 "Invalid setpgid(%i, %i) return value %d", pid, pgid, in safe_setpgid() 42 pid_t pgid; in safe_getpgid() local 44 pgid = getpgid(pid); in safe_getpgid() 46 if (pgid == -1) { in safe_getpgid() 49 } else if (pgid < 0) { in safe_getpgid() 51 "Invalid getpgid(%i) return value %d", pid, pgid); in safe_getpgid() 54 return pgid; in safe_getpgid()
|
/third_party/rust/crates/rustix/src/process/ |
D | priority.rs | 51 pub fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> { in getpriority_pgrp() 52 backend::process::syscalls::getpriority_pgrp(pgid) in getpriority_pgrp() 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/rust/crates/rustix/src/backend/libc/process/ |
D | syscalls.rs | 154 let pgid = ret_pid_t(c::getpgid(Pid::as_raw(pid) as _))?; in getpgid() localVariable 155 debug_assert_ne!(pgid, 0); in getpgid() 156 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid))) in getpgid() 165 let pgid = c::getpgrp(); in getpgrp() localVariable 166 debug_assert_ne!(pgid, 0); in getpgrp() 167 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid)) in getpgrp() 248 pub(crate) fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> { in getpriority_pgrp() 250 let r = unsafe { c::getpriority(c::PRIO_PGRP, Pid::as_raw(pgid) as _) }; in getpriority_pgrp() 278 pub(crate) fn setpriority_pgrp(pgid: Option<Pid>, priority: i32) -> io::Result<()> { in setpriority_pgrp() 282 Pid::as_raw(pgid) as _, in setpriority_pgrp()
|
/third_party/musl/src/unistd/ |
D | setpgid.c | 4 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/ |
D | setpgid.c | 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/ |
D | segment.c | 883 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/ |
D | unix-caps.c | 52 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/ltp/include/ |
D | tst_safe_macros.h | 139 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid); 141 #define SAFE_SETPGID(pid, pgid) \ argument 142 safe_setpgid(__FILE__, __LINE__, (pid), (pgid))
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | security.h | 232 ntfs_inode *ni, gid_t *pgid, mode_t *pdsetgid);
|
/third_party/python/Modules/ |
D | posixmodule.c | 5895 pid_t pgid = PyLong_AsPid(setpgroup); in parse_posix_spawn_flags() local 5896 if (pgid == (pid_t)-1 && PyErr_Occurred()) { in parse_posix_spawn_flags() 5899 errno = posix_spawnattr_setpgroup(attrp, pgid); in parse_posix_spawn_flags() 7718 pid_t pgid = getpgid(pid); in os_getpgid_impl() local 7719 if (pgid < 0) in os_getpgid_impl() 7721 return PyLong_FromPid(pgid); in os_getpgid_impl() 7971 os_killpg_impl(PyObject *module, pid_t pgid, int signal) in os_killpg_impl() argument 7974 if (PySys_Audit("os.killpg", "ii", pgid, signal) < 0) { in os_killpg_impl() 7981 if (killpg(pgid, signal) == -1) in os_killpg_impl() 9061 pid_t pgid = tcgetpgrp(fd); in os_tcgetpgrp_impl() local [all …]
|
/third_party/libwebsockets/lib/core/ |
D | private-lib-core.h | 937 lws_plat_user_colon_group_to_ids(const char *u_colon_g, uid_t *puid, gid_t *pgid);
|
/third_party/python/Modules/clinic/ |
D | posixmodule.c.h | 3600 os_killpg_impl(PyObject *module, pid_t pgid, int signal); 3606 pid_t pgid; in os_killpg() local 3610 &pgid, &signal)) { in os_killpg() 3613 return_value = os_killpg_impl(module, pgid, signal); in os_killpg() 4423 os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid); 4430 pid_t pgid; in os_tcsetpgrp() local 4433 &fd, &pgid)) { in os_tcsetpgrp() 4436 return_value = os_tcsetpgrp_impl(module, fd, pgid); in os_tcsetpgrp()
|
/third_party/openssl/apps/ |
D | ocsp.c | 44 int setpgid(pid_t pid, pid_t pgid) in setpgid() argument
|
/third_party/ntfs-3g/libntfs-3g/ |
D | security.c | 3521 ntfs_inode *dir_ni, gid_t *pgid, mode_t *pdsetgid) in ntfs_allowed_create() argument 3550 *pgid = scx->gid; in ntfs_allowed_create() 3557 *pgid = stbuf.st_gid; in ntfs_allowed_create()
|
/third_party/rust/crates/nix/src/ |
D | unistd.rs | 332 pub fn setpgid(pid: Pid, pgid: Pid) -> Result<()> { 333 let res = unsafe { libc::setpgid(pid.into(), pgid.into()) };
|
/third_party/rust/crates/libc/src/unix/ |
D | mod.rs | 921 pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int; in setpgid()
|
/third_party/python/Doc/library/ |
D | os.rst | 3847 .. function:: killpg(pgid, sig) 3853 Send the signal *sig* to the process group *pgid*. 3855 .. audit-event:: os.killpg pgid,sig os.killpg
|
/third_party/rust/crates/libc/src/fuchsia/ |
D | mod.rs | 3626 pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int; in setpgid()
|
/third_party/libabigail/tests/data/test-read-dwarf/ |
D | test15-pr18892.so.abi | 8708 …<parameter type-id='type-id-41' name='pgid' filepath='../../.././libsanitizer/sanitizer_common/san… 8714 …<parameter type-id='type-id-41' name='pgid' filepath='../../.././libsanitizer/sanitizer_common/san…
|