Home
last modified time | relevance | path

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

123

/bionic/libc/bionic/
Dtermios.cpp39 pid_t pid; in tcgetpgrp() local
40 return (ioctl(fd, TIOCGPGRP, &pid) == -1) ? -1 : pid; in tcgetpgrp()
44 int tcsetpgrp(int fd, pid_t pid) { in tcsetpgrp() argument
45 return ioctl(fd, TIOCSPGRP, &pid); in tcsetpgrp()
Dabort.cpp37 static inline __always_inline void inline_tgkill(pid_t pid, pid_t tid, int sig) { in inline_tgkill() argument
39 register int r0 __asm__("r0") = pid; in inline_tgkill()
45 register long x0 __asm__("x0") = pid; in inline_tgkill()
51 syscall(__NR_tgkill, pid, tid, sig); in inline_tgkill()
58 pid_t pid = syscall(__NR_getpid); in abort() local
68 inline_tgkill(pid, tid, SIGABRT); in abort()
79 inline_tgkill(pid, tid, SIGABRT); in abort()
Draise.cpp37 pid_t pid = syscall(__NR_getpid); in raise() local
39 return tgkill(pid, tid, sig); in raise()
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()
Dclock_getcpuclockid.cpp34 int clock_getcpuclockid(pid_t pid, clockid_t* clockid) { in clock_getcpuclockid() argument
38 clockid_t result = ~static_cast<clockid_t>(pid) << 3; in clock_getcpuclockid()
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()
Dsigqueue.cpp36 int sigqueue(pid_t pid, int signo, const sigval value) { in sigqueue() argument
45 return ___rt_sigqueueinfo(pid, signo, &info); in sigqueue()
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.c354 pid_t pid; in getentropy_fallback() local
358 pid = getpid(); in getentropy_fallback()
359 if (lastpid == pid) { in getentropy_fallback()
364 lastpid = pid; in getentropy_fallback()
382 HX((pid = getpid()) == -1, pid); in getentropy_fallback()
383 HX((pid = getsid(pid)) == -1, pid); in getentropy_fallback()
384 HX((pid = getppid()) == -1, pid); in getentropy_fallback()
385 HX((pid = getpgid(0)) == -1, pid); in getentropy_fallback()
Dpty.cpp160 pid_t pid = fork(); in forkpty() local
161 if (pid == -1) { in forkpty()
167 if (pid == 0) { in forkpty()
180 return pid; in forkpty()
/bionic/tests/
Dpthread_dlfcn_test.cpp59 pid_t pid = fork(); in TEST() local
61 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
63 if (pid == 0) { in TEST()
74 AssertChildExited(pid, 0); in TEST()
76 pid = fork(); in TEST()
78 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
80 if (pid == 0) { in TEST()
88 AssertChildExited(pid, 0); in TEST()
102 pid_t pid = fork(); in TEST() local
104 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
[all …]
Dsys_select_test.cpp52 static void DelayedWrite(int* pid, int* fd) { in DelayedWrite() argument
56 if ((*pid = fork()) == 0) { in DelayedWrite()
63 ASSERT_LT(0, *pid); in DelayedWrite()
69 static void DelayedWriteCleanup(int pid, int fd) { in DelayedWriteCleanup() argument
74 AssertChildExited(pid, 0); in DelayedWriteCleanup()
115 int pid, fd; in TEST() local
116 DelayedWrite(&pid, &fd); in TEST()
125 DelayedWriteCleanup(pid, fd); in TEST()
170 int pid, fd; in TEST() local
171 DelayedWrite(&pid, &fd); in TEST()
[all …]
Dutils.h130 static inline void AssertChildExited(int pid, int expected_exit_status) { in AssertChildExited() argument
132 ASSERT_EQ(pid, waitpid(pid, &status, 0)); in AssertChildExited()
173 pid_t pid = fork(); in Run() local
174 ASSERT_NE(pid, -1); in Run()
176 if (pid == 0) { in Run()
196 AssertChildExited(pid, expected_exit_status); in Run()
Dstdio_ext_test.cpp145 static void LockingByCallerHelper(std::atomic<pid_t>* pid) { in LockingByCallerHelper() argument
146 *pid = gettid(); in LockingByCallerHelper()
156 std::atomic<pid_t> pid(0); in TEST() local
158 reinterpret_cast<void* (*)(void*)>(LockingByCallerHelper), &pid)); in TEST()
159 WaitUntilThreadSleep(pid); in TEST()
Dpty_test.cpp58 pid_t pid = forkpty(&master, NULL, NULL, NULL); in TEST() local
59 ASSERT_NE(-1, pid); in TEST()
61 if (pid == 0) { in TEST()
69 AssertChildExited(pid, 0); in TEST()
Dstdlib_test.cpp409 pid_t pid = fork(); in TEST() local
410 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
412 if (pid == 0) { in TEST()
416 AssertChildExited(pid, 99); in TEST()
435 pid_t pid = fork(); in TEST() local
436 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
438 if (pid == 0) { in TEST()
445 AssertChildExited(pid, 99); in TEST()
449 pid_t pid = fork(); in TEST() local
450 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
[all …]
/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/kernel/uapi/linux/
Dif_pppol2tp.h26 __kernel_pid_t pid; member
33 __kernel_pid_t pid; member
40 __kernel_pid_t pid; member
47 __kernel_pid_t pid; member
Ddlm_plock.h38 __u32 pid; member
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dsystem.c44 pid_t pid, cpid; in system() local
71 pid = waitpid(cpid, &pstat, 0); in system()
72 } while (pid == -1 && errno == EINTR); in system()
76 return (pid == -1 ? -1 : pstat); in system()
/bionic/libc/include/android/
Dlegacy_sys_wait_inlines.h41 static __inline pid_t wait4(pid_t pid, int* status, int options, struct rusage* rusage) { in wait4() argument
42 return __BIONIC_CAST(static_cast, pid_t, syscall(__NR_wait4, pid, status, options, rusage)); in wait4()
/bionic/libc/upstream-openbsd/android/include/
Darc4random.h60 pid_t pid = getpid(); in _rs_forkdetect() local
62 if (_rs_pid == 0 || _rs_pid != pid || _rs_forked) { in _rs_forkdetect()
63 _rs_pid = pid; in _rs_forkdetect()
/bionic/libc/kernel/uapi/linux/dvb/
Dnet.h23 __u16 pid; member
33 __u16 pid; member
Ddmx.h69 __u16 pid; member
79 __u16 pid; member
/bionic/libc/upstream-openbsd/lib/libc/net/
Dres_random.c231 pid_t pid; in __res_randomid() local
236 pid = getpid(); in __res_randomid()
240 if (ru_counter >= RU_MAX || ts.tv_sec > ru_reseed || pid != ru_pid) { in __res_randomid()
242 ru_pid = pid; in __res_randomid()

123