/bionic/libc/include/ |
D | unistd.h | 80 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 …]
|
D | sched.h | 45 int sched_setscheduler(pid_t __pid, int __policy, const struct sched_param* __param); 46 int sched_getscheduler(pid_t __pid); 50 int sched_setparam(pid_t __pid, const struct sched_param* __param); 51 int sched_getparam(pid_t __pid, struct sched_param* __param); 52 int sched_rr_get_interval(pid_t __pid, struct timespec* __quantum); 76 int sched_setaffinity(pid_t __pid, size_t __set_size, const cpu_set_t* __set); 77 int sched_getaffinity(pid_t __pid, size_t __set_size, cpu_set_t* __set);
|
D | spawn.h | 53 int posix_spawn(pid_t* __pid, const char* __path, const posix_spawn_file_actions_t* __actions, cons… 54 int posix_spawnp(pid_t* __pid, const char* __file, const posix_spawn_file_actions_t* __actions, con… 62 int posix_spawnattr_setpgroup(posix_spawnattr_t* __attr, pid_t __pgroup) __INTRODUCED_IN(28); 63 int posix_spawnattr_getpgroup(const posix_spawnattr_t* __attr, pid_t* __pgroup) __INTRODUCED_IN(28);
|
/bionic/tests/headers/posix/ |
D | sched_h.c | 36 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()
|
D | unistd_h.c | 285 TYPE(pid_t); in unistd_h() 315 FUNCTION(fork, pid_t (*f)(void)); in unistd_h() 331 FUNCTION(getpgid, pid_t (*f)(pid_t)); in unistd_h() 332 FUNCTION(getpgrp, pid_t (*f)(void)); in unistd_h() 333 FUNCTION(getpid, pid_t (*f)(void)); in unistd_h() 334 FUNCTION(getppid, pid_t (*f)(void)); in unistd_h() 335 FUNCTION(getsid, pid_t (*f)(pid_t)); in unistd_h() 356 FUNCTION(setpgid, int (*f)(pid_t, pid_t)); in unistd_h() 357 FUNCTION(setpgrp, pid_t (*f)(void)); in unistd_h() 360 FUNCTION(setsid, pid_t (*f)(void)); in unistd_h() [all …]
|
D | spawn_h.c | 38 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()
|
D | sys_wait_h.c | 70 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()
|
D | sys_shm_h.c | 45 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()
|
D | sys_msg_h.c | 45 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/bionic/ |
D | getpid.cpp | 33 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()
|
D | pthread_internal.h | 70 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() 184 __LIBC_HIDDEN__ pid_t __pthread_internal_gettid(pthread_t pthread_id, const char* caller);
|
D | termios.cpp | 38 pid_t tcgetpgrp(int fd) { in tcgetpgrp() 39 pid_t pid; in tcgetpgrp() 44 int tcsetpgrp(int fd, pid_t pid) { in tcsetpgrp()
|
D | wait.cpp | 34 pid_t wait(int* status) { in wait() 38 pid_t waitpid(pid_t pid, int* status, int options) { in waitpid()
|
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()
|
D | spawn.cpp | 90 pid_t pgroup; 136 static int posix_spawn(pid_t* pid_ptr, in posix_spawn() 151 pid_t pid = use_vfork ? vfork() : fork(); in posix_spawn() 168 int posix_spawn(pid_t* pid, const char* path, const posix_spawn_file_actions_t* actions, in posix_spawn() 173 int posix_spawnp(pid_t* pid, const char* file, const posix_spawn_file_actions_t* actions, in posix_spawnp() 204 int posix_spawnattr_setpgroup(posix_spawnattr_t* attr, pid_t pgroup) { in posix_spawnattr_setpgroup() 209 int posix_spawnattr_getpgroup(const posix_spawnattr_t* attr, pid_t* pgroup) { in posix_spawnattr_getpgroup()
|
/bionic/libc/include/sys/ |
D | wait.h | 41 pid_t wait(int* __status); 42 pid_t waitpid(pid_t __pid, int* __status, int __options); 44 pid_t wait4(pid_t __pid, int* __status, int __options, struct rusage* __rusage) __INTRODUCED_IN(18);
|
/bionic/libc/kernel/uapi/linux/ |
D | elfcore.h | 42 pid_t pr_pid; 43 pid_t pr_ppid; 44 pid_t pr_pgrp; 45 pid_t pr_sid; 62 pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
|
/bionic/tests/ |
D | spawn_test.cpp | 75 pid_t g; in TEST() 194 pid_t pid; in TEST() 202 pid_t pid; in TEST() 210 pid_t pid; in TEST() 218 pid_t pid; in TEST() 227 pid_t pid; in TEST() 248 pid_t pid; in TEST() 280 pid_t pid; in CatFileToString() 291 pid_t pid; 292 pid_t ppid; [all …]
|
D | sys_ptrace_test.cpp | 51 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() 295 static void set_breakpoint(pid_t child) { in set_breakpoint() 344 pid_t child = fork(); in TEST() 376 pid_t worker = -1; 377 pid_t tracer = -1; 441 pid_t rc = TEMP_FAILURE_RETRY(waitpid(tracer, &result, 0)); in WaitForTracer() [all …]
|
D | stack_protector_test.cpp | 32 extern "C" pid_t gettid(); // glibc defines this but doesn't declare it anywhere. 39 std::set<pid_t> tids; 43 pid_t tid = gettid(); in Check()
|
/bionic/libc/include/android/ |
D | legacy_sys_wait_inlines.h | 41 static __inline pid_t wait4(pid_t pid, int* status, int options, struct rusage* rusage) { in wait4() 42 return __BIONIC_CAST(static_cast, pid_t, syscall(__NR_wait4, pid, status, options, rusage)); in wait4()
|
/bionic/libc/ |
D | SECCOMP_ALLOWLIST_COMMON.TXT | 10 pid_t gettid:gettid() all 15 int rt_tgsigqueueinfo:int rt_tgsigqueueinfo(pid_t tgid, pid_t tid, int sig, siginfo_t *uinfo) all 19 pid_t vfork:vfork() arm,x86,x86_64 22 int perf_event_open:perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd,… 46 int sched_getattr(pid_t pid, struct sched_attr* attr, unsigned int flags) all 47 int sched_setattr(pid_t pid, struct sched_attr* attr, unsigned int size, unsigned int flags) all 74 int sched_rr_get_interval_time64(pid_t, timespec64*) lp32 76 int pidfd_open(pid_t pid, unsigned int flags) all
|
D | SYSCALLS.TXT | 46 pid_t getpgid(pid_t) all 47 pid_t getppid() all 48 pid_t getsid(pid_t) all 49 pid_t setsid() all 61 int kill(pid_t, int) all 62 int tgkill(pid_t tgid, pid_t tid, int sig) all 75 int prlimit64|prlimit(pid_t, int, struct rlimit64*, const struct rlimit64*) lp64 76 int prlimit64(pid_t, int, struct rlimit64*, const struct rlimit64*) lp32 80 int setpgid(pid_t, pid_t) all 109 pid_t __getpid:getpid() all [all …]
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_system_tests.cpp | 69 static void Exec(const char* test_name, const char* debug_options, pid_t* pid, int exit_code = 0, in Exec() 157 static void GetLogStr(pid_t pid, std::string* log_str, log_id log = LOG_ID_MAIN) { in GetLogStr() 196 static void FindStrings(pid_t pid, std::vector<const char*> match_strings, in FindStrings() 230 pid_t pid; in TEST() 432 pid_t pid; in VerifyLeak() 482 pid_t pid; in TEST() 521 pid_t pid; in TEST() 530 pid_t pid; in TEST() 539 pid_t tid; in TEST() 566 pid_t pid; in TEST()
|
/bionic/linker/ |
D | linker_memory.cpp | 40 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()
|