Searched refs:pid (Results 151 - 175 of 304) sorted by relevance

1234567891011>>

/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_spin_init/
H A D2-1.c54 int pid; local
101 pid = fork();
102 if(pid == -1)
107 else if(pid > 0)
H A D2-2.c62 int pid; local
108 pid = fork();
109 if(pid == -1)
114 else if(pid > 0)
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_open/
H A D23-1.c83 int i, pid, result_fd; local
119 pid = fork();
120 if(pid == -1){
123 } else if(pid == 0){
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sigsuspend/
H A D4-1.c68 pid_t pid; local
69 pid = fork();
71 if (pid == 0) {
116 kill (pid, SIGUSR1);
/haiku-fatelf/src/bin/gdb/gdb/
H A Dvax-nat.c77 int pid;
80 pid = PIDGET (inferior_ptid);
81 u_ar0 = ptrace (PT_READ_U, pid, u_ar0_offset, 0);
76 int pid; local
/haiku-fatelf/src/tests/system/benchmarks/
H A Dforkbench.c27 int pid, child, status, brksize; local
62 while ((pid = wait(&status)) != -1 && pid != child)
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/clock_nanosleep/
H A D1-3.c37 int pid; local
45 if ((pid = fork()) == 0) {
67 if (kill(pid, SIGABRT) != 0) {
H A D2-2.c38 int pid, sleepuntilsec; local
48 if ((pid = fork()) == 0) {
74 if (kill(pid, SIGABRT) != 0) {
H A D9-1.c37 int pid; local
45 if ((pid = fork()) == 0) {
91 if (kill(pid, SIGABRT) != 0) {
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_open/
H A D16-1.c38 int pid, succeeded=0; local
49 if ((pid = fork()) == 0) {
76 kill(pid, SIGUSR1); //tell child ready to call mq_open
H A D2-1.c48 int pid, ret; local
52 if ((pid = fork()) == 0) {
111 kill(pid, SIGABRT);
121 kill(pid, SIGABRT);
126 kill(pid, SIGUSR1); //tell child mq_open and mq_send finished
H A D7-2.c45 int pid; local
49 if ((pid = fork()) == 0) {
118 kill(pid, SIGABRT);
131 kill(pid, SIGABRT);
139 kill(pid, SIGUSR1); //tell child mq_open and mq_send finished
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/nanosleep/
H A D1-3.c29 int pid; local
37 if ((pid = fork()) == 0) {
59 if (kill(pid, SIGABRT) != 0) {
H A D7-1.c33 int pid; local
36 if ((pid = fork()) == 0) {
71 if (kill(pid, SIGABRT) != 0) {
H A D7-2.c35 int pid; local
43 if ((pid = fork()) == 0) {
88 if (kill(pid, SIGABRT) != 0) {
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sigqueue/
H A D7-1.c47 int pid, rtsig; local
64 pid = getpid();
69 if (sigqueue(pid, rtsig, value) != 0) {
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sigwaitinfo/
H A D7-1.c42 int pid, i; local
53 pid = getpid();
59 if (sigqueue(pid, SIGTOTEST, value) != 0) {
H A D8-1.c41 int pid, i; local
52 pid = getpid();
58 if (sigqueue(pid, SIGTOTEST, value) != 0) {
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/mqueues/
H A Dsend_rev_1.c33 pid_t pid; local
55 if ( 0 != (pid = fork() )) {
66 printf("Process %ld send message '%s' to process %ld \n", (long)getpid(), s_msg_ptr[i], (long)pid);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/semaphores/
H A Dsem_lock.c33 pid_t pid=0; local
53 if ((pid = fork())!=0)
58 sprintf(buf, "%d process_ID:%ld parent_process_ID:%ld child_process_ID:%ld \n", i, (long)getpid(), (long)getppid(), (long)pid);
/haiku-fatelf/src/bin/bash/
H A Djobs.c96 # define WAITPID(pid, statusp, options) \
100 # define WAITPID(pid, statusp, options) \
101 waitpid ((pid_t)pid, statusp, options)
104 # define WAITPID(pid, statusp, options) \
107 # define WAITPID(pid, statusp, options) \
319 /* flags to detect pid wraparound */
327 #define setpgid(pid, pgrp) setpgrp (pid, pgrp)
655 bgp_alloc (pid, status)
656 pid_t pid;
1686 pid_t pid; local
2129 pid_t pid; local
2592 pid_t pid; local
2901 pid_t pid; local
3029 pid_t pid; local
[all...]
/haiku-fatelf/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-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_timedsend/
H A D16-1.c61 int pid; local
76 if ((pid = fork()) == 0) {
127 kill(pid, SIGUSR1);
144 kill(pid, SIGKILL); //kill child
160 kill(pid, SIGKILL); //kill child
H A D5-3.c58 int pid; local
72 if ((pid = fork()) == 0) {
114 kill(pid, SIGUSR1);
127 kill(pid, SIGKILL); //kill child
141 kill(pid, SIGKILL); //kill child
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_exit/
H A D6-1.c122 pid_t pid, chk; local
128 pid = fork();
129 if (pid == (pid_t)-1)
133 if (pid == 0)
149 chk = waitpid(pid, &status, 0);
150 if (chk != pid)
152 output("Expected pid: %i. Got %i\n", (int)pid, (int)chk);

Completed in 78 milliseconds

1234567891011>>