Searched refs:pid (Results 526 - 550 of 1170) sorted by relevance

<<21222324252627282930>>

/freebsd-13-stable/usr.bin/diff/
H A Dpr.c51 pid_t pid; local
63 switch ((pid = pdfork(&pr_pd, PD_CLOEXEC))) {
/freebsd-13-stable/tests/sys/cddl/zfs/tests/hotspare/
H A Dhotspare_onoffline_004_neg.ksh92 typeset pid=$!
94 child_pids="$child_pids $pid"
/freebsd-13-stable/tests/sys/cddl/zfs/tests/slog/
H A Dslog.kshlib60 typeset pid=$!
65 kill -9 $pid
/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/freebsd/
H A DHost.cpp53 int pid = process_info.GetProcessID(); local
55 int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_ARGS, pid};
71 // Get pathname for pid. If that fails fall back to argv[0].
119 const int pid = process_info.GetProcessID(); local
120 int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, pid};
186 kinfo.ki_pid == 0 || // Skip kernel (kernel pid is 0)
193 // process have the same pid. Do not store the process info in the result
226 bool Host::GetProcessInfo(lldb::pid_t pid, ProcessInstanceInfo &process_info) { argument
227 process_info.SetProcessID(pid);
/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/netbsd/
H A DHostNetBSD.cpp55 int pid = process_info.GetProcessID(); local
57 int mib[4] = {CTL_KERN, KERN_PROC_ARGS, pid, KERN_PROC_ARGV};
139 const int pid = process_info.GetProcessID(); local
148 if ((proc_kinfo = ::kvm_getproc2(kdp, KERN_PROC_PID, pid,
211 proc_kinfo[i].p_pid == 0 || // Skip kernel (kernel pid is 0)
218 // process have the same pid. Do not store the process info in the result
253 bool Host::GetProcessInfo(lldb::pid_t pid, ProcessInstanceInfo &process_info) { argument
254 process_info.SetProcessID(pid);
/freebsd-13-stable/contrib/smbfs/lib/smb/
H A Dsubr.c283 int pid; local
286 pid = fork();
287 if (pid == 0) {
292 if (pid == -1) {
297 if (wait4(pid, (int *)&status, 0, NULL) != pid) {
/freebsd-13-stable/sys/contrib/octeon-sdk/
H A Dcvmx-app-init-linux.c178 int pid; local
182 pid = getpid();
183 sprintf (shm_name, "%s%s-%d", defaultdir, SHM_NAME, pid);
388 int pid = fork(); local
389 if (pid == 0)
393 else if (pid == -1)
/freebsd-13-stable/crypto/heimdal/lib/roken/
H A Drkpty.c205 eval_parent(pid_t pid) argument
289 ret = waitpid(pid, &status, 0);
324 pid_t pid; local
351 pid = fork();
352 switch (pid) {
379 return eval_parent(pid);
/freebsd-13-stable/usr.sbin/rpc.ypupdated/
H A Dupdate.c99 pid_t pid; local
108 pid = _openchild(updater, &childargs, &childrslt);
109 if (pid < 0) {
143 * returns pid, or -1 for failure
149 pid_t pid; local
161 switch (pid = fork()) {
195 return (pid);
/freebsd-13-stable/usr.bin/newkey/
H A Dupdate.c94 pid_t pid; local
103 pid = _openchild(updater, &childargs, &childrslt);
104 if (pid < 0) {
139 * returns pid, or -1 for failure
145 pid_t pid; local
157 switch (pid = fork()) {
191 return (pid);
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix_libcdep.cpp443 int pid = internal_fork(); local
445 if (pid < 0) {
447 if (internal_iserror(pid, &rverrno)) {
450 return pid;
453 if (pid == 0) {
478 return pid;
481 bool IsProcessRunning(pid_t pid) { argument
483 uptr waitpid_status = internal_waitpid(pid, &process_status, WNOHANG);
492 int WaitForProcess(pid_t pid) { argument
494 uptr waitpid_status = internal_waitpid(pid,
[all...]
/freebsd-13-stable/contrib/dialog/
H A Dui_getc.c599 int pid; local
621 if ((pid = fork()) != 0) {
622 _exit(pid > 0 ? DLG_EXIT_OK : DLG_EXIT_ERROR);
623 } else if (pid == 0) { /* child */
624 if ((pid = fork()) != 0) {
631 if (pid > 0) { /* parent */
632 fprintf(stderr, "%d\n", pid);
637 while (-1 == waitpid(pid, &wstatus, 0)) {
649 while (wait(&wstatus) != pid) /* do nothing */
653 } else if (pid
[all...]
/freebsd-13-stable/contrib/ofed/opensm/opensm/
H A Dosm_log.c121 uint32_t pid = GetCurrentThreadId(); local
123 pid_t pid; local
183 pid, verbosity, buffer);
189 pid = pthread_getthreadid_np();
197 result.tm_sec, usecs, pid, verbosity, buffer);
232 uint32_t pid = GetCurrentThreadId(); local
235 pid_t pid = 0; local
297 pid, verbosity, buffer);
305 pid = pthread_getthreadid_np();
313 result.tm_sec, usecs, pid, verbosit
[all...]
/freebsd-13-stable/contrib/tcsh/
H A Dsh.proc.c147 pid_t pid; local
183 pid = cvxwait(&w,
189 pid = wait4(-1, &w,
192 pid = wait3(&w,
196 pid = wait3(&w.w_status,
203 pid = waitpid(-1, &w,
210 pid = wait3(&w.w_status,
213 pid = waitpid(-1, &w,
223 pid = wait3(&w.w_status, WNOHANG, 0);
226 pid
757 palloc(pid_t pid, struct command *t) argument
1495 pid_t pid; local
1775 pid_t pid; local
[all...]
/freebsd-13-stable/crypto/openssl/crypto/ocsp/
H A Docsp_cl.c211 const ASN1_OCTET_STRING **pid,
218 *pid = NULL;
220 *pid = rid->value.byKey;
229 ASN1_OCTET_STRING **pid,
236 *pid = NULL;
238 *pid = ASN1_OCTET_STRING_dup(rid->value.byKey);
243 if (*pname == NULL && *pid == NULL)
210 OCSP_resp_get0_id(const OCSP_BASICRESP *bs, const ASN1_OCTET_STRING **pid, const X509_NAME **pname) argument
228 OCSP_resp_get1_id(const OCSP_BASICRESP *bs, ASN1_OCTET_STRING **pid, X509_NAME **pname) argument
/freebsd-13-stable/sbin/decryptcore/
H A Ddecryptcore.c64 wait_for_process(pid_t pid) argument
68 if (waitpid(pid, &status, WUNTRACED | WEXITED) == -1) {
131 pid_t pid; local
145 pid = fork();
146 if (pid == -1) {
152 if (pid > 0) {
154 return (wait_for_process(pid) == 0);
/freebsd-13-stable/sys/kern/
H A Dkern_fork.c106 int error, pid; local
110 fr.fr_pidp = &pid;
113 td->td_retval[0] = pid;
124 int error, fd, pid; local
128 fr.fr_pidp = &pid;
139 td->td_retval[0] = pid;
151 int error, pid; local
155 fr.fr_pidp = &pid;
158 td->td_retval[0] = pid;
168 int error, pid; local
212 int error, pid; local
[all...]
/freebsd-13-stable/lib/libc/tests/sys/
H A Dcpuset_test.c86 return ("Failed to get the pid setid");
285 pid_t pid; local
308 ATF_REQUIRE((pid = fork()) != -1);
310 if (pid == 0) {
321 while ((error = waitpid(pid, &status, 0)) == -1 &&
329 ATF_REQUIRE_EQ(pid, error);
556 pid_t pid; local
560 ATF_REQUIRE((pid = fork()) != -1);
561 if (pid == 0)
564 while ((error = waitpid(pid,
592 pid_t pid; local
[all...]
/freebsd-13-stable/contrib/atf/atf-c/
H A Dutils_test.c234 pid_t pid = atf_utils_fork(); local
235 if (pid == 0) {
242 ATF_REQUIRE(waitpid(pid, &status, 0) != -1);
247 RE(atf_dynstr_init_fmt(&out_name, "atf_utils_fork_%d_out.txt", (int)pid));
249 RE(atf_dynstr_init_fmt(&err_name, "atf_utils_fork_%d_err.txt", (int)pid));
391 const pid_t pid = atf_utils_fork(); local
392 ATF_REQUIRE(pid != -1);
393 if (pid == 0) {
399 atf_utils_wait(pid, exitstatus, expout, experr);
/freebsd-13-stable/crypto/openssh/regress/
H A Dtest-exec.sh300 pid=`$SUDO cat $PIDFILE`
301 if [ "X$pid" = "X" ]; then
304 if [ $pid -lt 2 ]; then
305 echo bad pid for sshd: $pid
307 $SUDO kill $pid
315 if $SUDO kill -0 $pid; then
317 "port $PORT pid $pid"
339 echo bad pid fo
[all...]
/freebsd-13-stable/usr.sbin/cron/cron/
H A Ddo_command.c52 pid_t pid; local
61 switch ((pid = fork())) {
77 "returning to work\n", getpid(), pid))
80 e->child = pid;
661 PID_T pid; local
667 while ((pid = waitpid(childpid, &waiter, 0)) < 0 && errno == EINTR)
669 while ((pid = wait4(childpid, &waiter, 0, NULL)) < 0 && errno == EINTR)
673 if (pid < OK)
677 getpid(), name, pid, WEXITSTATUS(waiter)))
/freebsd-13-stable/tools/tools/netrate/juggle/
H A Djuggle.c379 pid_t pid, ppid, wpid; local
384 pid = fork();
385 if (pid < 0)
388 if (pid == 0) {
410 kill(pid, SIGTERM);
422 kill(pid, SIGTERM);
431 kill(pid, SIGTERM);
442 wpid = waitpid(pid, NULL, 0);
445 if (wpid != pid)
446 errx(-1, "process_juggle: waitpid: pid !
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/
H A DProcessMonitor.h55 ProcessMonitor(ProcessFreeBSD *process, lldb::pid_t pid,
243 AttachArgs(ProcessMonitor *monitor, lldb::pid_t pid);
247 lldb::pid_t m_pid; // pid of the process to be attached.
261 static bool MonitorCallback(ProcessMonitor *monitor, lldb::pid_t pid,
265 const siginfo_t *info, lldb::pid_t pid);
268 const siginfo_t *info, lldb::pid_t pid);
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_pid.c132 pid_t pid; local
135 pid = Pstatus(pp->dpp_pr)->pr_pid;
137 pid = proc_getpid(pp->dpp_pr);
140 dt_dprintf("creating probe pid%d:%s:%s:%s\n", (int)pid, pp->dpp_obj,
151 ftp->ftps_pid = pid;
656 "failed to instantiate probes for pid %d: %s",
676 pid_t pid; local
691 pid = strtol(last, &end, 10);
693 if (errno != 0 || end == last || end[0] != '\0' || pid <
708 pid_t pid; local
793 pid_t pid; local
[all...]
/freebsd-13-stable/contrib/netbsd-tests/fs/psshfs/
H A Dt_psshfs.sh84 while [ ! -f sshd.pid ]; do
87 echo "SSH server started (pid $(cat sshd.pid))"
107 if [ -f sshd.pid ]; then
108 echo "Stopping SSH server (pid $(cat sshd.pid))"
109 kill $(cat sshd.pid)
255 atf_check -s exit:0 kill -STOP $(cat sshd.pid)
261 kill -CONT $(cat sshd.pid)

Completed in 167 milliseconds

<<21222324252627282930>>