Searched refs:pid (Results 301 - 325 of 1170) sorted by relevance

<<11121314151617181920>>

/freebsd-13-stable/contrib/bmake/
H A Dwait.h75 # define waitpid(pid, statusp, flags) wait4(pid, statusp, flags, (char *)0)
78 # define waitpid(pid, statusp, flags) wait3(statusp, flags, (char *)0)
/freebsd-13-stable/contrib/netbsd-tests/include/sys/
H A Dt_types.c89 pid_t pid; local
98 pid = 0;
104 ATF_CHECK((pid - 1) <= 0);
/freebsd-13-stable/crypto/openssh/
H A Dloginrec.h66 pid_t pid; /* PID of login process */ member in struct:logininfo
89 struct logininfo *login_alloc_entry(pid_t pid, const char *username,
94 int login_init_entry(struct logininfo *li, pid_t pid, const char *username,
/freebsd-13-stable/contrib/kyua/utils/process/
H A Dexecutor.cpp129 int pid; member in struct:utils::process::executor::exec_handle::impl
175 pid(pid_),
209 executor::exec_handle::pid(void) const function in class:executor::exec_handle
211 return _pimpl->pid;
587 const int& pid = (*iter).first; local
590 process::terminate_group(pid);
592 if (::waitpid(pid, &status, 0) == -1) {
594 LW(F("Failed to wait for PID %s") % pid);
663 data.pid(),
768 child->pid(),
[all...]
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_setrlimit.c190 pid_t pid; local
197 pid = fork();
198 ATF_REQUIRE(pid >= 0);
200 if (pid == 0) {
263 pid_t pid; local
275 pid = fork();
277 if (buf == NULL || pid < 0)
280 if (pid == 0) {
332 pid_t pid; local
337 pid
381 pid_t pid; local
439 pid_t pid, cpid; local
[all...]
H A Dt_pipe.c50 static pid_t pid; variable
61 kill(pid, SIGINFO);
97 RL(pid = fork());
98 if (pid == 0) {
152 RL(waitpid(pid, &st, 0));
H A Dt_nanosleep.c144 pid_t pid; local
153 pid = fork();
155 ATF_REQUIRE(pid >= 0);
158 if (pid == 0) {
181 (void)kill(pid, SIGINT);
199 pid_t pid; local
205 pid = fork();
207 ATF_REQUIRE(pid >= 0);
211 if (pid == 0) {
249 ATF_REQUIRE(kill(pid, SIGINF
[all...]
/freebsd-13-stable/tools/tools/usbtest/
H A Dusb_control_ep_test.c78 usb_control_ep_error_test(uint16_t vid, uint16_t pid) argument
89 pdev = find_usb_device(vid, pid);
164 usb_get_string_desc_test(uint16_t vid, uint16_t pid) argument
173 pdev = find_usb_device(vid, pid);
193 "VID=0x%04x PID=0x%04x\n", vid, pid);
239 usb_port_reset_test(uint16_t vid, uint16_t pid, uint32_t duration) argument
255 pdev = find_usb_device(vid, pid);
309 usb_set_config_test(uint16_t vid, uint16_t pid, uint32_t duration) argument
318 pdev = find_usb_device(vid, pid);
332 "VID=0x%04x PID=0x%04x\n", vid, pid);
368 usb_get_descriptor_test(uint16_t vid, uint16_t pid, uint32_t duration) argument
381 usb_suspend_resume_test(uint16_t vid, uint16_t pid, uint32_t duration) argument
471 usb_set_and_clear_stall_test(uint16_t vid, uint16_t pid) argument
607 usb_set_alt_interface_test(uint16_t vid, uint16_t pid) argument
[all...]
/freebsd-13-stable/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c414 pid_t pid; local
432 CHECK((pid = fork()) >= 0);
433 if (pid == 0) {
438 CHECK(waitpid(pid, NULL, 0) == pid);
445 CHECK((pid = fork()) >= 0);
446 if (pid == 0) {
453 CHECK(waitpid(pid, NULL, 0) == pid);
459 CHECK((pid
[all...]
/freebsd-13-stable/lib/libutil/tests/
H A Dflopen_test.c156 pid_t pid; local
164 pid = fork();
165 if (pid == -1) {
167 } else if (pid == 0) {
176 kill(pid, SIGINT);
/freebsd-13-stable/contrib/opie/
H A Dpopen.c186 pid_t pid; local
202 while ((pid = wait(&status)) != child_pid && (pid != -1));
209 if ((pid > 0) && WIFEXITED(status))
214 return (pid == -1 ? -1 : status.w_status);
/freebsd-13-stable/tests/sys/capsicum/
H A Dioctls_test.c74 pid_t pid; local
101 pid = fork();
102 if (pid == 0) {
110 ATF_REQUIRE(pid > 0);
119 ATF_REQUIRE(wait(&status) == pid);
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/
H A Dzfs_destroy_common.kshlib100 pid=$(eval echo \$SLEEP_PID_${dirfiltered})
102 log_note "Sleeping while on ${dir} in pid $pid"
109 typeset pid=$(eval echo \$SLEEP_PID_${dirfiltered})
112 [[ -z "$pid" ]] && log_fail "make_dir_unbusy called without busy?"
113 $KILL -15 $pid
/freebsd-13-stable/tests/sys/cddl/zfs/tests/mv_files/
H A Dmv_files_common.kshlib61 for pid in \$PIDS
63 \$WAIT \$pid
112 for pid in $1
114 $PS -e | $GREP $pid >/dev/null 2>&1
115 (( $? == 0 )) && $WAIT $pid
/freebsd-13-stable/tests/sys/mqueue/
H A Dmqtest3.c34 pid_t pid; local
49 pid = fork();
50 if (pid == 0) { /* child */
84 } else if (pid == -1) {
105 kill(pid, SIGKILL);
H A Dmqtest5.c37 pid_t pid; local
59 pid = fork();
60 if (pid == 0) { /* child */
100 } else if (pid == -1) {
115 kill(pid, SIGKILL);
/freebsd-13-stable/tools/regression/p1003_1b/
H A Dfifo.c88 volatile long *p, pid; local
127 pid = getpid();
135 pid = getpid();
137 *p = pid;
142 *p = pid;
/freebsd-13-stable/sys/fs/pseudofs/
H A Dpseudofs_vncache.c84 #define PFS_VNCACHE_HASH(pid) (&pfs_vncache_hashtbl[(pid) & pfs_vncache_hash])
118 struct pfs_node *pn, pid_t pid)
129 hash = PFS_VNCACHE_HASH(pid);
135 if (pvd->pvd_pn == pn && pvd->pvd_pid == pid &&
168 pvd->pvd_pid = pid;
217 if (pvd2->pvd_pn == pn && pvd2->pvd_pid == pid &&
271 * scratch every time. This code only walks the relevant hash chain (if pid
344 int pid; local
346 pid
117 pfs_vncache_alloc(struct mount *mp, struct vnode **vpp, struct pfs_node *pn, pid_t pid) argument
[all...]
/freebsd-13-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_current.c100 ts->pid = td->td_tid;
192 linux_get_pid_task_int(pid_t pid, const bool do_get) argument
198 if (pid > PID_MAX) {
200 td = tdfind(pid, -1);
210 p = pfind(pid);
228 linux_pid_task(pid_t pid) argument
230 return (linux_get_pid_task_int(pid, false));
234 linux_get_pid_task(pid_t pid) argument
236 return (linux_get_pid_task_int(pid, true));
249 td = tdfind(task->pid,
[all...]
/freebsd-13-stable/tools/tools/syscall_timing/
H A Dsyscall_timing.c186 pid_t pid; local
189 pid = fork();
190 if (pid < 0)
192 if (pid == 0)
194 if (waitpid(pid, NULL, 0) < 0)
198 pid = fork();
199 if (pid < 0)
201 if (pid == 0)
203 if (waitpid(pid, NULL, 0) < 0)
217 pid_t pid; local
483 pid_t pid; local
621 pid_t pid; local
863 pid_t pid; local
890 pid_t pid; local
[all...]
/freebsd-13-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dpopen.c105 int argc, gargc, pdes[2], pid; local
163 switch(pid = fork()) {
198 pids[fileno(iop)] = pid;
212 pid_t pid; local
227 while ((pid = waitpid(pids[fdes], &status, 0)) < 0 && errno == EINTR)
231 if (pid < 0)
232 return (pid);
/freebsd-13-stable/lib/libproc/
H A Dproc_util.c88 pid_t pid; local
100 pid = proc_getpid(phdl);
101 if (ptrace(PT_DETACH, pid, 0, 0) != 0 && errno == ESRCH)
104 kill(pid, SIGSTOP);
105 waitpid(pid, &status, WUNTRACED);
106 ptrace(PT_DETACH, pid, 0, 0);
107 kill(pid, SIGCONT);
/freebsd-13-stable/bin/pwait/
H A Dpwait.c55 fprintf(stderr, "usage: pwait [-t timeout] [-ov] pid ...\n");
69 long pid; local
144 pid = strtol(s, &end, 10);
145 if (pid < 0 || *end != '\0' || errno != 0) {
149 if (pid == getpid()) {
150 warnx("%s: skipping my own pid", s);
154 if (e[i].ident == (uintptr_t)pid) {
162 EV_SET(e + nleft, pid, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, NULL);
164 warn("%ld", pid);
/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/
H A Dzed.c127 pid_t pid; local
134 pid = fork();
135 if (pid < 0) {
138 } else if (pid > 0) {
169 pid = fork();
170 if (pid < 0) {
173 } else if (pid > 0) {
/freebsd-13-stable/contrib/netbsd-tests/bin/ps/
H A Dt_ps.sh94 default_keywords='pid tty stat time command'
95 j_keywords='user pid ppid pgid sess jobc state tt time command'
96 l_keywords='uid pid ppid cpu pri nice vsz rss wchan state tt time command'
97 s_keywords='uid pid ppid cpu lid nlwp pri nice vsz rss wchan lstate tt ltime command'
98 u_keywords='user pid %cpu %mem vsz rss tt state start time command'
99 v_keywords='pid state time sl re pagein vsz rss lim tsiz %cpu %mem command'
102 # Convert a list of keywords like "pid comm" to a regexp
203 "the pid column"
209 "$(echo "${default_keywords}" | sed -e 's/pid/pid
[all...]

Completed in 388 milliseconds

<<11121314151617181920>>