/external/ltp/testcases/kernel/syscalls/setpgid/ |
setpgid01.c | 39 * 2. Check functioning of setpgid(2) with pid = 0 and pgid = 0. 80 pid_t pgid, pid; local 82 pgid = getpgrp(); 85 TEST(setpgid(pid, pgid)); 86 if (TEST_RETURN == -1 || getpgrp() != pgid) { 88 pid, pgid); 90 tst_resm(TPASS, "test setpgid(%d, %d) success", pid, pgid); 109 pid_t pgid, pid; local 120 pgid = getpgrp(); 125 } else if (pgid != pid) [all...] |
setpgid02.c | 33 * test 1: EINVAL - Pass '-1' as the pgid parameter to setpgid 35 * test 3: EPERM - Pass an invalid pgid parameter to setpgid 63 static pid_t pgid, pid; variable 71 pid_t *pgid; member in struct:test_case_t 74 /* pgid is less than zero - EINVAL */ 79 &unused_pid, &pgid, ESRCH}, 80 /* pgid doesn't exist - EPERM */ 102 TEST(setpgid(*TC[i].pid, *TC[i].pgid)); 135 pgid = getpgrp();
|
/external/ltp/testcases/kernel/containers/pidns/ |
pidns02.c | 59 #define PGID 1 67 pid_t pgid, sid; local 71 pgid = getpgid(0); 75 if (pgid == PGID && sid == SID) { 77 pgid, sid); 81 "%d\n", pgid, sid);
|
pidns05.c | 79 /* find_cinit_pids() iteratively finds the pid's having same PGID as its parent. 86 pid_t parentpid, pgid, pgid2; local 90 pgid = getpgid(parentpid); 98 if (pgid2 == pgid) { 199 pid_t pid, pgid; local 229 /* To make all the containers share the same PGID as its parent */ 233 pgid = getpgid(pid);
|
/device/google/cuttlefish_common/host/commands/stop_cvd/ |
main.cc | 68 pid_t pgid = getpgid(static_cast<pid_t>(pid)); local 69 if (pgid < 0) { 74 ret.insert(pgid); 85 for (auto pgid: process_groups) { 86 LOG(INFO) << "Sending SIGKILL to process group " << pgid; 87 auto retval = killpg(pgid, SIGKILL); 89 LOG(ERROR) << "Failed to kill process group " << pgid << ": "
|
/external/ltp/lib/ |
tst_safe_macros.c | 30 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) 34 rval = setpgid(pid, pgid); 38 file, lineno, pid, pgid); 46 pid_t pgid; local 48 pgid = getpgid(pid); 49 if (pgid == -1) { 54 return pgid;
|
/external/ltp/testcases/kernel/hotplug/memory_hotplug/ |
segment.c | 883 int pgid, i; local 920 pgid = offset / gcp->pagesize; 928 if (pgid & PPL_MASK) { 932 int pgid2 = pgid & ~PPL_MASK; 934 while (pgid2 < pgid) { 942 for (; apage < end; apage += gcp->pagesize, ++pgid) { 954 if ((pgid & PPL_MASK) == 0) { 957 printf("%12x: ", pgid); /* start a new line */
|
/external/openssh/openbsd-compat/ |
port-aix.c | 432 getgrouplist(const char *user, gid_t pgid, gid_t *groups, int *grpcnt) 451 groups[ngroups++] = pgid; 461 if (gid == pgid)
|
/external/autotest/scheduler/ |
drone_utility_unittest.py | 21 self._fake_proc_info = {'pid': 3, 'pgid': 4, 'ppid': 2, 180 def _proc_info_dict(self, pid, comm, pgid=33, ppid=44, args=''): 181 return {'pid': pid, 'comm': comm, 'pgid': pgid, 'ppid': ppid,
|
/external/u-boot/drivers/net/ |
vsc9953.c | 1576 u32 pgid; local 1610 u32 pgid; local 1659 u32 pgid; local [all...] |
/external/ltp/include/ |
tst_safe_macros.h | 135 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid); 137 #define SAFE_SETPGID(pid, pgid) \ 138 safe_setpgid(__FILE__, __LINE__, (pid), (pgid));
|
/device/google/cuttlefish_common/host/commands/launch/ |
main.cc | 290 auto pgid = getpgid(0); local 310 killpg(pgid, SIGKILL);
|
/bionic/libc/kernel/uapi/linux/ |
coda.h | 203 pid_t pgid; member in struct:coda_in_hdr
|
/external/kernel-headers/original/uapi/linux/ |
coda.h | 299 pid_t pgid; member in struct:coda_in_hdr
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Efi/ |
edk2module.c | 2455 pid_t pid, pgid; local 2600 pid_t pgid; local 4735 pid_t pgid; local 4755 pid_t pgid; local [all...] |
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
syscall_dragonfly.go | 268 //sysnb Getpgid(pid int) (pgid int, err error) 302 //sysnb Setpgid(pid int, pgid int) (err error)
|
syscall_netbsd.go | 252 //sysnb Getpgid(pid int) (pgid int, err error) 287 //sysnb Setpgid(pid int, pgid int) (err error)
|
syscall_openbsd.go | 220 //sysnb Getpgid(pid int) (pgid int, err error) 257 //sysnb Setpgid(pid int, pgid int) (err error)
|
zsyscall_solaris_amd64.go | 843 func Getpgid(pid int) (pgid int, err error) { 845 pgid = int(r0) 852 func Getpgrp() (pgid int, err error) { 854 pgid = int(r0) [all...] |
syscall_darwin.go | 424 //sysnb Getpgid(pid int) (pgid int, err error) 462 //sysnb Setpgid(pid int, pgid int) (err error)
|
syscall_freebsd.go | 491 //sysnb Getpgid(pid int) (pgid int, err error) 532 //sysnb Setpgid(pid int, pgid int) (err error)
|
/external/python/cpython3/Modules/clinic/ |
posixmodule.c.h | 2650 pid_t pgid; local 3335 pid_t pgid; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
posixmodule.c | 3997 pid_t pid, pgid; local 4143 pid_t pgid; local 6355 pid_t pgid; local 6375 pid_t pgid; local [all...] |
/external/python/cpython2/Modules/ |
posixmodule.c | 4241 pid_t pid, pgid; local 4387 pid_t pgid; local 6568 pid_t pgid; local 6588 pid_t pgid; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/ |
edk2module.c | 2741 pid_t pgid; local 2761 pid_t pgid; local [all...] |