/haiku/src/tests/system/kernel/ |
H A D | wait_test_1.c | 22 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 D | wait_test_2.cpp | 53 pid_t pid; 57 pid = waitpid(0, &childStatus, 0); 59 pid = wait(&childStatus); 61 pid, strerror(errno), childStatus); 62 } while (pid >= 0);
|
H A D | wait_test_4.cpp | 53 pid_t pid; 57 pid = waitpid(0, &childStatus, 0); 59 pid = wait(&childStatus); 61 pid, strerror(errno), childStatus); 62 } while (pid >= 0);
|
H A D | wait_test_3.cpp | 52 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 D | set_area_protection_test1.cpp | 74 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 D | mmap_cut_tests.cpp | 109 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 D | posix_spawn_test.cpp | 19 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 D | posix_spawn_pipe_test.c | 16 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 D | sigqueue.cpp | 19 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 D | kill.c | 17 kill(pid_t pid, int sig) argument 26 status = _kern_send_signal(pid, sig, NULL, 0);
|
/haiku/src/tests/libs/bsd/ |
H A D | forkpty.c | 11 pid_t pid; local 13 if ((pid = forkpty(&fd, NULL, NULL, NULL)) < 0) 15 else if (!pid)
|
H A D | wait4_test.cpp | 56 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 D | time.cpp | 21 (pid_t pid, clockid_t* _clockID), 22 return B_TO_POSITIVE_ERROR(sReal_clock_getcpuclockid(pid, _clockID));
|
/haiku/src/libs/bsd/ |
H A D | daemon.c | 29 pid_t pid; local 37 pid = fork(); 38 if (pid == -1) { 42 if (pid > 0) {
|
H A D | wait.c | 15 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 D | pty.cpp | 75 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 D | arch_mmu_amcc440.cpp | 67 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 D | wait.cpp | 27 _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 D | wait.h | 25 pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage);
|
/haiku/src/bin/network/ftpd/ |
H A D | popen.c | 79 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 D | posix_openpt_test.cpp | 44 int pid; local 62 pid = fork(); 63 if (pid < 0) { 65 } else if (pid == 0) { // child
|
/haiku/src/tests/system/benchmarks/ |
H A D | forkbench.c | 27 int pid, child, status, brksize; local 62 while ((pid = wait(&status)) != -1 && pid != child)
|
/haiku/src/system/libroot/posix/time/ |
H A D | clock_support.cpp | 147 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, µSeconds); 163 // Since pid is > 0, B_BAD_VALUE always means a team with that ID 170 *_clockID = pid;
|
/haiku/headers/private/app/ |
H A D | LooperList.h | 72 FindPortPred(port_id pid) : port(pid) {} argument
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/ |
H A D | r88e_rom_image.h | 51 uint16_t pid; member in struct:r88e_rom::__anon1358::__anon1359 60 uint16_t pid; member in struct:r88e_rom::__anon1358::__anon1360
|