Home
last modified time | relevance | path

Searched refs:pgid (Results 1 – 25 of 48) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/setpgid/
Dsetpgid01.c80 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()
Dsetpgid02.c63 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/
Dpidns02.c67 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()
Dpidns05.c86 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/
Dtst_safe_macros.c30 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/
Dsegment.c883 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/
Dvsc9953.c1576 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/
Dport-aix.c432 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/
Ddrone_utility_unittest.py180 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/
Dzsyscall_solaris_amd64.go843 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…
Dzsyscall_netbsd_386.go744 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)
Dzsyscall_netbsd_amd64.go744 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)
Dzsyscall_netbsd_arm.go744 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)
Dzsyscall_dragonfly_amd64.go771 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)
Dzsyscall_openbsd_amd64.go742 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)
Dzsyscall_openbsd_arm.go742 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)
Dzsyscall_openbsd_386.go742 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)
Dzsyscall_darwin_amd64.go867 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)
Dzsyscall_darwin_arm64.go867 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)
Dzsyscall_darwin_386.go867 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)
Dzsyscall_darwin_arm.go867 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)
Dzsyscall_freebsd_amd64.go1038 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)
Dzsyscall_freebsd_arm.go1038 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)
Dzsyscall_freebsd_386.go1038 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/
Dtst_safe_macros.h135 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));

12