/dragonfly/test/stress/stress2/testcases/symlink/ |
H A D | symlink.c | 109 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 D | rc.suspend | 40 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 D | rc.resume | 40 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 D | creat.c | 115 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 D | browser-android.c | 70 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 D | browser-wpadebug.c | 71 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 D | ucom.sh | 55 pid=$! 71 [ ! -z "$pid" ] && kill $pid
|
H A D | symlink.sh | 103 pid_t pid; 109 pid = getpid(); 111 sprintf(file,"p%05d.%05d", pid, j); 123 sprintf(file,"p%05d.%05d", pid, i);
|
H A D | mlockall.sh | 46 ps | grep /tmp/mlockall | grep -v grep | awk '{print $1}' | while read pid; do 47 kill -2 $pid 48 kill -9 $pid
|
H A D | kinfo2.sh | 110 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 D | trgt.c | 147 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 D | wait_locked.c | 7 pid_t pid; in main() local 11 pid = fork(); in main() 12 switch (pid) { in main()
|
/dragonfly/libexec/atrun/ |
H A D | atrun.c | 118 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 D | timedwait_locked.c | 7 pid_t pid; in main() local 15 pid = fork(); in main() 16 switch (pid) { in main()
|
/dragonfly/contrib/gdb-7/gdb/common/ |
H A D | ptid.h | 44 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 D | x86_64-fbsd.c | 119 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 D | subr.c | 281 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 D | fbsd-nat.c | 40 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 D | archive_random.c | 198 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 D | wwchild.c | 47 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 D | link.c | 111 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 D | accept_server.c | 103 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 D | umtx.c | 45 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 D | apply.c | 229 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 D | m_dragonfly.c | 477 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 …]
|