Home
last modified time | relevance | path

Searched refs:pid (Results 126 – 150 of 575) sorted by relevance

12345678910>>...23

/dragonfly/test/stress/stress2/testcases/symlink/
H A Dsymlink.c109 pid_t pid; in test() local
112 pid = getpid(); in test()
114 sprintf(file,"p%05d.%05d", pid, j); in test()
128 sprintf(file,"p%05d.%05d", pid, i); in test()
/dragonfly/etc/
H A Drc.suspend40 if [ -r /var/run/rc.suspend.pid ]; then
44 echo $$ 2> /dev/null > /var/run/rc.suspend.pid
58 rm -f /var/run/rc.suspend.pid
H A Drc.resume40 if [ -r /var/run/rc.suspend.pid ]; then
41 kill -9 `cat /var/run/rc.suspend.pid`
42 rm -f /var/run/rc.suspend.pid
/dragonfly/test/stress/stress2/testcases/creat/
H A Dcreat.c115 pid_t pid; in test() local
118 pid = getpid(); in test()
120 sprintf(file,"p%05d.%05d", pid, j); in test()
133 sprintf(file,"p%05d.%05d", pid, i); in test()
/dragonfly/contrib/wpa_supplicant/src/utils/
H A Dbrowser-android.c70 pid_t pid; in hs20_web_browser() local
88 pid = fork(); in hs20_web_browser()
89 if (pid < 0) { in hs20_web_browser()
96 if (pid == 0) { in hs20_web_browser()
H A Dbrowser-wpadebug.c71 pid_t pid; in hs20_web_browser() local
89 pid = fork(); in hs20_web_browser()
90 if (pid < 0) { in hs20_web_browser()
97 if (pid == 0) { in hs20_web_browser()
/dragonfly/test/stress/stress2/misc/
H A Ducom.sh55 pid=$!
71 [ ! -z "$pid" ] && kill $pid
H A Dsymlink.sh103 pid_t pid;
109 pid = getpid();
111 sprintf(file,"p%05d.%05d", pid, j);
123 sprintf(file,"p%05d.%05d", pid, i);
H A Dmlockall.sh46 ps | grep /tmp/mlockall | grep -v grep | awk '{print $1}' | while read pid; do
47 kill -2 $pid
48 kill -9 $pid
H A Dkinfo2.sh110 pid_t pid;
137 pid = l;
140 freep = kinfo_getfile(pid, &cnt);
143 freep_vm = kinfo_getvmmap(pid, &cnt);
/dragonfly/gnu/usr.bin/gdb/kgdb/
H A Dtrgt.c147 if (!in_inferior_list(kt->pid)) { in kgdb_trgt_open()
151 inf8->pid = kt->pid; in kgdb_trgt_open()
153 inferior_appeared (inf8, kt->pid); in kgdb_trgt_open()
158 inf8 = add_inferior(kt->pid); in kgdb_trgt_open()
169 add_thread(ptid_build(kt->pid, kt->lwpid, kt->tid)); in kgdb_trgt_open()
173 inferior_ptid = ptid_build(curkthr->pid, curkthr->lwpid, in kgdb_trgt_open()
/dragonfly/test/testcases/posixipc/wait_locked/
H A Dwait_locked.c7 pid_t pid; in main() local
11 pid = fork(); in main()
12 switch (pid) { in main()
/dragonfly/libexec/atrun/
H A Datrun.c118 pid_t pid; in run_file() local
149 pid = fork(); in run_file() local
150 if (pid == -1) in run_file()
153 else if (pid != 0) in run_file()
262 pid = fork(); in run_file()
263 if (pid < 0) in run_file()
266 else if (pid == 0) in run_file()
336 waitpid(pid, NULL, 0); in run_file()
/dragonfly/test/testcases/posixipc/timedwait_locked/
H A Dtimedwait_locked.c7 pid_t pid; in main() local
15 pid = fork(); in main()
16 switch (pid) { in main()
/dragonfly/contrib/gdb-7/gdb/common/
H A Dptid.h44 int pid; member
65 ptid_t ptid_build (int pid, long lwp, long tid);
68 ptid_t pid_to_ptid (int pid);
/dragonfly/usr.bin/truss/
H A Dx86_64-fbsd.c119 if (fd == -1 || trussinfo->pid != cpid) { in x86_64_syscall_entry()
120 asprintf(&buf, "%s/%d/regs", procfs_path, trussinfo->pid); in x86_64_syscall_entry()
129 cpid = trussinfo->pid; in x86_64_syscall_entry()
261 if (fd == -1 || trussinfo->pid != cpid) { in x86_64_syscall_exit()
262 asprintf(&buf, "%s/%d/regs", procfs_path, trussinfo->pid); in x86_64_syscall_exit()
271 cpid = trussinfo->pid; in x86_64_syscall_exit()
/dragonfly/contrib/smbfs/lib/smb/
H A Dsubr.c281 int pid; in safe_execv() local
284 pid = fork(); in safe_execv()
285 if (pid == 0) { in safe_execv()
290 if (pid == -1) { in safe_execv()
295 if (wait4(pid, (int *)&status, 0, NULL) != pid) { in safe_execv()
/dragonfly/contrib/gdb-7/gdb/
H A Dfbsd-nat.c40 fbsd_pid_to_exec_file (int pid) in fbsd_pid_to_exec_file() argument
52 mib[3] = pid; in fbsd_pid_to_exec_file()
57 path = xstrprintf ("/proc/%d/file", pid); in fbsd_pid_to_exec_file()
96 pid_t pid = ptid_get_pid (inferior_ptid); in fbsd_find_memory_regions() local
104 mapfilename = xstrprintf ("/proc/%ld/map", (long) pid); in fbsd_find_memory_regions()
/dragonfly/contrib/libarchive/libarchive/
H A Darchive_random.c198 pid_t pid; in arc4_stir() member
215 rdat.pid = getpid(); in arc4_stir()
236 pid_t pid = getpid(); in arc4_stir_if_needed() local
238 if (arc4_count <= 0 || !rs_initialized || arc4_stir_pid != pid) { in arc4_stir_if_needed()
239 arc4_stir_pid = pid; in arc4_stir_if_needed()
/dragonfly/usr.bin/window/
H A Dwwchild.c47 int pid; in wwchild() local
51 while ((pid = in wwchild()
55 && (*wp)->ww_pid == pid) { in wwchild()
/dragonfly/test/stress/stress2/testcases/link/
H A Dlink.c111 pid_t pid; in test() local
115 pid = getpid(); in test()
117 sprintf(file,"p%05d.%05d", pid, j); in test()
140 sprintf(file,"p%05d.%05d", pid, i); in test()
/dragonfly/tools/tools/netrate/accept_connect/accept_server/
H A Daccept_server.c103 pid_t pid; in main() local
105 pid = fork(); in main()
106 if (pid == 0) { in main()
109 } else if (pid < 0) { in main()
/dragonfly/test/debug/
H A Dumtx.c45 pid_t pid; in main() local
105 if ((pid = fork()) == 0) { in main()
108 } else if (pid > 0) { in main()
109 while (waitpid(pid, NULL, 0) != pid) in main()
/dragonfly/usr.bin/apply/
H A Dapply.c229 pid_t pid; in exec_shell() local
237 switch(pid = vfork()) { in exec_shell()
248 pid = waitpid(pid, &pstat, 0); in exec_shell()
252 return(pid == -1 ? -1 : pstat); in exec_shell()
/dragonfly/usr.bin/top/
H A Dm_dragonfly.c477 if (LP(fixit, pid) == -1) { in fixup_pctcpu()
482 if (LP(pp, pid) == -1 && in fixup_pctcpu()
488 if (LP(pp, pid) == LP(fixit, pid) && in fixup_pctcpu()
575 if ((show_system && (LP(pp, pid) == -1)) || in get_process_info()
632 if (!show_system && LP(pp, pid) == -1) { in get_process_info()
814 (int)PP(pp, pid), in format_next_process()
882 if ((result = (LP(p1, pid) == 0) - (LP(p2, pid) == 0)) == 0)
894 if ( (result = PP(p1, pid) - PP(p2, pid)) == 0)
904 if (LP(p1, pid) == -1 && PP(p1, stat) == SIDL) in orderkey_kernidle()
1160 proc_owner(int pid) in proc_owner() argument
[all …]

12345678910>>...23