Searched refs:pid (Results 1 - 25 of 70) sorted by relevance

123

/bionic/libc/bionic/
H A Dclock_getcpuclockid.cpp34 int clock_getcpuclockid(pid_t pid, clockid_t* clockid) { argument
38 clockid_t result = ~static_cast<clockid_t>(pid) << 3;
H A Draise.cpp37 pid_t pid = syscall(__NR_getpid); local
39 return tgkill(pid, tid, sig);
H A Dsched_getaffinity.cpp35 int sched_getaffinity(pid_t pid, size_t set_size, cpu_set_t* set) { argument
36 int rc = __sched_getaffinity(pid, set_size, set);
H A Dptrace.cpp32 extern "C" long __ptrace(int req, pid_t pid, void* addr, void* data);
40 pid_t pid = va_arg(args, pid_t); local
50 long result = __ptrace(req, pid, addr, data);
H A Dabort.cpp38 pid_t pid = syscall(__NR_getpid); local
49 tgkill(pid, tid, SIGABRT);
60 tgkill(pid, tid, SIGABRT);
H A Dsigqueue.cpp36 int sigqueue(pid_t pid, int signo, const sigval value) { argument
45 return ___rt_sigqueueinfo(pid, signo, &info);
H A Dwait.cpp38 pid_t waitpid(pid_t pid, int* status, int options) { argument
39 return wait4(pid, status, options, NULL);
H A Dtermios.cpp109 pid_t pid; local
110 if (ioctl(fd, TIOCGPGRP, &pid) == -1) {
113 return pid;
116 int tcsetpgrp(int fd, pid_t pid) { argument
117 return ioctl(fd, TIOCSPGRP, &pid);
H A Dgetentropy_linux.c354 pid_t pid; local
358 pid = getpid();
359 if (lastpid == pid) {
364 lastpid = pid;
382 HX((pid = getpid()) == -1, pid);
383 HX((pid = getsid(pid)) == -1, pid);
384 HX((pid
[all...]
H A Dpty.cpp160 pid_t pid = fork(); local
161 if (pid == -1) {
167 if (pid == 0) {
180 return pid;
/bionic/tests/
H A Dpthread_dlfcn_test.cpp59 pid_t pid = fork(); local
61 ASSERT_NE(-1, pid) << strerror(errno);
63 if (pid == 0) {
74 AssertChildExited(pid, 0);
76 pid = fork();
78 ASSERT_NE(-1, pid) << strerror(errno);
80 if (pid == 0) {
88 AssertChildExited(pid, 0);
102 pid_t pid = fork(); local
104 ASSERT_NE(-1, pid) << strerro
[all...]
H A Dsys_select_test.cpp52 static void DelayedWrite(int* pid, int* fd) { argument
56 if ((*pid = fork()) == 0) {
63 ASSERT_LT(0, *pid);
69 static void DelayedWriteCleanup(int pid, int fd) { argument
74 AssertChildExited(pid, 0);
115 int pid, fd; local
116 DelayedWrite(&pid, &fd);
125 DelayedWriteCleanup(pid, fd);
170 int pid, fd; local
171 DelayedWrite(&pid,
[all...]
H A Dutils.h131 static inline void AssertChildExited(int pid, int expected_exit_status) { argument
133 ASSERT_EQ(pid, waitpid(pid, &status, 0));
174 pid_t pid = fork(); local
175 ASSERT_NE(pid, -1);
177 if (pid == 0) {
197 AssertChildExited(pid, expected_exit_status);
H A Dstdio_ext_test.cpp145 static void LockingByCallerHelper(std::atomic<pid_t>* pid) { argument
146 *pid = gettid();
156 std::atomic<pid_t> pid(0);
158 reinterpret_cast<void* (*)(void*)>(LockingByCallerHelper), &pid));
159 WaitUntilThreadSleep(pid);
/bionic/libc/kernel/uapi/linux/
H A Dif_pppol2tp.h27 __kernel_pid_t pid; member in struct:pppol2tp_addr
36 __kernel_pid_t pid; member in struct:pppol2tpin6_addr
45 __kernel_pid_t pid; member in struct:pppol2tpv3_addr
54 __kernel_pid_t pid; member in struct:pppol2tpv3in6_addr
H A Ddlm_plock.h42 __u32 pid; member in struct:dlm_plock_info
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Dif_pppol2tp.h27 __kernel_pid_t pid; member in struct:pppol2tp_addr
36 __kernel_pid_t pid; member in struct:pppol2tpin6_addr
45 __kernel_pid_t pid; member in struct:pppol2tpv3_addr
54 __kernel_pid_t pid; member in struct:pppol2tpv3in6_addr
H A Ddlm_plock.h42 __u32 pid; member in struct:dlm_plock_info
/bionic/libc/include/android/
H A Dlegacy_sys_wait_inlines.h41 static __inline pid_t wait4(pid_t pid, int* status, int options, struct rusage* rusage) { argument
42 return __BIONIC_CAST(static_cast, pid_t, syscall(__NR_wait4, pid, status, options, rusage));
/bionic/libc/kernel/uapi/linux/dvb/
H A Dnet.h24 __u16 pid; member in struct:dvb_net_if
36 __u16 pid; member in struct:__dvb_net_if_old
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/dvb/
H A Dnet.h24 __u16 pid; member in struct:dvb_net_if
36 __u16 pid; member in struct:__dvb_net_if_old
/bionic/tools/versioner/current/android/
H A Dlegacy_sys_wait_inlines.h41 static __inline pid_t wait4(pid_t pid, int* status, int options, struct rusage* rusage) { argument
42 return __BIONIC_CAST(static_cast, pid_t, syscall(__NR_wait4, pid, status, options, rusage));
/bionic/libc/upstream-netbsd/lib/libc/gen/
H A Dpopen.c67 static struct pid { struct
68 struct pid *next;
73 pid_t pid; member in struct:pid
83 struct pid *cur, *old;
86 int pdes[2], pid, serrno; local
107 if ((cur = malloc(sizeof(struct pid))) == NULL) {
116 switch (pid = vfork()) {
177 cur->pid = pid;
193 struct pid *cu
195 pid_t pid; local
[all...]
/bionic/libc/upstream-openbsd/android/include/
H A Darc4random.h59 pid_t pid = getpid(); local
61 if (_rs_pid == 0 || _rs_pid != pid || _rs_forked) {
62 _rs_pid = pid;
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Dsystem.c44 pid_t pid, cpid; local
71 pid = waitpid(cpid, &pstat, 0);
72 } while (pid == -1 && errno == EINTR);
76 return (pid == -1 ? -1 : pstat);

Completed in 2867 milliseconds

123