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

1234567891011>>

/haiku-fatelf/src/tests/system/benchmarks/libMicro/
H A Dsignal.c81 int pid; local
83 pid = getpid();
86 (void) kill(pid, SIGUSR1);
87 (void) kill(pid, SIGUSR1);
88 (void) kill(pid, SIGUSR1);
89 (void) kill(pid, SIGUSR1);
90 (void) kill(pid, SIGUSR1);
91 (void) kill(pid, SIGUSR1);
92 (void) kill(pid, SIGUSR1);
93 (void) kill(pid, SIGUSR
[all...]
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dpex-os2.c47 int pid; local
52 pid = (flags & PEXECUTE_SEARCH ? spawnvp : spawnv) (1, program, argv);
53 if (pid == -1)
59 return pid;
63 pwait (pid, status, flags)
64 int pid;
70 int pid = wait (status); local
71 return pid;
H A Dwaitpid.c3 @deftypefn Supplemental int waitpid (int @var{pid}, int *@var{status}, int)
6 values of @var{pid} depend on your implementation of @code{wait}, as
26 waitpid (pid, stat_loc, options)
27 pid_t pid;
33 if (wpid == pid || wpid == -1)
/haiku-fatelf/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);
/haiku-fatelf/src/bin/gdb/gdb/
H A Dinfttrace.h29 extern int hpux_has_forked (int pid, int *childpid);
30 extern int hpux_has_vforked (int pid, int *childpid);
31 extern int hpux_has_execd (int pid, char **execd_pathname);
32 extern int hpux_has_syscall_event (int pid, enum target_waitkind *kind,
H A Dcoff-solib.h64 #define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag,filename,cond_string) \
73 #define SOLIB_CREATE_CATCH_UNLOAD_HOOK(pid,tempflag,filename,cond_string) \
85 #define SOLIB_HAVE_LOAD_EVENT(pid) \
89 #define SOLIB_HAVE_LOAD_EVENT(pid) \
107 #define SOLIB_LOADED_LIBRARY_PATHNAME(pid) \
111 #define SOLIB_LOADED_LIBRARY_PATHNAME(pid) \
123 #define SOLIB_HAVE_UNLOAD_EVENT(pid) \
127 #define SOLIB_HAVE_UNLOAD_EVENT(pid) \
144 #define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) \
148 #define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) \
[all...]
H A Dgdb_gcore.sh30 echo "usage: gcore [-o filename] pid"
42 echo "usage: gcore [-o filename] pid"
47 # Shift over to start of pid list
55 for pid in $*
57 # Write gdb script for pid $pid.
63 attach $pid
64 gcore $name.$pid
69 if [ -r $name.$pid ] ; then
72 echo gcore: failed to create $name.$pid
[all...]
H A Dpa64solib.h55 #define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag, filename,cond_string) \
56 pa64_solib_create_catch_load_hook (pid, tempflag, filename, cond_string)
63 #define SOLIB_CREATE_CATCH_UNLOAD_HOOK(pid,tempflag,filename, cond_string) \
64 pa64_solib_create_catch_unload_hook (pid, tempflag, filename, cond_string)
73 #define SOLIB_HAVE_LOAD_EVENT(pid) \
74 pa64_solib_have_load_event (pid)
88 #define SOLIB_LOADED_LIBRARY_PATHNAME(pid) \
89 pa64_solib_loaded_library_pathname (pid)
98 #define SOLIB_HAVE_UNLOAD_EVENT(pid) \
99 pa64_solib_have_unload_event (pid)
[all...]
H A Dsomsolib.h68 #define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag, filename,cond_string) \
69 som_solib_create_catch_load_hook (pid, tempflag, filename, cond_string)
77 #define SOLIB_CREATE_CATCH_UNLOAD_HOOK(pid,tempflag,filename, cond_string) \
78 som_solib_create_catch_unload_hook (pid, tempflag, filename, cond_string)
88 #define SOLIB_HAVE_LOAD_EVENT(pid) \
89 som_solib_have_load_event (pid)
104 #define SOLIB_LOADED_LIBRARY_PATHNAME(pid) \
105 som_solib_loaded_library_pathname (pid)
115 #define SOLIB_HAVE_UNLOAD_EVENT(pid) \
116 som_solib_have_unload_event (pid)
[all...]
H A Dfbsd-nat.h28 extern char *fbsd_pid_to_exec_file (int pid);
H A Dinf-ptrace.c45 int pid = PIDGET (inferior_ptid); local
47 if (pid == 0)
58 ptrace (PT_KILL, pid, (PTRACE_TYPE_ARG3) 0, 0);
70 int pid = PIDGET (ptid); local
72 if (pid == -1)
77 pid = PIDGET (inferior_ptid);
93 ptrace (request, pid, (PTRACE_TYPE_ARG3) 1, target_signal_to_host (signal));
98 /* Wait for child to do something. Return pid of child, or -1 in case
111 int pid; local
119 pid
171 pid_t pid = PIDGET (ptid); local
182 int pid; local
226 inf_ptrace_post_attach(int pid) argument
243 int pid = PIDGET (inferior_ptid); local
312 inf_ptrace_him(int pid) argument
362 inf_ptrace_acknowledge_created_inferior(int pid) argument
370 inf_ptrace_insert_fork_catchpoint(int pid) argument
377 inf_ptrace_remove_fork_catchpoint(int pid) argument
384 inf_ptrace_insert_vfork_catchpoint(int pid) argument
391 inf_ptrace_remove_vfork_catchpoint(int pid) argument
405 inf_ptrace_insert_exec_catchpoint(int pid) argument
412 inf_ptrace_remove_exec_catchpoint(int pid) argument
427 inf_ptrace_has_exited(int pid, int wait_status, int *exit_status) argument
[all...]
H A Dsparc-nat.c141 int pid; local
156 pid = TIDGET (inferior_ptid);
157 if (pid == 0)
158 pid = PIDGET (inferior_ptid);
170 if (ptrace (PTRACE_GETREGS, pid, (PTRACE_TYPE_ARG3) &regs, 0) == -1)
182 if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
193 int pid; local
197 pid = TIDGET (inferior_ptid);
198 if (pid == 0)
199 pid
276 int pid; local
[all...]
/haiku-fatelf/src/bin/diffutils/lib/
H A Dwaitpid.c34 waitpid (pid_t pid, int *stat_loc, int options) argument
39 if (!options && (pid == -1 || 0 < pid))
45 if (p && (p == pid || pid == -1))
59 if (p == pid || pid == -1)
/haiku-fatelf/src/bin/findutils/lib/
H A Dwaitpid.c42 waitpid (pid_t pid, int *stat_loc, int options) argument
47 if (!options && (pid == -1 || 0 < pid))
53 if (p && (p == pid || pid == -1))
67 if (p == pid || pid == -1)
/haiku-fatelf/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,
/haiku-fatelf/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)
/haiku-fatelf/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-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_atfork/
H A D2-1.c31 pid_t pid; local
49 pid = fork();
51 if(pid < 0)
56 if(pid == 0)
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sigsuspend/
H A D3-1.c34 pid_t pid; local
35 pid = fork();
37 if (pid == 0) {
61 kill (pid, SIGABRT);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/clock_getres/
H A D5-1.c32 int pid = fork();
33 if (pid < 0) {
38 if (pid == 0) {
45 error = clock_getcpuclockid(pid, &clockID);
52 if (wait(NULL) != pid) {
H A D6-1.c34 int pid = fork();
35 if (pid < 0) {
40 if (pid == 0) {
47 error = clock_getcpuclockid(pid, &clockID);
54 if (wait(NULL) != pid) {
/haiku-fatelf/src/bin/bash/
H A Dnojobs.c63 # define WAITPID(pid, statusp, options) waitpid (pid, statusp, options)
65 # define WAITPID(pid, statusp, options) wait (statusp)
99 /* STATUS and FLAGS are only valid if pid != NO_PID
102 pid_t pid; member in struct:proc_status
162 pid_list[i].pid = NO_PID;
173 if (pid_list[i].pid == NO_PID)
183 or the value NO_PID if the pid wasn't found. */
185 find_index_by_pid (pid)
186 pid_t pid;
438 pid_t pid; local
476 pid_t pid; local
[all...]

Completed in 116 milliseconds

1234567891011>>