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

123

/haiku/src/tests/system/kernel/
H A Dwait_test_1.c22 pid_t pid = wait(&childStatus); local
23 printf("wait() returned %ld (%s)\n", pid, strerror(errno));
25 pid = waitpid(-1, &childStatus, 0);
26 printf("waitpid(-1, ...) returned %ld (%s)\n", pid, strerror(errno));
28 pid = waitpid(0, &childStatus, 0);
29 printf("waitpid(0, ...) returned %ld (%s)\n", pid, strerror(errno));
31 pid = waitpid(getpgrp(), &childStatus, 0);
32 printf("waitpid(%ld, ...) returned %ld (%s)\n", getpgrp(), pid, strerror(errno));
H A Dwait_test_2.cpp53 pid_t pid;
57 pid = waitpid(0, &childStatus, 0);
59 pid = wait(&childStatus);
61 pid, strerror(errno), childStatus);
62 } while (pid >= 0);
H A Dwait_test_4.cpp53 pid_t pid;
57 pid = waitpid(0, &childStatus, 0);
59 pid = wait(&childStatus);
61 pid, strerror(errno), childStatus);
62 } while (pid >= 0);
H A Dwait_test_3.cpp52 pid_t pid;
55 pid = waitpid(0, &childStatus, 0);
56 printf("waitpid() returned %ld (%s), child status %d\n", pid, strerror(errno), childStatus);
57 } while (pid >= 0);
H A Dset_area_protection_test1.cpp74 pid_t pid = fork(); local
75 if (pid < 0) {
80 if (pid == 0) {
82 pid = find_thread(NULL);
86 pid, // clone -- the child should see the change
87 pid, // clone -- the child should see the change
133 *areaAddresses[i] = pid;
141 wait_for_thread(pid, &result);
H A Dmmap_cut_tests.cpp109 int pid = fork(); local
111 if (pid == 0)
115 else if (pid < 0)
118 return pid;
122 waitpid(pid, &status, 0);
/haiku/src/tests/system/libroot/posix/
H A Dposix_spawn_test.cpp19 pid_t pid; local
20 int err = posix_spawnp(&pid, _args[0], NULL, NULL, _args, _env);
21 printf("posix_spawnp: %d, %d\n", err, pid);
24 pid_t waitpid_res = waitpid(pid, &status, 0);
25 if (waitpid_res != pid)
26 printf("posix_spawnp: waitpid didn't return pid\n");
34 err = posix_spawn(&pid, _args[0], NULL, NULL, _args, _env);
35 printf("posix_spawn: %d, %d\n", err, pid);
38 waitpid_res = waitpid(pid, &status, 0);
39 if (waitpid_res != pid)
[all...]
H A Dposix_spawn_pipe_test.c16 pid_t pid; local
32 errno = posix_spawn(&pid, "./posix_spawn_pipe_err", &fdops, NULL, argv, NULL);
/haiku/src/system/libroot/posix/signal/
H A Dsigqueue.cpp19 sigqueue(pid_t pid, int signal, const union sigval userValue) argument
24 if (pid <= 0)
27 status_t error = _kern_send_signal(pid, signal, &userValue,
H A Dkill.c17 kill(pid_t pid, int sig) argument
26 status = _kern_send_signal(pid, sig, NULL, 0);
/haiku/src/tests/libs/bsd/
H A Dforkpty.c11 pid_t pid; local
13 if ((pid = forkpty(&fd, NULL, NULL, NULL)) < 0)
15 else if (!pid)
H A Dwait4_test.cpp56 pid_t pid; local
60 pid = wait4(-1, &childStatus, 0, &usage);
63 pid, strerror(errno), childStatus, usage.ru_stime.tv_sec,
66 } while (pid >= 0);
/haiku/src/libs/posix_error_mapper/
H A Dtime.cpp21 (pid_t pid, clockid_t* _clockID),
22 return B_TO_POSITIVE_ERROR(sReal_clock_getcpuclockid(pid, _clockID));
/haiku/src/libs/bsd/
H A Ddaemon.c29 pid_t pid; local
37 pid = fork();
38 if (pid == -1) {
42 if (pid > 0) {
H A Dwait.c15 extern pid_t _waitpid(pid_t pid, int* _status, int options,
20 pid_t _wait4_base(pid_t pid, int *status, int options, struct rusage *rusage);
22 pid_t _wait4_current(pid_t pid, int *status, int options,
34 _wait4_base(pid_t pid, int *status, int options, struct rusage *rusage) argument
37 pid_t waitPid = _waitpid(pid, status, options,
59 _wait4_current(pid_t pid, int *status, int options, struct rusage *rusage) argument
61 pid_t waitPid = _wait4_base(pid, status, options, rusage);
H A Dpty.cpp75 int pid = fork(); local
76 if (pid < 0) {
82 if (pid == 0) {
90 return pid;
/haiku/src/system/boot/platform/u-boot/arch/ppc/
H A Darch_mmu_amcc440.cpp67 read_TLB(int i, uint32 tlb[3], uint8 &pid) argument
69 //FIXME:read pid too
83 write_TLB(int i, uint32 tlb[3], uint8 pid) argument
85 //FIXME:write pid too
104 uint8 pid; local
105 read_TLB(i, tlb, pid);
107 i, tlb[0], tlb[1], tlb[2], pid);
139 uint8 pid; local
144 read_TLB(TLB_COUNT - 1, tlb, pid);
157 read_TLB(i, tlb, pid);
[all...]
/haiku/src/system/libroot/posix/sys/
H A Dwait.cpp27 _waitpid(pid_t pid, int* _status, int options, team_usage_info *usage_info) argument
31 pid_t child = _kern_wait_for_child(pid, options | WEXITED, &info,
88 waitpid(pid_t pid, int* _status, int options) argument
90 return _waitpid(pid, _status, options, NULL);
/haiku/headers/compatibility/bsd/sys/
H A Dwait.h25 pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage);
/haiku/src/bin/network/ftpd/
H A Dpopen.c79 int argc, gargc, pdes[2], pid; local
124 pid = (strcmp(gargv[0], _PATH_LS) == 0) ? fork() : vfork();
126 pid = fork();
128 switch(pid) {
176 pids[fileno(iop)] = pid;
188 pid_t pid; local
198 while ((pid = waitpid(pids[fdes], &status, 0)) < 0 && errno == EINTR)
202 if (pid < 0)
203 return (pid);
/haiku/src/tests/add-ons/kernel/drivers/tty/
H A Dposix_openpt_test.cpp44 int pid; local
62 pid = fork();
63 if (pid < 0) {
65 } else if (pid == 0) { // child
/haiku/src/tests/system/benchmarks/
H A Dforkbench.c27 int pid, child, status, brksize; local
62 while ((pid = wait(&status)) != -1 && pid != child)
/haiku/src/system/libroot/posix/time/
H A Dclock_support.cpp147 clock_getcpuclockid(pid_t pid, clockid_t* _clockID) argument
149 if (pid < 0)
152 // The CPU clock ID for a process is simply the team ID. For pid == 0 we're
154 if (pid == 0) {
161 status_t error = _kern_get_clock(pid, &microSeconds);
163 // Since pid is > 0, B_BAD_VALUE always means a team with that ID
170 *_clockID = pid;
/haiku/headers/private/app/
H A DLooperList.h72 FindPortPred(port_id pid) : port(pid) {} argument
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/
H A Dr88e_rom_image.h51 uint16_t pid; member in struct:r88e_rom::__anon1358::__anon1359
60 uint16_t pid; member in struct:r88e_rom::__anon1358::__anon1360

Completed in 103 milliseconds

123