Home
last modified time | relevance | path

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

12345678910>>...70

/third_party/curl/tests/
H A Dprocesshelp.pm90 # pidfromfile returns the pid stored in the given pidfile. The value
91 # of the returned pid will never be a negative value. It will be zero
92 # on any file related error or if a pid can not be extracted from the
97 my $pid = 0;
100 $pid = 0 + <$pidfh>;
102 $pid = 0 if($pid < 0);
104 return $pid;
108 # pidexists checks if a process with a given pid exists and is alive.
109 # This will return the positive pid i
[all...]
H A Dservers.pm116 my %serverpidfile; # all server pid file names, identified by server id
280 if($tryhandle =~ /^(\S+)\s+pid:\s+(\d+)\s+type:\s+(\w+)\s+([0-9A-F]+):\s+(.+)\r\r/) {
299 my $pid = $_[0];
300 if((not defined $pid) || $pid <= 0) {
304 my $rc = pidwait($pid, &WNOHANG);
305 return ($rc == $pid)?1:0;
385 # Ugly hack but ssh client and gnutls-serv don't support pid files
390 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose);
393 logmsg "startnew: failed to write fake $pidfile with pid
[all...]
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dinvalid_param.c41 pid_t pid = fork(); in clearerr_0100() local
42 if (pid == -1) { in clearerr_0100()
44 } else if (pid == 0) { in clearerr_0100()
48 waitpid(pid, &status, 0); in clearerr_0100()
63 pid_t pid = fork(); in feof_0100() local
64 if (pid == -1) { in feof_0100()
66 } else if (pid == 0) { in feof_0100()
70 waitpid(pid, &status, 0); in feof_0100()
85 pid_t pid = fork(); in ferror_0100() local
86 if (pid in ferror_0100()
107 pid_t pid = fork(); fgetc_0100() local
129 pid_t pid = fork(); fgets_0100() local
152 pid_t pid = fork(); fprintf_0100() local
175 pid_t pid = fork(); fputc_0100() local
197 pid_t pid = fork(); fputs_0100() local
219 pid_t pid = fork(); fread_0600() local
242 pid_t pid = fork(); fscanf_0100() local
265 pid_t pid = fork(); fseek_0100() local
288 pid_t pid = fork(); fseeko_0100() local
310 pid_t pid = fork(); ftell_0100() local
332 pid_t pid = fork(); fwrite_0100() local
355 pid_t pid = fork(); getc_0100() local
377 pid_t pid = fork(); pclose_0100() local
399 pid_t pid = fork(); rewind_0100() local
421 pid_t pid = fork(); setvbuf_0100() local
444 pid_t pid = fork(); wcsnrtombs_0100() local
472 pid_t pid = fork(); unsetenv_0100() local
494 pid_t pid = fork(); readdir_0100() local
516 pid_t pid = fork(); pthread_join_0100() local
540 pid_t pid = fork(); pthread_kill_0100() local
564 pid_t pid = fork(); pthread_setschedparam_0100() local
[all...]
H A Dunistd.c42 int pid = fork(); in unistd_dynamic_chk_001() local
43 switch (pid) { in unistd_dynamic_chk_001()
51 waitpid(pid, &status, WUNTRACED); in unistd_dynamic_chk_001()
55 kill(pid, SIGCONT); in unistd_dynamic_chk_001()
81 int pid = fork(); in unistd_dynamic_chk_002() local
82 switch (pid) { in unistd_dynamic_chk_002()
90 waitpid(pid, &status, WUNTRACED); in unistd_dynamic_chk_002()
94 kill(pid, SIGCONT); in unistd_dynamic_chk_002()
121 int pid = fork(); in unistd_dynamic_chk_003() local
122 switch (pid) { in unistd_dynamic_chk_003()
162 int pid = fork(); unistd_dynamic_chk_004() local
202 int pid = fork(); unistd_dynamic_chk_005() local
241 int pid = fork(); unistd_dynamic_chk_006() local
280 int pid = fork(); unistd_dynamic_chk_007() local
321 int pid = fork(); unistd_dynamic_chk_008() local
361 int pid = fork(); unistd_dynamic_chk_009() local
399 int pid = fork(); unistd_dynamic_chk_010() local
437 int pid = fork(); unistd_dynamic_chk_011() local
477 int pid = fork(); unistd_dynamic_chk_012() local
517 int pid = fork(); unistd_dynamic_chk_013() local
555 int pid = fork(); unistd_dynamic_chk_014() local
592 int pid = fork(); unistd_dynamic_chk_015() local
629 int pid = fork(); unistd_dynamic_chk_016() local
667 int pid = fork(); unistd_dynamic_chk_017() local
[all...]
H A Dstring_ext.c80 int pid = fork(); in test_strcat_0020() local
81 switch (pid) { in test_strcat_0020()
89 waitpid(pid, &status, WUNTRACED); in test_strcat_0020()
93 kill(pid, SIGCONT); in test_strcat_0020()
131 int pid = fork(); in test_strncat_0020() local
132 switch (pid) { in test_strncat_0020()
140 waitpid(pid, &status, WUNTRACED); in test_strncat_0020()
144 kill(pid, SIGCONT); in test_strncat_0020()
179 int pid = fork(); in test_stpcpy_0020() local
180 switch (pid) { in test_stpcpy_0020()
230 int pid = fork(); test_stpncpy_0020() local
280 int pid = fork(); test_strncpy_0020() local
327 int pid = fork(); test_memchr_0020() local
374 int pid = fork(); test_memrchr_0020() local
420 int pid = fork(); test_strchr_0020() local
468 int pid = fork(); test_strrchr_0020() local
517 int pid = fork(); test_strlcat_0020() local
569 int pid = fork(); test_strlcpy_0020() local
617 int pid = fork(); test_mempcpy_0020() local
652 int pid = fork(); test_mempcpy_0030() local
698 int pid = fork(); test_strcpy_0020() local
745 int pid = fork(); test_memmove_0020() local
791 int pid = fork(); test_memcpy_0020() local
838 int pid = fork(); test_memset_0020() local
872 int pid = fork(); test_strlen_0010() local
904 int pid = fork(); test_strlen_0020() local
[all...]
H A Dfcntl_ext.c63 int pid = fork(); in open_0020() local
64 switch (pid) { in open_0020()
72 waitpid(pid, &status, WUNTRACED); in open_0020()
76 kill(pid, SIGCONT); in open_0020()
97 int pid = fork(); in open_0030() local
98 switch (pid) { in open_0030()
106 waitpid(pid, &status, WUNTRACED); in open_0030()
110 kill(pid, SIGCONT); in open_0030()
159 int pid = fork(); in openat_0020() local
160 switch (pid) { in openat_0020()
193 int pid = fork(); openat_0030() local
256 int pid = fork(); open64_0020() local
290 int pid = fork(); open64_0030() local
352 int pid = fork(); openat64_0020() local
386 int pid = fork(); openat64_0030() local
[all...]
H A Dstdio.c115 int pid = fork(); in stdio_dynamic_chk_003() local
116 switch (pid) { in stdio_dynamic_chk_003()
124 waitpid(pid, &status, WUNTRACED); in stdio_dynamic_chk_003()
128 kill(pid, SIGCONT); in stdio_dynamic_chk_003()
154 int pid = fork(); in stdio_dynamic_chk_004() local
155 switch (pid) { in stdio_dynamic_chk_004()
163 waitpid(pid, &status, WUNTRACED); in stdio_dynamic_chk_004()
167 kill(pid, SIGCONT); in stdio_dynamic_chk_004()
242 int pid = fork(); in stdio_dynamic_chk_007() local
243 switch (pid) { in stdio_dynamic_chk_007()
308 int pid = fork(); stdio_dynamic_chk_010() local
345 int pid = fork(); stdio_dynamic_chk_011() local
401 int pid = fork(); stdio_dynamic_chk_012() local
433 int pid = fork(); stdio_dynamic_chk_013() local
[all...]
/third_party/backends/sanei/
H A Dsanei_thread.c118 sanei_thread_set_invalid( SANE_Pid *pid ) in sanei_thread_set_invalid()
123 *pid = (pthread_t) 0; in sanei_thread_set_invalid()
125 pid->p = 0; in sanei_thread_set_invalid()
128 *pid = (pthread_t) -1; in sanei_thread_set_invalid()
135 sanei_thread_is_valid( SANE_Pid pid ) in sanei_thread_is_valid()
141 if (pid == 0) in sanei_thread_is_valid()
143 if (pid.p == 0) in sanei_thread_is_valid()
147 if (pid == (SANE_Pid) -1) in sanei_thread_is_valid()
159 sanei_thread_pid_to_long( SANE_Pid pid ) in sanei_thread_pid_to_long()
165 rc = (long) pid; in sanei_thread_pid_to_long()
218 SANE_Pid pid; sanei_thread_begin() local
234 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument
242 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument
271 SANE_Pid pid; sanei_thread_begin() local
291 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument
302 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument
388 eval_wp_result( SANE_Pid pid, int wpres, int pf ) eval_wp_result() argument
472 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument
484 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuctl_fj/
H A Drun_cpuctl_test_fj.sh132 ps -eo pid,rtprio > /tmp/pids_file1 &
138 while read pid
140 task=`cat $CPUCTL/tasks | grep "\b$pid\b"`
285 pid=$!
287 echo $pid > $CPUCTL/tmp/tasks
289 /bin/kill -s SIGUSR1 $pid
291 /bin/kill -s SIGUSR1 $pid
292 wait $pid
313 pid=$!
315 echo $pid >
[all...]
/third_party/ltp/testcases/kernel/numa/
H A Dnuma01.sh30 local pid=$1
32 echo $(numastat -p $pid | sed '3q;d' | awk -F '[[:space:]][[:space:]]+' \
43 local pid=$1
44 local index=$(echo "$(get_node_index $pid $2)")
46 local numstat=$(numastat -p $pid |awk '/^Total/ {print $'$index'}')
58 local pid=$1
60 local state=$(awk '{print $3}' /proc/$pid/stat)
96 pid=$!
98 TST_RETRY_FUNC "check_for_support_numa $pid" 0
100 mem_curr=$(get_mem_cur $pid
[all...]
/third_party/ltp/include/
H A Dtst_sched.h21 static inline int sys_sched_setparam(pid_t pid, const struct sched_param *param) in sys_sched_setparam() argument
23 return tst_syscall(__NR_sched_setparam, pid, param); in sys_sched_setparam()
26 static inline int sys_sched_getparam(pid_t pid, struct sched_param *param) in sys_sched_getparam() argument
28 return tst_syscall(__NR_sched_getparam, pid, param); in sys_sched_getparam()
31 static inline int sys_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) in sys_sched_setscheduler() argument
33 return tst_syscall(__NR_sched_setscheduler, pid, policy, param); in sys_sched_setscheduler()
36 static inline int sys_sched_getscheduler(pid_t pid) in sys_sched_getscheduler() argument
38 return tst_syscall(__NR_sched_getscheduler, pid); in sys_sched_getscheduler()
41 static inline int libc_sched_setparam(pid_t pid, const struct sched_param *param) in libc_sched_setparam() argument
43 return TST_LIBC_SCHED_SCALL_(sched_setparam, pid, para in libc_sched_setparam()
46 libc_sched_getparam(pid_t pid, struct sched_param *param) libc_sched_getparam() argument
51 libc_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) libc_sched_setscheduler() argument
56 libc_sched_getscheduler(pid_t pid) libc_sched_getscheduler() argument
[all...]
/third_party/cups-filters/filter/foomatic-rip/
H A Dprocess.c37 pid_t pid; member
49 void add_process(const char *name, int pid, int isgroup) in add_process() argument
53 if (procs[i].pid == -1) { in add_process()
55 procs[i].pid = pid; in add_process()
63 int find_process(int pid) in find_process() argument
67 if (procs[i].pid == pid) in find_process()
76 procs[i].pid = -1; in clear_proc_list()
84 if (procs[i].pid in kill_all_processes()
99 pid_t pid; _start_process() local
202 wait_for_process(int pid) wait_for_process() argument
226 int pid = start_system_process(name, command, NULL, NULL); run_system_process() local
[all...]
/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/
H A Dht_affinity.c29 int set_affinity(pid_t pid, unsigned int len, unsigned long *mask_ptr)
30 pid - pid of the process whose affinity is desired to be set.
34 int get_affinity(pid_t pid, unsigned int len, unsigned long *mask_ptr)
35 pid - pid of the process whose affinity is being read.
43 #define sched_setaffinity(pid, cpusetsize, mask) syscall(__NR_sched_setaffinity, pid, cpusetsize, mask)
44 #define sched_getaffinity(pid, cpusetsize, mask) syscall(__NR_sched_getaffinity, pid, cpusetsiz
52 pid_t pid; HT_SetAffinity() local
129 get_porc_affinity(pid_t pid) get_porc_affinity() argument
151 pid_t pid; HT_GetAffinity() local
183 pid_t pid; HT_InheritAffinity() local
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dwait4.c36 pid_t pid = fork(); in wait4_0100() local
37 if (pid > 0) { in wait4_0100()
41 pid_t wait4_for_pind = wait4(pid, &status, options, &ru); in wait4_0100()
42 if (wait4_for_pind != pid) { in wait4_0100()
43 t_error("%s wait4 get pid is %d are not want %d\n", __func__, wait4_for_pind, pid); in wait4_0100()
48 } else if (pid == 0) { in wait4_0100()
63 pid_t pid = fork(); in wait4_0200() local
64 if (pid > 0) { in wait4_0200()
68 pid_t wait4_for_pind = wait4(pid, in wait4_0200()
90 pid_t pid = fork(); wait4_time64_0100() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/waitpid/
H A Dwaitpid09.c8 * waitpid(pid, WNOHANG) should return 0 if there is a running child
10 * waitpid(pid, WNOHANG) should return the pid of the child if
28 static void cleanup_pid(pid_t pid) in cleanup_pid() argument
30 if (pid > 0) { in cleanup_pid()
31 kill(pid, SIGKILL); in cleanup_pid()
32 waitpid(pid, NULL, 0); in cleanup_pid()
38 pid_t pid, ret; in case0() local
41 pid = SAFE_FORK(); in case0()
42 if (pid in case0()
71 pid_t pid, ret; case1() local
[all...]
/third_party/rust/crates/nix/src/sys/ptrace/
H A Dlinux.rs193 pid: Pid, in ptrace_peek()
199 libc::ptrace(request as RequestType, libc::pid_t::from(pid), addr, data) in ptrace_peek()
218 pub fn getregs(pid: Pid) -> Result<user_regs_struct> { in getregs()
219 ptrace_get_data::<user_regs_struct>(Request::PTRACE_GETREGS, pid) in getregs()
233 pub fn setregs(pid: Pid, regs: user_regs_struct) -> Result<()> { in setregs()
237 libc::pid_t::from(pid), in setregs()
249 fn ptrace_get_data<T>(request: Request, pid: Pid) -> Result<T> { in ptrace_get_data()
254 libc::pid_t::from(pid), in ptrace_get_data()
265 pid: Pid, in ptrace_other()
271 libc::pid_t::from(pid), in ptrace_other()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/process/
H A Dwaitpid.c31 pid_t pid = fork(); in waitpid_0100() local
32 if (pid > 0) { in waitpid_0100()
35 pid_t waitpid_for_pind = waitpid(pid, &status, options); in waitpid_0100()
36 if (waitpid_for_pind != pid) { in waitpid_0100()
37 t_error("%s waitpid get pid is %d are not want %d\n", __func__, waitpid_for_pind, pid); in waitpid_0100()
42 } else if (pid == 0) { in waitpid_0100()
57 pid_t pid = fork(); in waitpid_0200() local
58 if (pid > 0) { in waitpid_0200()
61 pid_t waitpid_for_pind = waitpid(pid, in waitpid_0200()
[all...]
/third_party/ltp/tools/genload/
H A Dstress.c90 int i, pid, children = 0, retval = 0; in main() local
203 switch (pid = fork()) { in main()
213 dbg(stdout, "--> hogcpu dispatcher forked (%i)\n", pid); in main()
221 switch (pid = fork()) { in main()
231 dbg(stdout, "--> hogio dispatcher forked (%i)\n", pid); in main()
241 switch (pid = fork()) { in main()
251 dbg(stdout, "--> hogvm dispatcher forked (%i)\n", pid); in main()
260 switch (pid = fork()) { in main()
272 dbg(stdout, "--> hoghdd dispatcher forked (%i)\n", pid); in main()
284 if ((pid in main()
469 int pid, retval = 0; hogcpu() local
545 int pid, retval = 0; hogio() local
620 int pid, retval = 0; hogvm() local
742 int fd, pid, retval = 0; hoghdd() local
[all...]
H A Dgenload.c90 int i, pid, children = 0, retval = 0; in main() local
203 switch (pid = fork()) { in main()
213 dbg(stdout, "--> hogcpu dispatcher forked (%i)\n", pid); in main()
221 switch (pid = fork()) { in main()
231 dbg(stdout, "--> hogio dispatcher forked (%i)\n", pid); in main()
241 switch (pid = fork()) { in main()
251 dbg(stdout, "--> hogvm dispatcher forked (%i)\n", pid); in main()
260 switch (pid = fork()) { in main()
272 dbg(stdout, "--> hoghdd dispatcher forked (%i)\n", pid); in main()
284 if ((pid in main()
469 int pid, retval = 0; hogcpu() local
545 int pid, retval = 0; hogio() local
620 int pid, retval = 0; hogvm() local
742 int fd, pid, retval = 0; hoghdd() local
[all...]
/third_party/mbedtls/programs/ssl/
H A Dssl_fork_server.c74 int ret = 1, len, cnt = 0, pid; in main() local
218 pid = fork(); in main()
220 if (pid < 0) { in main()
221 mbedtls_printf(" failed! fork returned %d\n\n", pid); in main()
225 if (pid != 0) { in main()
241 pid = getpid(); in main()
246 mbedtls_printf("pid %d: Setting up the SSL data.\n", pid); in main()
253 "pid %d: SSL setup failed! mbedtls_ctr_drbg_reseed returned %d\n\n", in main()
254 pid, re in main()
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
H A Dcpuset_load_balance_test.sh87 pid=$!
97 cpuset_set_opt "$g_path" "tasks" "$pid" 2> $CPUSET_TMP/stderr
102 /bin/kill -s SIGKILL $pid
108 /bin/kill -s SIGUSR1 $pid 2> $CPUSET_TMP/stderr
113 /bin/kill -s SIGKILL $pid
125 /bin/kill -s SIGUSR1 $pid 2> $CPUSET_TMP/stderr
130 /bin/kill -s SIGUSR2 $pid
135 /bin/kill -s SIGUSR2 $pid 2> $CPUSET_TMP/stderr
143 wait $pid
168 local pid
[all...]
/third_party/ltp/testcases/kernel/syscalls/madvise/
H A Dmadvise08.c103 static int find_sequence(int pid) in find_sequence() argument
111 snprintf(dumpname, 256, "dump-%d", pid); in find_sequence()
156 pid_t pid; in run_child() local
160 pid = SAFE_FORK(); in run_child()
161 if (pid == 0) { in run_child()
173 SAFE_WAITPID(pid, &status, 0); in run_child()
175 return pid; in run_child()
187 pid_t pid; in run() local
190 pid = run_child(MADV_DONTDUMP); in run()
191 if (pid in run()
[all...]
/third_party/libunwind/libunwind/src/ptrace/
H A D_UPT_access_reg.c44 pid_t pid = ui->pid; in _UPT_access_reg() local
66 if (ptrace (PTRACE_GETREGSET, pid, NT_PRSTATUS, &loc) == -1) in _UPT_access_reg()
70 if (ptrace(PTRACE_SETREGSET, pid, NT_PRSTATUS, &loc) == -1) in _UPT_access_reg()
86 pid_t pid = ui->pid; in _UPT_access_reg() local
106 nat_bits = ptrace (PTRACE_PEEKUSER, pid, PT_NAT_BITS, 0); in _UPT_access_reg()
121 ptrace (PTRACE_POKEUSER, pid, PT_NAT_BITS, nat_bits); in _UPT_access_reg()
146 psr = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IPSR, 0); in _UPT_access_reg()
158 ptrace (PTRACE_POKEUSER, pid, PT_CR_II in _UPT_access_reg()
330 pid_t pid = ui->pid; _UPT_access_reg() local
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dpid.c47 #include "pid.h"
50 * pid could be read, return 0, on failure (pid_t) -1 */
54 uint32_t pid; in read_pid() local
71 if (pa_atou(t, &pid) < 0) { in read_pid()
77 return (pid_t) pid; in read_pid()
136 static int proc_name_ours(pid_t pid, const char *procname) { in proc_name_ours() argument
141 pa_snprintf(bn, sizeof(bn), "/proc/%lu/stat", (unsigned long) pid); in proc_name_ours()
162 expected = pa_sprintf_malloc("%lu (%s)", (unsigned long) pid, procname); in proc_name_ours()
169 expected = pa_sprintf_malloc("%lu (lt-%s)", (unsigned long) pid, procname); in proc_name_ours()
189 pid_t pid; local
268 pid_t pid; global() local
324 pa_pid_file_check_running(pid_t *pid, const char *procname) global() argument
333 pa_pid_file_kill(int sig, pid_t *pid, const char *procname) global() argument
394 pa_pid_file_kill(int sig, pid_t *pid, const char *exe_name) global() argument
[all...]
/third_party/toybox/toys/pending/
H A Dinit.c27 pid_t pid; member
191 if (!(*y)->pid) { in reload_inittab()
241 pid_t pid; in final_run() local
247 if (x->action & ASKFIRST) pid = fork(); in final_run()
248 else pid = vfork(); in final_run()
250 if (pid > 0) { in final_run()
256 return pid; in final_run()
257 } else if (pid < 0) { in final_run()
285 static struct action_list_seed* mark_as_terminated_process(pid_t pid) in mark_as_terminated_process() argument
289 if (pid > in mark_as_terminated_process()
301 waitforpid(pid_t pid) waitforpid() argument
310 pid_t pid; run_action_from_list() local
346 pid_t pid; halt_poweroff_reboot_handler() local
381 pid_t pid; restart_init_handler() local
423 pid_t pid; pause_handler() local
504 pid_t pid = waitpid(-1, NULL, suspected_WNOHANG); init_main() local
[all...]

Completed in 38 milliseconds

12345678910>>...70