/external/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()
|
/external/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()
|
/external/ltp/lib/ |
D | tst_safe_macros.c | 30 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument 34 rval = setpgid(pid, pgid); in safe_setpgid() 38 file, lineno, pid, pgid); in safe_setpgid() 46 pid_t pgid; in safe_getpgid() local 48 pgid = getpgid(pid); in safe_getpgid() 49 if (pgid == -1) { in safe_getpgid() 54 return pgid; in safe_getpgid()
|
/external/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()
|
/external/u-boot/drivers/net/ |
D | vsc9953.c | 1576 u32 pgid; in vsc9953_update_dest_members_masks() local 1594 pgid = in_le32(&l2ana_reg->port_id_tbl.port_grp_id[i]); in vsc9953_update_dest_members_masks() 1596 pgid &= ~((u32)(1 << port_no)); in vsc9953_update_dest_members_masks() 1598 pgid |= ((u32)(1 << port_no)); in vsc9953_update_dest_members_masks() 1600 out_le32(&l2ana_reg->port_id_tbl.port_grp_id[i], pgid); in vsc9953_update_dest_members_masks() 1610 u32 pgid; in vsc9953_update_source_members_masks() local 1618 pgid = in_le32(&l2ana_reg->port_id_tbl.port_grp_id[index]); in vsc9953_update_source_members_masks() 1620 pgid = (pgid | VSC9953_PGID_PORT_MASK) & in vsc9953_update_source_members_masks() 1623 pgid); in vsc9953_update_source_members_masks() 1628 pgid |= (u32)(1 << port_no); in vsc9953_update_source_members_masks() [all …]
|
/external/openssh/openbsd-compat/ |
D | port-aix.c | 432 getgrouplist(const char *user, gid_t pgid, gid_t *groups, int *grpcnt) in getgrouplist() argument 451 groups[ngroups++] = pgid; in getgrouplist() 461 if (gid == pgid) in getgrouplist()
|
/external/autotest/scheduler/ |
D | drone_utility_unittest.py | 180 def _proc_info_dict(self, pid, comm, pgid=33, ppid=44, args=''): argument 181 return {'pid': pid, 'comm': comm, 'pgid': pgid, 'ppid': ppid,
|
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
D | 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) 1349 func Setpgid(pid int, pgid int) (err error) { 1350 …_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0…
|
D | zsyscall_netbsd_386.go | 744 func Getpgid(pid int) (pgid int, err error) { 746 pgid = int(r0) 1189 func Setpgid(pid int, pgid int) (err error) { 1190 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_netbsd_amd64.go | 744 func Getpgid(pid int) (pgid int, err error) { 746 pgid = int(r0) 1189 func Setpgid(pid int, pgid int) (err error) { 1190 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_netbsd_arm.go | 744 func Getpgid(pid int) (pgid int, err error) { 746 pgid = int(r0) 1189 func Setpgid(pid int, pgid int) (err error) { 1190 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_dragonfly_amd64.go | 771 func Getpgid(pid int) (pgid int, err error) { 773 pgid = int(r0) 1197 func Setpgid(pid int, pgid int) (err error) { 1198 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_openbsd_amd64.go | 742 func Getpgid(pid int) (pgid int, err error) { 744 pgid = int(r0) 1213 func Setpgid(pid int, pgid int) (err error) { 1214 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_openbsd_arm.go | 742 func Getpgid(pid int) (pgid int, err error) { 744 pgid = int(r0) 1213 func Setpgid(pid int, pgid int) (err error) { 1214 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_openbsd_386.go | 742 func Getpgid(pid int) (pgid int, err error) { 744 pgid = int(r0) 1213 func Setpgid(pid int, pgid int) (err error) { 1214 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_darwin_amd64.go | 867 func Getpgid(pid int) (pgid int, err error) { 869 pgid = int(r0) 1390 func Setpgid(pid int, pgid int) (err error) { 1391 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_darwin_arm64.go | 867 func Getpgid(pid int) (pgid int, err error) { 869 pgid = int(r0) 1390 func Setpgid(pid int, pgid int) (err error) { 1391 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_darwin_386.go | 867 func Getpgid(pid int) (pgid int, err error) { 869 pgid = int(r0) 1390 func Setpgid(pid int, pgid int) (err error) { 1391 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_darwin_arm.go | 867 func Getpgid(pid int) (pgid int, err error) { 869 pgid = int(r0) 1390 func Setpgid(pid int, pgid int) (err error) { 1391 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_freebsd_amd64.go | 1038 func Getpgid(pid int) (pgid int, err error) { 1040 pgid = int(r0) 1591 func Setpgid(pid int, pgid int) (err error) { 1592 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_freebsd_arm.go | 1038 func Getpgid(pid int) (pgid int, err error) { 1040 pgid = int(r0) 1591 func Setpgid(pid int, pgid int) (err error) { 1592 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
D | zsyscall_freebsd_386.go | 1038 func Getpgid(pid int) (pgid int, err error) { 1040 pgid = int(r0) 1591 func Setpgid(pid int, pgid int) (err error) { 1592 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
|
/external/ltp/include/ |
D | 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) \ argument 138 safe_setpgid(__FILE__, __LINE__, (pid), (pgid));
|