/external/ltp/lib/ |
H A D | tst_safe_macros.c | 24 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) argument 28 rval = setpgid(pid, pgid); 32 file, lineno, pid, pgid); 40 pid_t pgid; local 42 pgid = getpgid(pid); 43 if (pgid == -1) { 48 return pgid;
|
/external/ltp/testcases/kernel/syscalls/setpgid/ |
H A D | 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 ! [all...] |
H A D | 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/ |
H A D | pidns02.c | 67 pid_t pgid, sid; local 71 pgid = getpgid(0); 75 if (pgid == PGID && sid == SID) { 77 pgid, sid); 81 "%d\n", pgid, sid);
|
H A D | pidns05.c | 85 pid_t parentpid, pgid, pgid2; local 89 pgid = getpgid(parentpid); 97 if (pgid2 == pgid) { 198 pid_t pid, pgid; local 232 pgid = getpgid(pid);
|
/external/valgrind/coregrind/ |
H A D | 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);
|
/external/ltp/testcases/kernel/hotplug/memory_hotplug/ |
H A D | segment.c | 881 int pgid, i; local 918 pgid = offset / gcp->pagesize; 926 if (pgid & PPL_MASK) { 930 int pgid2 = pgid & ~PPL_MASK; 932 while (pgid2 < pgid) { 940 for (; apage < end; apage += gcp->pagesize, ++pgid) { 952 if ((pgid & PPL_MASK) == 0) { 955 printf("%12x: ", pgid); /* start a new line */
|
/external/openssh/openbsd-compat/ |
H A D | port-aix.c | 432 getgrouplist(const char *user, gid_t pgid, gid_t *groups, int *grpcnt) argument 451 groups[ngroups++] = pgid; 461 if (gid == pgid)
|
/external/autotest/scheduler/ |
H A D | 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/ |
H A D | 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));
|
/external/kernel-headers/original/uapi/linux/ |
H A D | coda.h | 299 pid_t pgid; member in struct:coda_in_hdr
|
/external/python/cpython2/Modules/ |
H A D | posixmodule.c | 4211 "getpgid(pid) -> pgid\n\n\ 4217 pid_t pid, pgid; local 4220 pgid = getpgid(pid); 4221 if (pgid < 0) 4223 return PyLong_FromPid(pgid); 4356 "killpg(pgid, sig)\n\n\ 4363 pid_t pgid; local 4364 /* XXX some man pages make the `pgid` parameter an int, others 4368 if (!PyArg_ParseTuple(args, PARSE_PID "i:killpg", &pgid, &sig)) 4370 if (killpg(pgid, si 6541 pid_t pgid; local 6561 pid_t pgid; local [all...] |
/external/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 141 #define __sanitizer_syscall_pre_setpgid(pid, pgid) \ 142 __sanitizer_syscall_pre_impl_setpgid((long)(pid), (long)(pgid)) 143 #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \ 144 __sanitizer_syscall_post_impl_setpgid(res, (long)(pid), (long)(pgid)) 2079 void __sanitizer_syscall_pre_impl_setpgid(long pid, long pgid); 2080 void __sanitizer_syscall_post_impl_setpgid(long res, long pid, long pgid);
|
/external/valgrind/memcheck/tests/darwin/ |
H A D | scalar.stderr.exp | 322 Syscall param setpgid(pgid) contains uninitialised byte(s)
|
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-generic.c | 4276 PRE_REG_READ2(long, "setpgid", vki_pid_t, pid, vki_pid_t, pgid);
|
H A D | syswrap-solaris.c | 2441 /* Kernel: int setpgrp(int flag, int pid, int pgid); */ 2471 /* Libc: int setpgid(pid_t pid, pid_t pgid); */ 2474 vki_pid_t, pid, vki_pid_t, pgid);
|
/external/valgrind/memcheck/tests/arm64-linux/ |
H A D | scalar.stderr.exp | 312 Syscall param setpgid(pgid) contains uninitialised byte(s)
|
/external/valgrind/memcheck/tests/x86-linux/ |
H A D | scalar.stderr.exp | 727 Syscall param setpgid(pgid) contains uninitialised byte(s)
|