Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 39) sorted by relevance

12

/bionic/libc/upstream-netbsd/lib/libc/gen/
Dpopen.c67 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/
Ddaemon.c34 pid_t pid; in daemon() local
56 pid = fork(); in daemon()
57 if (pid < 0) in daemon()
60 if (pid > 0) in daemon()
Dptrace.cpp32 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()
Dsched_getaffinity.cpp35 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()
Dtermios.cpp108 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()
Dwait.cpp38 pid_t waitpid(pid_t pid, int* status, int options) { in waitpid() argument
39 return wait4(pid, status, options, NULL); in waitpid()
Dgetentropy_linux.c366 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()
Ddebug_mapinfo.h41 __LIBC_HIDDEN__ mapinfo_t* mapinfo_create(pid_t pid);
Ddebug_mapinfo.cpp68 __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/
Dsystem.c43 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/
Dif_pppol2tp.h24 __kernel_pid_t pid; member
32 __kernel_pid_t pid; member
41 __kernel_pid_t pid; member
50 __kernel_pid_t pid; member
Ddlm_plock.h42 __u32 pid; member
Dblktrace_api.h116 __u32 pid; member
146 __u32 pid; member
Ddlm_device.h59 __u32 pid; member
Dauto_fs4.h76 __u32 pid; member
/bionic/tests/
Dsys_select_test.cpp50 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 …]
Dstdlib_test.cpp207 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 …]
Ddlext_test.cpp201 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()
Dunistd_test.cpp229 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()
Dtime_test.cpp156 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/
Darc4random.h62 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/
Dnet.h24 __u16 pid; member
36 __u16 pid; member
Ddmx.h86 __u16 pid; member
100 __u16 pid; member
Dca.h67 unsigned int pid; member
/bionic/libc/kernel/uapi/rdma/
Drdma_netlink.h46 __s32 pid; member

12