Home
last modified time | relevance | path

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

/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.c19 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument
23 rval = setpgid(pid, pgid); in safe_setpgid()
27 file, lineno, pid, pgid); in safe_setpgid()
35 pid_t pgid; in safe_getpgid() local
37 pgid = getpgid(pid); in safe_getpgid()
38 if (pgid == -1) { in safe_getpgid()
43 return pgid; in safe_getpgid()
/external/toolchain-utils/cros_utils/
Dno_pseudo_terminal_test.py42 pgid = os.getpgid(self._strace_process.pid)
43 args = ['sudo', 'kill', str(pgid)]
45 os.waitpid(pgid, 0)
/external/u-boot/drivers/net/mscc_eswitch/
Dmscc_mac_table.c49 const unsigned char mac[ETH_LEN], int pgid) in mscc_mac_table_add() argument
68 ANA_TABLES_MACACCESS_DEST_IDX(pgid) | in mscc_mac_table_add()
Dmscc_mac_table.h19 const unsigned char mac[ETH_LEN], int pgid);
Dservalt_switch.c288 const unsigned char mac[ETH_ALEN], int pgid) in servalt_mac_table_add() argument
307 writel(LRN_COMMON_MAC_ACCESS_CFG2_MAC_ENTRY_ADDR(pgid) | in servalt_mac_table_add()
Djr2_switch.c690 const unsigned char mac[ETH_ALEN], int pgid) in jr2_mac_table_add() argument
709 writel(LRN_COMMON_MAC_ACCESS_CFG2_MAC_ENTRY_ADDR(pgid) | in jr2_mac_table_add()
/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/ltp/include/
Dtst_safe_macros.h136 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
138 #define SAFE_SETPGID(pid, pgid) \ argument
139 safe_setpgid(__FILE__, __LINE__, (pid), (pgid));
/external/python/cpython2/Modules/
Dposixmodule.c4241 pid_t pid, pgid; in posix_getpgid() local
4244 pgid = getpgid(pid); in posix_getpgid()
4245 if (pgid < 0) in posix_getpgid()
4247 return PyLong_FromPid(pgid); in posix_getpgid()
4387 pid_t pgid; in posix_killpg() local
4392 if (!PyArg_ParseTuple(args, PARSE_PID "i:killpg", &pgid, &sig)) in posix_killpg()
4394 if (killpg(pgid, sig) == -1) in posix_killpg()
6568 pid_t pgid; in posix_tcgetpgrp() local
6571 pgid = tcgetpgrp(fd); in posix_tcgetpgrp()
6572 if (pgid < 0) in posix_tcgetpgrp()
[all …]
/external/kernel-headers/original/uapi/linux/
Dcoda.h299 __kernel_pid_t pgid; member
/external/python/cpython3/Modules/
Dposixmodule.c5284 pid_t pgid = PyLong_AsPid(setpgroup); in parse_posix_spawn_flags() local
5285 if (pgid == (pid_t)-1 && PyErr_Occurred()) { in parse_posix_spawn_flags()
5288 errno = posix_spawnattr_setpgroup(attrp, pgid); in parse_posix_spawn_flags()
7011 pid_t pgid = getpgid(pid); in os_getpgid_impl() local
7012 if (pgid < 0) in os_getpgid_impl()
7014 return PyLong_FromPid(pgid); in os_getpgid_impl()
7263 os_killpg_impl(PyObject *module, pid_t pgid, int signal) in os_killpg_impl() argument
7270 if (killpg(pgid, signal) == -1) in os_killpg_impl()
8283 pid_t pgid = tcgetpgrp(fd); in os_tcgetpgrp_impl() local
8284 if (pgid < 0) in os_tcgetpgrp_impl()
[all …]
/external/python/cpython3/Modules/clinic/
Dposixmodule.c.h3464 os_killpg_impl(PyObject *module, pid_t pgid, int signal);
3470 pid_t pgid; in os_killpg() local
3474 &pgid, &signal)) { in os_killpg()
3477 return_value = os_killpg_impl(module, pgid, signal); in os_killpg()
4264 os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid);
4271 pid_t pgid; in os_tcsetpgrp() local
4274 &fd, &pgid)) { in os_tcsetpgrp()
4277 return_value = os_tcsetpgrp_impl(module, fd, pgid); in os_tcsetpgrp()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h141 #define __sanitizer_syscall_pre_setpgid(pid, pgid) \ argument
142 __sanitizer_syscall_pre_impl_setpgid((long)(pid), (long)(pgid))
143 #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \ argument
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/rust/crates/libc/src/unix/
Dmod.rs874 pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int; in setpgid()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc369 PRE_SYSCALL(setpgid)(long pid, long pgid) {}
371 POST_SYSCALL(setpgid)(long res, long pid, long pgid) {}
/external/python/cpython2/Doc/library/
Dos.rst1984 .. function:: killpg(pgid, sig)
1990 Send the signal *sig* to the process group *pgid*.
/external/rust/crates/libc/src/fuchsia/
Dmod.rs3644 pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int; in setpgid()
/external/python/cpython3/Doc/library/
Dos.rst3529 .. function:: killpg(pgid, sig)
3535 Send the signal *sig* to the process group *pgid*.