Home
last modified time | relevance | path

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

12

/third_party/ulib/jemalloc/test/unit/
A Dfork.c11 pid_t pid; in TEST_BEGIN() local
16 pid = fork(); in TEST_BEGIN()
24 if (pid == -1) { in TEST_BEGIN()
27 } else if (pid == 0) { in TEST_BEGIN()
35 if (waitpid(pid, &status, 0) == -1) in TEST_BEGIN()
/third_party/ulib/musl/src/misc/
A Dwordexp.c13 static void reap(pid_t pid) { in reap() argument
16 if (waitpid(pid, &status, 0) < 0) { in reap()
42 pid_t pid; in wordexp() local
114 pid = fork(); in wordexp()
115 if (pid < 0) { in wordexp()
120 if (!pid) { in wordexp()
134 kill(pid, SIGKILL); in wordexp()
135 reap(pid); in wordexp()
144 reap(pid); in wordexp()
163 reap(pid); in wordexp()
A Dsyslog.c78 int pid; in _vsyslog() local
93 pid = (log_opt & LOG_PID) ? getpid() : 0; in _vsyslog()
95 pid ? "[" : "", pid, pid ? "]" : ""); in _vsyslog()
/third_party/ulib/musl/src/process/
A Dposix_spawn.c25 pid_t pid; in __posix_spawnx() local
41 pid = -ENOSYS; in __posix_spawnx()
44 if (pid > 0) { in __posix_spawnx()
48 waitpid(pid, &(int){0}, 0); in __posix_spawnx()
50 ec = -pid; in __posix_spawnx()
56 *res = pid; in __posix_spawnx()
A Dsystem.c10 pid_t pid; in system() local
33 …ret = posix_spawn(&pid, "/bin/sh", 0, &attr, (char* []){(char*)"sh", (char*)"-c", (char*)cmd, 0}, … in system()
37 while (waitpid(pid, &status, 0) < 0 && errno == EINTR) in system()
A Dwaitpid.c5 pid_t waitpid(pid_t pid, int* status, int options) { in waitpid() argument
/third_party/uapp/dash/src/
A Djobs.c250 pid_t pid; local
323 pid = -jp->ps[0].pid;
629 if (job->ps[job->nprocs - 1].pid == pid) in waitcmd()
915 pgrp = pid; in forkparent()
928 ps->pid = pid; in forkparent()
939 int pid; in forkshell() local
942 pid = fork(); in forkshell()
949 if (pid == 0) in forkshell()
953 return pid; in forkshell()
1055 pid = sp->pid; in dowait()
[all …]
A Dsystem.h86 static inline int killpg(pid_t pid, int signal) in killpg() argument
89 if (pid < 0) in killpg()
92 return kill(-pid, signal); in killpg()
A Djobs.h59 pid_t pid; /* process id */ member
/third_party/ulib/musl/src/stdio/
A Dpclose.c7 pid_t pid = f->pipe_pid; in pclose() local
9 return waitpid(pid, NULL, 0); in pclose()
A Dpopen.c11 pid_t pid; in popen() local
52 …if (!(e = posix_spawn(&pid, "/bin/sh", &fa, 0, (char* []){(char*)"sh", (char*)"-c", (char*)cmd, 0}, in popen()
55 f->pipe_pid = pid; in popen()
/third_party/ulib/ngunwind/src/
A Dos-linux.c33 tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, in tdep_get_elf_image() argument
41 if (maps_init (&mi, pid) < 0) in tdep_get_elf_image()
A Dos-linux.h66 maps_init (struct map_iterator *mi, pid_t pid) in maps_init() argument
71 cp = ltoa (path + 6, pid); in maps_init()
A Delfxx.c342 elf_w (get_proc_name) (unw_addr_space_t as, pid_t pid, unw_word_t ip, in elf_w()
349 ret = tdep_get_elf_image (&ei, pid, ip, &segbase, &mapoff, NULL, 0); in elf_w()
/third_party/ulib/musl/stubs/
A Didstubs.c47 static pid_t stub_getpgid(pid_t pid) { in stub_getpgid() argument
67 static pid_t stub_getsid(pid_t pid) { in stub_getsid() argument
110 static int stub_setpgid(pid_t pid, pid_t pgid) { in stub_setpgid() argument
/third_party/ulib/musl/src/sched/
A Dsched_getscheduler.c4 int sched_getscheduler(pid_t pid) { in sched_getscheduler() argument
A Dsched_getparam.c4 int sched_getparam(pid_t pid, struct sched_param* param) { in sched_getparam() argument
A Dsched_rr_get_interval.c4 int sched_rr_get_interval(pid_t pid, struct timespec* ts) { in sched_rr_get_interval() argument
A Dsched_setparam.c4 int sched_setparam(pid_t pid, const struct sched_param* param) { in sched_setparam() argument
A Dsched_setscheduler.c4 int sched_setscheduler(pid_t pid, int sched, const struct sched_param* param) { in sched_setscheduler() argument
/third_party/ulib/musl/src/signal/
A Dkill.c4 int kill(pid_t pid, int sig) { in kill() argument
A Dsigqueue.c5 int sigqueue(pid_t pid, int sig, const union sigval value) { in sigqueue() argument
/third_party/ulib/musl/src/time/
A Dclock_getcpuclockid.c5 int clock_getcpuclockid(pid_t pid, clockid_t* clk) { in clock_getcpuclockid() argument
/third_party/ulib/ngunwind/include/ngunwind/private/
A Delfxx.h46 pid_t pid, unw_word_t ip,
/third_party/ulib/musl/include/
A Dfcntl.h199 pid_t pid; member

Completed in 26 milliseconds

12