HomeSort by relevance Sort by last modified time
    Searched refs:pgid (Results 1 - 25 of 148) sorted by null

1 2 3 4 5 6

  /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/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);
  /external/valgrind/coregrind/
vg_preloaded.c 331 pid_t pgid);
335 pid_t pgid)
351 if (pgid != 0) {
352 if (pgid <= 1)
353 pgid = 0;
354 err = posix_spawnattr_setpgroup(&attr, pgid);
  /prebuilts/go/darwin-x86/src/syscall/
exec_solaris_test.go 22 func Getpgid(pid int) (pgid int, err error) {
24 pgid = int(r0)
syscall_dragonfly.go 161 //sysnb Getpgid(pid int) (pgid int, err error)
195 //sysnb Setpgid(pid int, pgid int) (err error)
syscall_netbsd.go 154 //sysnb Getpgid(pid int) (pgid int, err error)
189 //sysnb Setpgid(pid int, pgid int) (err error)
syscall_openbsd.go 133 //sysnb Getpgid(pid int) (pgid int, err error)
169 //sysnb Setpgid(pid int, pgid int) (err error)
syscall_darwin.go 261 //sysnb Getpgid(pid int) (pgid int, err error)
299 //sysnb Setpgid(pid int, pgid int) (err error)
syscall_freebsd.go 163 //sysnb Getpgid(pid int) (pgid int, err error)
199 //sysnb Setpgid(pid int, pgid int) (err error)
  /prebuilts/go/linux-x86/src/syscall/
exec_solaris_test.go 22 func Getpgid(pid int) (pgid int, err error) {
24 pgid = int(r0)
syscall_dragonfly.go 161 //sysnb Getpgid(pid int) (pgid int, err error)
195 //sysnb Setpgid(pid int, pgid int) (err error)
syscall_netbsd.go 154 //sysnb Getpgid(pid int) (pgid int, err error)
189 //sysnb Setpgid(pid int, pgid int) (err error)
syscall_openbsd.go 133 //sysnb Getpgid(pid int) (pgid int, err error)
169 //sysnb Setpgid(pid int, pgid int) (err error)
  /system/core/libprocessgroup/
processgroup.cpp 186 pid_t pgid = getpgid(pid); local
187 if (pgid == -1) PLOG(ERROR) << "getpgid(" << pid << ") failed";
188 if (pgid == pid) {
197 pid_t pgid = getpgid(pid); local
198 if (pgids.count(pgid) == 1) {
206 for (const auto pgid : pgids) {
207 LOG(VERBOSE) << "Killing process group " << -pgid << " in uid " << uid
210 if (kill(-pgid, signal) == -1) {
211 PLOG(WARNING) << "kill(" << -pgid << ", " << signal << ") failed";
  /external/ltp/testcases/kernel/hotplug/memory_hotplug/
segment.c 886 int pgid, i; local
923 pgid = offset / gcp->pagesize;
931 if (pgid & PPL_MASK) {
935 int pgid2 = pgid & ~PPL_MASK;
937 while (pgid2 < pgid) {
945 for (; apage < end; apage += gcp->pagesize, ++pgid) {
957 if ((pgid & PPL_MASK) == 0) {
960 printf("%12x: ", pgid); /* start a new line */
  /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/ltp/include/
tst_safe_macros.h 118 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
120 #define SAFE_SETPGID(pid, pgid) \
121 safe_setpgid(__FILE__, __LINE__, (pid), (pgid));
  /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
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/
coda.h 297 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...]
  /libcore/luni/src/main/java/libcore/io/
Os.java 151 public void setpgid(int pid, int pgid) throws ErrnoException;

Completed in 628 milliseconds

1 2 3 4 5 6