Searched refs:pid (Results 351 - 375 of 1170) sorted by relevance

<<11121314151617181920>>

/freebsd-13-stable/lib/libpmcstat/
H A Dlibpmcstat_process.c211 * is zero, we return a NULL if a pid descriptor could not be found or
219 pmcstat_process_lookup(pid_t pid, int allocate) argument
225 hash = (uint32_t) pid & PMCSTAT_HASH_MASK; /* simplicity wins */
228 if (pp->pp_pid == pid) {
250 err(EX_OSERR, "ERROR: Cannot allocate pid descriptor");
252 pp->pp_pid = pid;
266 pid_t pid; local
273 switch (pid = fork()) {
303 EV_SET(&kev, pid, EVFILT_PROC, EV_ADD | EV_ONESHOT, NOTE_EXIT, 0,
306 err(EX_OSERR, "ERROR: cannot monitor child process %d", pid);
[all...]
/freebsd-13-stable/contrib/kyua/engine/
H A Dplain_helpers.cpp141 pid_t pid = ::fork(); local
142 if (pid == -1)
144 else if (pid == 0) {
149 "pid";
153 pidfile << pid; local
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/safestack/
H A Dsafestack_platform.h81 inline int TgKill(pid_t pid, ThreadId tid, int sig) { argument
84 (void)pid;
87 return syscall(SYS_thr_kill2, pid, tid, sig);
89 return syscall(SYS_tgkill, pid, tid, sig);
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_flags.cpp36 // %p = pid
54 int pid = internal_getpid(); local
58 *--buf_pos = (pid % 10) + '0';
59 pid /= 10;
60 } while (pid);
/freebsd-13-stable/bin/kill/
H A Dkill.c72 pid_t pid; local
146 pid = (pid_t)pidl;
147 if (!**argv || *ep || pid != pidl)
149 ret = kill(pid, numsig);
206 "usage: kill [-s signal_name] pid ...",
208 " kill -signal_name pid ...",
209 " kill -signal_number pid ...");
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printa/
H A Dtst.largeusersym.ksh63 /pid == \$target/
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/
H A Dtst.openret.ksh32 /pid == \$target/
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c50 pid_t pid; local
52 if ((pid = fork()) < 0) {
54 } else if (pid != 0) {
55 (void) fprintf(stdout, "%ld\n", (long)pid);
/freebsd-13-stable/contrib/netbsd-tests/fs/fifofs/
H A Dt_fifo.c94 pid_t pid; local
115 switch ((pid = fork())) {
134 printf("Child pid is %d\n", pid );
197 while (waitpid(pid, &status, 0) == -1)
/freebsd-13-stable/contrib/netbsd-tests/kernel/kqueue/read/
H A Dt_file.c89 pid_t pid; local
92 RL(pid = fork());
93 if (pid == 0) {
133 (void)waitpid(pid, &status, 0);
/freebsd-13-stable/contrib/netbsd-tests/kernel/kqueue/
H A Dt_sig.c70 pid_t pid, child; local
73 pid = getpid();
74 (void)printf("my pid: %d\n", pid);
82 (void)kill(pid, SIGUSR1);
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/gen/
H A Dt_closefrom.c140 pid_t pid; local
143 pid = fork();
144 ATF_REQUIRE(pid >= 0);
146 if (pid == 0) {
H A Dt_nice.c101 pid_t pid; local
122 pid = fork();
123 ATF_REQUIRE(pid >= 0);
125 if (pid == 0) {
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getgroups.c105 pid_t pid; local
116 pid = fork();
117 ATF_REQUIRE(pid >= 0);
119 if (pid == 0) {
H A Dt_kill.c54 pid_t pid; local
60 pid = fork();
61 ATF_REQUIRE(pid >= 0);
63 switch (pid) {
70 ATF_REQUIRE(kill(pid, sig[i]) == 0);
89 pid_t pid; local
91 pid = fork();
92 ATF_REQUIRE(pid >= 0);
94 if (pid == 0) {
H A Dt_mkdir.c114 pid_t pid; local
125 pid = fork();
126 ATF_REQUIRE(pid >= 0);
128 if (pid == 0) {
H A Dt_umask.c68 pid_t pid; local
76 pid = fork();
78 if (pid < 0)
81 if (pid == 0) {
/freebsd-13-stable/crypto/openssh/contrib/hpux/
H A Dsshd.rc27 WHAT_PID=/var/run/sshd.pid
/freebsd-13-stable/usr.sbin/rpc.lockd/
H A Dlockd_lock.h11 int lock_answer(int pid, netobj *netcookie, int result, int *pid_p,
/freebsd-13-stable/tools/test/upsdl/
H A Dupsdl.c143 pid_t pid; local
155 pid = fork();
157 if (pid == 0)
163 if (pid == -1)
/freebsd-13-stable/tools/tools/net80211/scripts/
H A Dsetup.updown.wpa50 pid=$!
54 kill $pid
/freebsd-13-stable/sys/nfs/
H A Dnfs_lock.h53 * detect the unlikely, but possible, event of the recycling of a pid.
56 pid_t pid; /* The process ID. */ member in struct:lockd_msg_ident
86 int la_set_getlk_pid; /* use returned pid */
87 int la_getlk_pid; /* returned pid for F_GETLK */
/freebsd-13-stable/usr.bin/talk/
H A Dget_addrs.c54 msg.pid = htonl(getpid());
/freebsd-13-stable/tests/sys/mqueue/
H A Dmqtest4.c35 pid_t pid; local
49 pid = fork();
50 if (pid == 0) { /* child */
84 } else if (pid == -1) {
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/
H A DProcessMonitor.cpp59 extern long PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data, argument
68 reqName, pid, addr, data, file, line);
80 result = ptrace(req, pid, (caddr_t)addr, data);
128 extern long PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data) { argument
131 result = ptrace(req, pid, (caddr_t)addr, data);
135 #define PTRACE(req, pid, addr, data) \
136 PtraceWrapper((req), (pid), (addr), (data), #req, __FILE__, __LINE__)
142 static size_t DoReadMemory(lldb::pid_t pid, lldb::addr_t vm_addr, void *buf, argument
151 if (PTRACE(PT_IO, pid, (caddr_t)&pi_desc, 0) < 0) {
158 static size_t DoWriteMemory(lldb::pid_t pid, lld argument
229 lldb::pid_t pid = monitor->GetPID(); local
254 lldb::pid_t pid = monitor->GetPID(); local
503 lldb::pid_t pid = monitor->GetPID(); local
533 lldb::pid_t pid = monitor->GetPID(); local
634 lldb::pid_t pid = monitor->GetPID(); local
655 lldb::pid_t pid = monitor->GetPID(); local
682 AttachArgs(ProcessMonitor *monitor, lldb::pid_t pid) argument
745 ProcessMonitor(ProcessFreeBSD *process, lldb::pid_t pid, lldb_private::Status &error) argument
826 ::pid_t pid; local
982 lldb::pid_t pid = args->m_pid; local
1030 MonitorCallback(ProcessMonitor *monitor, lldb::pid_t pid, bool exited, int signal, int status) argument
[all...]

Completed in 272 milliseconds

<<11121314151617181920>>