/bionic/libc/upstream-netbsd/lib/libc/gen/ |
D | popen.c | 67 static struct pid { struct 68 struct pid *next; argument 73 pid_t pid; argument 83 struct pid *cur, *old; in popen() 86 int pdes[2], pid, serrno; in popen() local 107 if ((cur = malloc(sizeof(struct pid))) == NULL) { in popen() 116 switch (pid = vfork()) { in popen() 177 cur->pid = pid; in popen() 193 struct pid *cur, *last; in pclose() 195 pid_t pid; in pclose() local [all …]
|
/bionic/libc/bionic/ |
D | daemon.c | 34 pid_t pid; in daemon() local 56 pid = fork(); in daemon() 57 if (pid < 0) in daemon() 60 if (pid > 0) in daemon()
|
D | ptrace.cpp | 32 extern "C" long __ptrace(int req, pid_t pid, void* addr, void* data); 40 pid_t pid = va_arg(args, pid_t); in ptrace() local 50 long result = __ptrace(req, pid, addr, data); in ptrace()
|
D | sched_getaffinity.cpp | 35 int sched_getaffinity(pid_t pid, size_t set_size, cpu_set_t* set) { in sched_getaffinity() argument 36 int rc = __sched_getaffinity(pid, set_size, set); in sched_getaffinity()
|
D | termios.cpp | 108 pid_t pid; in tcgetpgrp() local 109 if (ioctl(fd, TIOCGPGRP, &pid) == -1) { in tcgetpgrp() 112 return pid; in tcgetpgrp() 115 int tcsetpgrp(int fd, pid_t pid) { in tcsetpgrp() argument 116 return ioctl(fd, TIOCSPGRP, &pid); in tcsetpgrp()
|
D | wait.cpp | 38 pid_t waitpid(pid_t pid, int* status, int options) { in waitpid() argument 39 return wait4(pid, status, options, NULL); in waitpid()
|
D | getentropy_linux.c | 366 pid_t pid; in getentropy_fallback() local 370 pid = getpid(); in getentropy_fallback() 371 if (lastpid == pid) { in getentropy_fallback() 376 lastpid = pid; in getentropy_fallback() 394 HX((pid = getpid()) == -1, pid); in getentropy_fallback() 395 HX((pid = getsid(pid)) == -1, pid); in getentropy_fallback() 396 HX((pid = getppid()) == -1, pid); in getentropy_fallback() 397 HX((pid = getpgid(0)) == -1, pid); in getentropy_fallback()
|
D | debug_mapinfo.h | 41 __LIBC_HIDDEN__ mapinfo_t* mapinfo_create(pid_t pid);
|
D | debug_mapinfo.cpp | 68 __LIBC_HIDDEN__ mapinfo_t* mapinfo_create(pid_t pid) { in mapinfo_create() argument 73 snprintf(data, sizeof(data), "/proc/%d/maps", pid); in mapinfo_create()
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | system.c | 43 pid_t pid; in system() local 57 switch (pid = vfork()) { in system() 69 pid = waitpid(pid, (int *)&pstat, 0); in system() 73 return (pid == -1 ? -1 : pstat); in system()
|
/bionic/libc/kernel/uapi/linux/ |
D | if_pppol2tp.h | 24 __kernel_pid_t pid; member 32 __kernel_pid_t pid; member 41 __kernel_pid_t pid; member 50 __kernel_pid_t pid; member
|
D | dlm_plock.h | 42 __u32 pid; member
|
D | blktrace_api.h | 116 __u32 pid; member 146 __u32 pid; member
|
D | dlm_device.h | 59 __u32 pid; member
|
D | auto_fs4.h | 76 __u32 pid; member
|
/bionic/tests/ |
D | sys_select_test.cpp | 50 static void DelayedWrite(int* pid, int* fd) { in DelayedWrite() argument 54 if ((*pid = fork()) == 0) { in DelayedWrite() 61 ASSERT_LT(0, *pid); in DelayedWrite() 67 static void DelayedWriteCleanup(int pid, int fd) { in DelayedWriteCleanup() argument 71 ASSERT_EQ(pid, waitpid(pid, NULL, 0)); in DelayedWriteCleanup() 103 int pid, fd; in TEST() local 104 DelayedWrite(&pid, &fd); in TEST() 113 DelayedWriteCleanup(pid, fd); in TEST() 149 int pid, fd; in TEST() local 150 DelayedWrite(&pid, &fd); in TEST() [all …]
|
D | stdlib_test.cpp | 207 pid_t pid = fork(); in TEST() local 208 ASSERT_NE(-1, pid) << strerror(errno); in TEST() 210 if (pid == 0) { in TEST() 215 ASSERT_EQ(pid, waitpid(pid, &status, 0)); in TEST() 236 pid_t pid = fork(); in TEST() local 237 ASSERT_NE(-1, pid) << strerror(errno); in TEST() 239 if (pid == 0) { in TEST() 247 ASSERT_EQ(pid, waitpid(pid, &status, 0)); in TEST() 253 int pid = fork(); in TEST() local 254 ASSERT_NE(-1, pid) << strerror(errno); in TEST() [all …]
|
D | dlext_test.cpp | 201 pid_t pid = fork(); in CreateRelroFile() local 202 if (pid == 0) { in CreateRelroFile() 216 ASSERT_NOERROR(pid); in CreateRelroFile() 218 ASSERT_EQ(pid, waitpid(pid, &status, 0)); in CreateRelroFile() 280 void getPss(pid_t pid, size_t* pss_out) { in getPss() argument 285 ASSERT_EQ(0, pm_process_create(kernel, pid, &process)); in getPss()
|
D | unistd_test.cpp | 229 int pid = fork(); in TEST() local 230 ASSERT_NE(-1, pid) << strerror(errno); in TEST() 232 if (pid == 0) { in TEST() 237 ASSERT_EQ(pid, waitpid(pid, &status, 0)); in TEST()
|
D | time_test.cpp | 156 int pid = fork(); in TEST() local 157 ASSERT_NE(-1, pid) << strerror(errno); in TEST() 159 if (pid == 0) { in TEST() 167 ASSERT_EQ(pid, waitpid(pid, &status, 0)); in TEST()
|
/bionic/libc/upstream-openbsd/android/include/ |
D | arc4random.h | 62 pid_t pid = getpid(); in _rs_forkdetect() local 64 if (_rs_pid == 0 || _rs_pid != pid || _rs_forked) { in _rs_forkdetect() 65 _rs_pid = pid; in _rs_forkdetect()
|
/bionic/libc/kernel/uapi/linux/dvb/ |
D | net.h | 24 __u16 pid; member 36 __u16 pid; member
|
D | dmx.h | 86 __u16 pid; member 100 __u16 pid; member
|
D | ca.h | 67 unsigned int pid; member
|
/bionic/libc/kernel/uapi/rdma/ |
D | rdma_netlink.h | 46 __s32 pid; member
|