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

/external/ltp/lib/
H A Dtst_safe_macros.c24 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 Dsetpgid01.c39 * 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 Dsetpgid02.c33 * 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 Dpidns02.c67 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 Dpidns05.c85 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 Dvg_preloaded.c331 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 Dsegment.c881 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 Dport-aix.c432 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 Ddrone_utility_unittest.py21 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 Dtst_safe_macros.h118 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 Dcoda.h299 pid_t pgid; member in struct:coda_in_hdr
/external/python/cpython2/Modules/
H A Dposixmodule.c4211 "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 Dlinux_syscall_hooks.h141 #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 Dscalar.stderr.exp322 Syscall param setpgid(pgid) contains uninitialised byte(s)
/external/valgrind/coregrind/m_syswrap/
H A Dsyswrap-generic.c4276 PRE_REG_READ2(long, "setpgid", vki_pid_t, pid, vki_pid_t, pgid);
H A Dsyswrap-solaris.c2441 /* 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 Dscalar.stderr.exp312 Syscall param setpgid(pgid) contains uninitialised byte(s)
/external/valgrind/memcheck/tests/x86-linux/
H A Dscalar.stderr.exp727 Syscall param setpgid(pgid) contains uninitialised byte(s)

Completed in 5241 milliseconds