Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 1808) sorted by relevance

12345678910>>...73

/netbsd-src/sys/arch/hpc/hpc/
H A Dplatid_test.c43 platid_t pid; in platid_bit_test() local
47 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
48 pid.s.cpu_arch = ~0; in platid_bit_test()
49 if (pid.dw.dw0 != PLATID_CPU_ARCH_MASK && err_count++ || verbose) { in platid_bit_test()
50 platid_hton(&pid); in platid_bit_test()
51 platid_dump("cpu_arch", &pid); in platid_bit_test()
55 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
56 pid.s.cpu_series = ~0; in platid_bit_test()
57 if (pid.dw.dw0 != PLATID_CPU_SERIES_MASK && err_count++ || verbose) { in platid_bit_test()
58 platid_hton(&pid); in platid_bit_test()
[all …]
H A Dplatid.c53 platid_ntoh(platid_t *pid) in platid_ntoh() argument
56 pid->dw.dw0 = ntohl(pid->dw.dw0); in platid_ntoh()
57 pid->dw.dw1 = ntohl(pid->dw.dw1); in platid_ntoh()
61 platid_hton(platid_t *pid) in platid_hton() argument
64 pid->dw.dw0 = htonl(pid->dw.dw0); in platid_hton()
65 pid->dw.dw1 = htonl(pid->dw.dw1); in platid_hton()
85 platid_match(platid_t *pid, platid_mask_t *mask) in platid_match() argument
88 return (platid_match_sub(pid, mask, 0)); in platid_match()
92 platid_match_sub(platid_t *pid, platid_mask_t *mask, int unknown_is_match) in platid_match_sub() argument
97 if (pid->s.mbr != mask->s.mbr && \ in platid_match_sub()
[all …]
/netbsd-src/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'
209 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
211 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
213 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
227 check_heading_keywords '-o pid,%cpu,%mem' \
[all …]
/netbsd-src/tests/lib/libc/sys/
H A Dt_wait.c76 pid_t pid; in ATF_TC_BODY() local
78 switch (pid = fork()) { in ATF_TC_BODY()
83 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
86 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
89 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
110 pid_t pid; in ATF_TC_BODY() local
112 switch (pid = fork()) { in ATF_TC_BODY()
117 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
120 ATF_REQUIRE(kill(pid, SIGTERM) == 0); in ATF_TC_BODY()
121 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
[all …]
/netbsd-src/external/bsd/kyua-testers/dist/
H A Dcli_test.c162 const pid_t pid = atf_utils_fork(); in ATF_TC_BODY() local
163 if (pid == 0) { in ATF_TC_BODY()
169 atf_utils_wait(pid, EXIT_USAGE_ERROR, "", "cli_test: Unknown option -Z\n"); in ATF_TC_BODY()
176 const pid_t pid = atf_utils_fork(); in ATF_TC_BODY() local
177 if (pid == 0) { in ATF_TC_BODY()
183 atf_utils_wait(pid, EXIT_USAGE_ERROR, "", "cli_test: -t requires an " in ATF_TC_BODY()
191 const pid_t pid = atf_utils_fork(); in ATF_TC_BODY() local
192 if (pid == 0) { in ATF_TC_BODY()
198 atf_utils_wait(pid, EXIT_USAGE_ERROR, "", "cli_test: Unknown command " in ATF_TC_BODY()
206 const pid_t pid = atf_utils_fork(); in ATF_TC_BODY() local
[all …]
/netbsd-src/external/bsd/libproc/dist/
H A Dproc_create.c48 proc_init(pid_t pid, int flags, int status, struct proc_handle *phdl) in proc_init() argument
55 phdl->pid = pid; in proc_init()
61 mib[2] = pid; in proc_init()
66 DPRINTF("ERROR: cannot get pathname for child process %d", pid); in proc_init()
77 mib[3] = pid; in proc_init()
82 DPRINTF("ERROR: cannot get kinfo_proc2 for pid %d", pid); in proc_init()
94 proc_attach(pid_t pid, int flags, struct proc_handle **pphdl) in proc_attach() argument
100 if (pid == 0 || pid == getpid()) in proc_attach()
112 error = proc_init(pid, flags, PS_RUN, phdl); in proc_attach()
116 if (ptrace(PT_ATTACH, phdl->pid, 0, 0) != 0) { in proc_attach()
[all …]
/netbsd-src/lib/libc/gen/
H A Dpopen.c66 static struct pid { struct
67 struct pid *next; argument
72 pid_t pid; argument
92 static struct pid *
95 struct pid *cur; in pdes_get()
122 struct pid *old; in pdes_child()
152 pdes_parent(int *pdes, struct pid *cur, pid_t pid, const char *type) in pdes_parent() argument
173 cur->pid = pid; in pdes_parent()
179 pdes_error(int *pdes, struct pid *cur) in pdes_error()
189 struct pid *cur; in popen()
[all …]
/netbsd-src/usr.sbin/autofs/
H A Dpopen.c64 struct pid { struct
65 SLIST_ENTRY(pid) next;
67 pid_t pid; member
70 static SLIST_HEAD(, pid) pidlist = SLIST_HEAD_INITIALIZER(pidlist); argument
83 struct pid *cur, *p; in auto_popen()
84 pid_t pid; in auto_popen() local
96 cur = malloc(sizeof(struct pid)); in auto_popen()
118 switch (pid = fork()) { in auto_popen()
137 log_debugx("executing \"%s\" as pid %d", command, pid); in auto_popen()
145 cur->pid = pid; in auto_popen()
[all …]
/netbsd-src/usr.bin/mail/
H A Dpopen.c57 pid_t pid; member
63 pid_t pid; member
78 fpp->fp, fpp->pipe, fpp->pid, fpp->link);
112 register_file(FILE *fp, int pipefd, pid_t pid) in register_file() argument
119 fpp->pid = pid; in register_file()
199 pid_t pid; in start_commandv() local
202 if ((pid = fork()) < 0) { in start_commandv()
206 if (pid == 0) { in start_commandv()
220 (void)findchild(pid, 0); in start_commandv()
221 return pid; in start_commandv()
[all …]
/netbsd-src/lib/libc/sys/
H A Dsched.c49 sched_setparam(pid_t pid, const struct sched_param *param) in sched_setparam() argument
55 return _sched_setparam(pid, P_ALL_LWPS, SCHED_NONE, &sp); in sched_setparam()
59 sched_getparam(pid_t pid, struct sched_param *param) in sched_getparam() argument
62 return _sched_getparam(pid, P_ALL_LWPS, NULL, param); in sched_getparam()
66 sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) in sched_setscheduler() argument
71 ret = _sched_getparam(pid, P_ALL_LWPS, &old_policy, &sp); in sched_setscheduler()
77 ret = _sched_setparam(pid, P_ALL_LWPS, policy, &sp); in sched_setscheduler()
85 sched_getscheduler(pid_t pid) in sched_getscheduler() argument
90 ret = _sched_getparam(pid, P_ALL_LWPS, &policy, &sp); in sched_getscheduler()
135 sched_rr_get_interval(pid_t pid, struct timespec *interval) in sched_rr_get_interval() argument
[all …]
/netbsd-src/external/bsd/blocklist/port/
H A Dpopenve.c67 static struct pid { struct
68 struct pid *next; argument
73 pid_t pid; argument
80 static struct pid *
83 struct pid *cur; in pdes_get()
124 struct pid *old; in pdes_child()
154 pdes_parent(int *pdes, struct pid *cur, pid_t pid, const char *type) in pdes_parent() argument
175 cur->pid = pid; in pdes_parent()
181 pdes_error(int *pdes, struct pid *cur) in pdes_error()
191 struct pid *cur; in popenve()
[all …]
/netbsd-src/tests/lib/libc/stdlib/
H A Dt_exit.c59 pid_t pid; in ATF_TC_BODY() local
62 pid = fork(); in ATF_TC_BODY()
63 ATF_REQUIRE(pid >= 0); in ATF_TC_BODY()
65 if (pid == 0) { in ATF_TC_BODY()
92 pid_t pid; in ATF_TC_BODY() local
95 pid = fork(); in ATF_TC_BODY()
96 ATF_REQUIRE(pid >= 0); in ATF_TC_BODY()
98 if (pid == 0) { in ATF_TC_BODY()
119 pid_t pid; in ATF_TC_BODY() local
123 pid = fork(); in ATF_TC_BODY()
[all …]
/netbsd-src/sys/arch/arm/at91/
H A Dat91busvar.h87 void (*peripheral_clock)(int pid, int enable);
90 at91pio_port (*pio_port)(int pid);
91 uint32_t (*gpio_mask)(int pid);
95 void *(*intr_establish)(int pid, int ipl, int type, int (*ih_func)(void *), void *arg);
101 const char *(*peripheral_name)(int pid);
103 device_t (*found_func)(device_t, bus_addr_t, int pid));
130 at91_peripheral_clock(int pid, int enable) in at91_peripheral_clock() argument
132 return (*at91bus_tag->peripheral_clock)(pid, enable); in at91_peripheral_clock()
136 at91_peripheral_name(int pid) in at91_peripheral_name() argument
138 return (*at91bus_tag->peripheral_name)(pid); in at91_peripheral_name()
[all …]
H A Dat91sam9260bus.c67 void at91sam9260bus_peripheral_clock(int pid, int enable) { in at91sam9260bus_peripheral_clock() argument
68 switch (pid) { in at91sam9260bus_peripheral_clock()
76 at91pmc_peripheral_clock(pid, enable); in at91sam9260bus_peripheral_clock()
79 at91pio_port at91sam9260bus_pio_port(int pid) { in at91sam9260bus_pio_port() argument
80 switch (pid) { in at91sam9260bus_pio_port()
84 default: panic("%s: pid %d not valid", __FUNCTION__, pid); in at91sam9260bus_pio_port()
89 uint32_t at91sam9260bus_gpio_mask(int pid) { in at91sam9260bus_gpio_mask() argument
93 const char *at91sam9260bus_peripheral_name(int pid) { in at91sam9260bus_peripheral_name() argument
94 switch (pid) { in at91sam9260bus_peripheral_name()
123 default: panic("%s: invalid pid %d", __FUNCTION__, pid); in at91sam9260bus_peripheral_name()
[all …]
H A Dat91sam9261bus.c60 void at91sam9261bus_peripheral_clock(int pid, int enable) in at91sam9261bus_peripheral_clock() argument
62 switch (pid) { in at91sam9261bus_peripheral_clock()
70 at91pmc_peripheral_clock(pid, enable); in at91sam9261bus_peripheral_clock()
73 at91pio_port at91sam9261bus_pio_port(int pid) in at91sam9261bus_pio_port() argument
75 switch (pid) { in at91sam9261bus_pio_port()
79 default: panic("%s: pid %d not valid", __FUNCTION__, pid); in at91sam9261bus_pio_port()
84 uint32_t at91sam9261bus_gpio_mask(int pid) in at91sam9261bus_gpio_mask() argument
89 const char *at91sam9261bus_peripheral_name(int pid) in at91sam9261bus_peripheral_name() argument
91 switch (pid) { in at91sam9261bus_peripheral_name()
116 default: panic("%s: invalid pid %d", __FUNCTION__, pid); in at91sam9261bus_peripheral_name()
[all …]
/netbsd-src/external/bsd/kyua-cli/dist/utils/logging/
H A Doperations_test.cpp109 const pid_t pid = ::getpid(); in ATF_TEST_CASE_BODY() local
114 (F("20110221-181000 D %s f1:1: Debug message") % pid).str(), line); in ATF_TEST_CASE_BODY()
117 (F("20110221-181001 E %s f2:2: Error message") % pid).str(), line); in ATF_TEST_CASE_BODY()
120 (F("20110221-181002 I %s f3:3: Info message") % pid).str(), line); in ATF_TEST_CASE_BODY()
123 (F("20110221-181003 W %s f4:4: Warning message") % pid).str(), line); in ATF_TEST_CASE_BODY()
138 const pid_t pid = ::getpid(); in ATF_TEST_CASE_BODY() local
143 (F("20110221-182000 D %s file:123: Debug message") % pid).str(), line); in ATF_TEST_CASE_BODY()
192 const pid_t pid = ::getpid(); in ATF_TEST_CASE_BODY() local
197 (F("20110319-114000 D %s file1:11: Debug 1") % pid).str(), line); in ATF_TEST_CASE_BODY()
200 (F("20110319-114001 E %s file2:22: Error 1") % pid).str(), line); in ATF_TEST_CASE_BODY()
[all …]
/netbsd-src/external/bsd/am-utils/dist/scripts/
H A Dctl-amd.in25 pid=`amq -p 2>/dev/null`
26 if test "$pid" != ""
28 kill $pid
34 pid=`${pscmd} 2>/dev/null | grep "$1" | sed -e 's/^ *//' -e 's/ .*//'`
35 if test "$pid" != ""
37 kill $pid
43 pid=`${pscmd} 2>/dev/null | grep "$1" | sed -e 's/^ *//' -e 's/ .*//'`
44 if test "$pid" != ""
46 kill $pid
52 pid=`${pscmd} 2>/dev/null | grep "$1" | sed -e 's/^ *//' -e 's/ .*//'`
[all …]
/netbsd-src/usr.bin/shlock/
H A Dshlock.c52 ** Extensions for UUCP style locks (i.e. pid is an int in the file,
123 xtmpfile(const char *file, pid_t pid, int uucpstyle) in xtmpfile() argument
138 snprintf(buf, sizeof(buf), "%jd\n", (intmax_t)pid); in xtmpfile()
162 (write(fd, &pid, sizeof(pid)) != sizeof(pid)) : in xtmpfile()
165 warn("write(%s,%jd)", tempname, (intmax_t)pid); in xtmpfile()
181 p_exists(pid_t pid) in p_exists() argument
183 dprintf("%s: process %jd is ", Pname, (intmax_t)pid); in p_exists()
184 if (pid < in p_exists()
225 pid_t pid; cklock() local
255 mklock(const char * file,pid_t pid,int uucpstyle) mklock() argument
369 pid_t pid = 0; main() local
[all...]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dipropd_common.c109 pid_t pid = -1; in restarter() local
146 pid = fork(); in restarter()
147 if (pid == -1) in restarter()
149 if (pid == 0) { in restarter()
163 wpid = waitpid(pid, &status, 0); in restarter()
170 kill(pid, SIGTERM); in restarter()
175 assert(wpid == pid); in restarter()
177 pid = -1; in restarter()
207 if (pid == -1) in restarter()
210 assert(pid > 0); in restarter()
[all …]
/netbsd-src/usr.bin/ktrace/
H A Dktrace.c83 int block, append, ch, fd, trset, ops, pid, pidset, synclog, trpoints; in main() local
96 pid = 0; /* Appease GCC */ in main()
135 pid = -rpid(optarg); in main()
156 pid = rpid(optarg); in main()
201 if (clear == CLEAR && outfile == NULL && pid == 0) in main()
223 pid = 1; in main()
225 ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE; in main()
227 (void)do_ktrace(outfile, vers, ops, trpoints, pid, block); in main()
251 (void)do_ktrace(outfile, vers, ops, trpoints, pid, block); in main()
321 do_ktrace(const char *tracefile, int vers, int ops, int trpoints, int pid, in do_ktrace() argument
[all …]
/netbsd-src/external/cddl/dtracetoolkit/dist/Bin/
H A Dsh_pidcolors.d79 pid$target:a.out:e*:entry,
80 pid$target:a.out:e*:return
81 /self->last == 0 && pid == $target/
90 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "func",
101 cpu, pid, this->delta, basename(copyinstr(arg0)), "func",
110 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin",
121 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin",
130 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "cmd",
141 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "cmd",
150 cpu, pid, this->delta, basename(copyinstr(arg0)), arg1, "line",
[all …]
/netbsd-src/external/cddl/dtracetoolkit/dist/Shell/
H A Dsh_pidcolors.d79 pid$target:a.out:e*:entry,
80 pid$target:a.out:e*:return
81 /self->last == 0 && pid == $target/
90 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "func",
101 cpu, pid, this->delta, basename(copyinstr(arg0)), "func",
110 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin",
121 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin",
130 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "cmd",
141 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "cmd",
150 cpu, pid, this->delta, basename(copyinstr(arg0)), arg1, "line",
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/master/
H A Dmaster_spawn.c145 MASTER_PID pid; in master_spawn() local
171 switch (pid = fork()) { in master_spawn()
245 msg_info("spawn command %s; pid %d", serv->path, pid); in master_spawn()
248 proc->pid = pid; in master_spawn()
252 binhash_enter(master_child_table, (void *) &pid, in master_spawn()
253 sizeof(pid), (void *) proc); in master_spawn()
283 binhash_delete(master_child_table, (void *) &proc->pid, in master_delete_child()
284 sizeof(proc->pid), (void (*) (void *)) 0); in master_delete_child()
294 MASTER_PID pid; in master_reap_child() local
302 while ((pid = waitpid((pid_t) - 1, &status, WNOHANG)) > 0) { in master_reap_child()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/util/perl/TLSProxy/
H A DProxy.pm216 my $pid;
249 $pid = open(STDIN, "$execcmd 2>&1 |") or die "Failed to $execcmd: $!\n";
250 $self->{real_serverpid} = $pid;
265 waitpid($pid, 0);
274 $pid = undef;
277 $pid = $h->GetProcessID();
283 if (defined($pid = fork)) {
284 $pid or exec("$^X -ne print") or exit($!);
294 if (!defined($pid)) {
299 $self->{serverpid} = $pid;
[all …]
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Dwaitpid.c14 pid_t pid; member
39 pid_t waitpid (pid, status, options) in waitpid() argument
40 pid_t pid; in waitpid()
50 unreaped[0].pid = 0;
54 for (i = 0; unreaped[i].pid; i++)
55 if (unreaped[i].pid == pid)
58 while (unreaped[i].pid)
64 return pid;
75 if (p == 0 || p == -1 || p == pid)
80 unreaped[n-1].pid = p;

12345678910>>...73