Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 25 of 107) sorted by relevance

12345

/bionic/libc/bionic/
Dgetpid.cpp33 extern "C" pid_t __getpid();
35 pid_t __get_cached_pid() { in __get_cached_pid()
38 pid_t cached_pid; in __get_cached_pid()
46 pid_t getpid() { in getpid()
47 pid_t cached_pid = __get_cached_pid(); in getpid()
Dtermios.cpp38 pid_t tcgetpgrp(int fd) { in tcgetpgrp()
39 pid_t pid; in tcgetpgrp()
44 int tcsetpgrp(int fd, pid_t pid) { in tcsetpgrp()
Dpthread_internal.h70 pid_t tid;
79 pid_t invalidate_cached_pid() { in invalidate_cached_pid()
80 pid_t old_value; in invalidate_cached_pid()
86 void set_cached_pid(pid_t value) { in set_cached_pid()
90 bool get_cached_pid(pid_t* cached_pid) { in get_cached_pid()
212 __LIBC_HIDDEN__ pid_t __pthread_internal_gettid(pthread_t pthread_id, const char* caller);
Dwait.cpp34 pid_t wait(int* status) { in wait()
38 pid_t waitpid(pid_t pid, int* status, int options) { in waitpid()
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()
Draise.cpp37 pid_t pid = syscall(__NR_getpid); in raise()
38 pid_t tid = syscall(__NR_gettid); in raise()
Dgettid.cpp34 pid_t gettid() { in gettid()
37 pid_t tid = self->tid; in gettid()
Dsched_getaffinity.cpp33 extern "C" int __sched_getaffinity(pid_t, size_t, cpu_set_t*);
35 int sched_getaffinity(pid_t pid, size_t set_size, cpu_set_t* set) { in sched_getaffinity()
Dpidfd.cpp33 extern "C" int __pidfd_open(pid_t pid, unsigned int flags);
36 int pidfd_open(pid_t pid, unsigned int flags) { in pidfd_open()
/bionic/tests/headers/posix/
Dsched_h.c36 TYPE(pid_t); in sched_h()
58 FUNCTION(sched_getparam, int (*f)(pid_t, struct sched_param*)); in sched_h()
59 FUNCTION(sched_getscheduler, int (*f)(pid_t)); in sched_h()
60 FUNCTION(sched_rr_get_interval, int (*f)(pid_t, struct timespec*)); in sched_h()
61 FUNCTION(sched_setparam, int (*f)(pid_t, const struct sched_param*)); in sched_h()
62 FUNCTION(sched_setscheduler, int (*f)(pid_t, int, const struct sched_param*)); in sched_h()
Dspawn_h.c38 TYPE(pid_t); in spawn_h()
51 …FUNCTION(posix_spawn, int (*f)(pid_t*, const char*, const posix_spawn_file_actions_t*, const posix… in spawn_h()
59 FUNCTION(posix_spawnattr_getpgroup, int (*f)(const posix_spawnattr_t*, pid_t*)); in spawn_h()
66 FUNCTION(posix_spawnattr_setpgroup, int (*f)(posix_spawnattr_t*, pid_t)); in spawn_h()
70 …FUNCTION(posix_spawnp, int (*f)(pid_t*, const char*, const posix_spawn_file_actions_t*, const posi… in spawn_h()
Dsys_wait_h.c70 TYPE(pid_t); in sys_wait_h()
74 FUNCTION(wait, pid_t (*f)(int*)); in sys_wait_h()
76 FUNCTION(waitpid, pid_t (*f)(pid_t, int*, int)); in sys_wait_h()
Dunistd_h.c303 TYPE(pid_t); in unistd_h()
333 FUNCTION(fork, pid_t (*f)(void)); in unistd_h()
349 FUNCTION(getpgid, pid_t (*f)(pid_t)); in unistd_h()
350 FUNCTION(getpgrp, pid_t (*f)(void)); in unistd_h()
351 FUNCTION(getpid, pid_t (*f)(void)); in unistd_h()
352 FUNCTION(getppid, pid_t (*f)(void)); in unistd_h()
353 FUNCTION(getsid, pid_t (*f)(pid_t)); in unistd_h()
374 FUNCTION(setpgid, int (*f)(pid_t, pid_t)); in unistd_h()
375 FUNCTION(setpgrp, pid_t (*f)(void)); in unistd_h()
378 FUNCTION(setsid, pid_t (*f)(void)); in unistd_h()
[all …]
Dsys_shm_h.c45 STRUCT_MEMBER(struct shmid_ds, pid_t, shm_lpid); in sys_shm_h()
46 STRUCT_MEMBER(struct shmid_ds, pid_t, shm_cpid); in sys_shm_h()
59 TYPE(pid_t); in sys_shm_h()
Dsys_msg_h.c45 STRUCT_MEMBER(struct msqid_ds, pid_t, msg_lspid); in sys_msg_h()
46 STRUCT_MEMBER(struct msqid_ds, pid_t, msg_lrpid); in sys_msg_h()
58 TYPE(pid_t); in sys_msg_h()
/bionic/libc/include/sys/
Dwait.h40 pid_t wait(int* _Nullable __status);
41 pid_t waitpid(pid_t __pid, int* _Nullable __status, int __options);
42 pid_t wait4(pid_t __pid, int* _Nullable __status, int __options, struct rusage* _Nullable __rusage)…
/bionic/libc/include/
Dunistd.h80 pid_t fork(void);
81 pid_t vfork(void) __returns_twice;
82 pid_t getpid(void);
83 pid_t gettid(void) __attribute_const__;
84 pid_t getpgid(pid_t __pid);
85 int setpgid(pid_t __pid, pid_t __pgid);
86 pid_t getppid(void);
87 pid_t getpgrp(void);
89 pid_t getsid(pid_t __pid) __INTRODUCED_IN(17);
90 pid_t setsid(void);
[all …]
Dsched.h107 int sched_setscheduler(pid_t __pid, int __policy, const struct sched_param* _Nonnull __param);
116 int sched_getscheduler(pid_t __pid);
148 int sched_setparam(pid_t __pid, const struct sched_param* _Nonnull __param);
156 int sched_getparam(pid_t __pid, struct sched_param* _Nonnull __param);
164 int sched_rr_get_interval(pid_t __pid, struct timespec* _Nonnull __quantum);
231 int sched_setaffinity(pid_t __pid, size_t __set_size, const cpu_set_t* _Nonnull __set);
239 int sched_getaffinity(pid_t __pid, size_t __set_size, cpu_set_t* _Nonnull __set);
/bionic/tests/
Dspawn_test.cpp77 pid_t g; in TEST()
196 pid_t pid; in TEST()
204 pid_t pid; in TEST()
212 pid_t pid; in TEST()
220 pid_t pid; in TEST()
229 pid_t pid; in TEST()
260 pid_t pid; in TEST()
301 pid_t pid; in CatFileToString()
312 pid_t pid;
313 pid_t ppid;
[all …]
Dsys_ptrace_test.cpp51 explicit ChildGuard(pid_t pid) : pid(pid) {} in ChildGuard()
60 pid_t pid;
65 static void check_hw_feature_supported(pid_t child, HwFeature feature) { in check_hw_feature_supported()
110 static void set_watchpoint(pid_t child, uintptr_t address, size_t size) { in set_watchpoint()
159 pid_t child = fork(); in run_watchpoint_test()
298 static void set_breakpoint(pid_t child) { in set_breakpoint()
347 pid_t child = fork(); in TEST()
379 pid_t worker = -1;
380 pid_t tracer = -1;
444 pid_t rc = TEMP_FAILURE_RETRY(waitpid(tracer, &result, 0)); in WaitForTracer()
[all …]
Dstack_protector_test.cpp33 extern "C" pid_t gettid(); // glibc defines this but doesn't declare it anywhere.
40 std::set<pid_t> tids;
44 pid_t tid = gettid(); in Check()
/bionic/libc/
DSECCOMP_ALLOWLIST_COMMON.TXT12 pid_t gettid() all
17 int rt_tgsigqueueinfo(pid_t, pid_t, int, siginfo_t*) all
22 pid_t vfork() arm,x86,x86_64
25 int perf_event_open(perf_event_attr*, pid_t, int, int, unsigned long) all
50 int sched_getattr(pid_t, sched_attr*, unsigned) all
51 int sched_setattr(pid_t, sched_attr*, unsigned, unsigned) all
75 int sched_rr_get_interval_time64(pid_t, timespec64*) lp32
DSYSCALLS.TXT60 pid_t getpgid(pid_t) all
61 pid_t getppid() all
62 pid_t getsid(pid_t) all
63 pid_t setsid() all
64 int kill(pid_t, int) all
65 int tgkill(pid_t tgid, pid_t tid, int sig) all
81 int prlimit64|prlimit(pid_t, int, struct rlimit64*, const struct rlimit64*) lp64
82 int prlimit64(pid_t, int, struct rlimit64*, const struct rlimit64*) lp32
86 int setpgid(pid_t, pid_t) all
118 pid_t __getpid:getpid() all
[all …]
/bionic/linker/
Dlinker_memory.cpp40 static std::atomic<pid_t> fallback_tid(0);
45 pid_t expected = 0; in __linker_enable_fallback_allocator()
50 pid_t previous = fallback_tid.exchange(0); in __linker_disable_fallback_allocator()
/bionic/libc/include/bits/
Dflock.h46 pid_t l_pid; \
56 pid_t l_pid; \

12345