Searched defs:pid (Results 176 - 200 of 617) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dsyslog.c114 int pid, olderrno = errno; local
208 pid = vfork();
209 if (pid == -1)
211 if (pid == 0) {
232 while ((c = wait((int *)0)) > 0 && c != pid)
/illumos-gate/usr/src/lib/libbc/libc/net/
H A Drcmd.c41 int s, timo = 1, pid, oldmask, retval; local
47 pid = getpid();
65 fcntl(s, F_SETOWN, pid);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dwait.c125 waitpid(int pid, int *status, int options) argument
146 ret = _waitpid(pid, &nstatus, noptions);
169 wait4(int pid, int *status, int options, struct rusage *rp) argument
203 if (pid < 0) {
204 pid = -pid;
206 } else if (pid == 0)
211 error = _waitid(idtype, pid, &info, noptions);
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_cron.c444 int pid; local
476 /* generate new pid to use it as asid */
477 pid = vfork();
478 if (pid == -1) {
482 if (pid == 0)
491 (void) waitpid(pid, &lock, 0);
493 ai.ai_asid = pid;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmon.c46 * If PROFDIR = string, "string/pid.progname" is produced,
251 } else { /* construct "PROFDIR/pid.progname" */
253 pid_t pid; local
258 /* 15 is space for /pid.mon.out\0, if necessary */
269 if ((pid = getpid()) <= 0) /* extra test just in case */
270 pid = 1; /* getpid returns something inappropriate */
273 for (n = 10000; n > pid; n /= 10)
276 *name++ = pid/n + '0';
279 pid %= n;
H A Ducred.c93 ucred_get(pid_t pid) argument
102 if (syscall(SYS_ucredsys, UCREDSYS_UCREDGET, pid, uc) != 0) {
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dwordexp.c105 pid_t pid; local
290 error = posix_spawn(&pid, path, &fact, &attr,
353 while (waitpid(pid, &status, 0) == -1) {
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dsched.c328 sched_setparam(pid_t pid, const struct sched_param *param) argument
330 if (pid < 0) {
334 if (pid == 0)
335 pid = P_MYID;
337 if (setprio(P_PID, pid, param->sched_priority, NULL) == -1)
394 sched_getparam(pid_t pid, struct sched_param *param) argument
398 if (pid < 0) {
402 if (pid == 0)
403 pid = P_MYID;
405 if (getparam(P_PID, pid,
435 sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) argument
453 sched_getscheduler(pid_t pid) argument
508 sched_rr_get_interval(pid_t pid, timespec_t *interval) argument
[all...]
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c151 pid_t pid; local
224 pid = vfork();
226 if (pid == 0) {
255 } else if (pid == -1) {
322 resultPid = waitpid(pid, &status, 0L);
/illumos-gate/usr/src/lib/libkvm/common/
H A Dtest.c96 printf("pid %d:: %d args; %d envs; %d chars (%p - %p)\n",
142 struct pid pid; local
143 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pid,
144 sizeof (pid)) != sizeof (pid)) {
145 printf("ERROR: couldn't get pid\n");
148 tst_getproc(pid.pid_id);
300 tst_getproc(pid_t pid) argument
303 struct pid pidbu
[all...]
/illumos-gate/usr/src/cmd/utmp_update/
H A Dutmp_update.c228 char *user, *id, *line, *pid, *type, *term, *time_usec, local
238 pid = argv[4];
253 (void) sscanf(pid, "%d", &temp);
360 * Verify that the pid of the entry field is the same pid as our
366 dprintf("Bad pid = %d\n", entryx->ut_pid);
/illumos-gate/usr/src/cmd/vntsd/
H A Dvntsd.c334 pid_t pid; local
475 pid = fork();
476 if (pid < 0) {
480 if (pid > 0) {
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_b_svc.c92 pid_t pid; local
273 pid = fork();
274 if (pid < 0) {
278 if (pid) {
H A Dypserv.c176 int pid; local
195 pid = (int)fork();
197 if (pid == -1) {
202 if (pid != 0) {
H A Dypserv_resolv.c290 int resolv_req(bool *fwding, CLIENT **client, int *pid, char *tp, argument
371 if (kill(*pid, 0)) {
373 "Restarting resolv server: old one (pid %d) died.\n", *pid);
376 setup_resolv(fwding, pid, client, tp, 0 /* transient p# */);
401 if (!kill(*pid, 0))
402 kill (*pid, SIGINT); /* cleanup old one */
406 setup_resolv(fwding, pid, client, tp, 0 /* transient p# */);
H A Dypxfrd_server.c128 int pid; local
158 pid = fork1();
159 if (pid < 0) {
169 if (pid != 0)
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_getentctx.c370 gnctx->pid = -1;
534 gnctx->pid = -1;
632 process_exited(pid_t pid) argument
637 (void) snprintf(pname, sizeof (pname), "/proc/%d/psinfo", pid);
679 if (gctx->pid != -1 && process_exited(gctx->pid)) {
687 gctx->pid, gctx, gctx->dbi,
734 gctx->pid, gctx);
/illumos-gate/usr/src/cmd/ppgsz/
H A Dppgsz.c174 "usage:\t%s -o option[,option] [-F] cmd | -p pid ...\n"
182 " -p pid ...: process id list\n",
195 pid_t pid; local
304 pid = wait(&status);
305 } while (pid == -1 && errno == EINTR);
307 if (pid == -1) {
330 /* get the specified pid and the psinfo struct */
332 pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret);
334 if (pid == -1) {
335 (void) fprintf(stderr, "%s: cannot examine pid
543 discover_optimal_pagesize(struct ps_prochandle *Pr, uint_t dmodel, pid_t pid) argument
[all...]
/illumos-gate/usr/src/cmd/prstat/
H A Dprtable.c244 lwpid_add(lwp_info_t *lwp, pid_t pid, id_t lwpid) argument
247 int hash = pid % PLWP_TBL_SZ;
249 elm->l_pid = pid;
257 lwpid_del(pid_t pid, id_t lwpid) argument
260 int hash = pid % PLWP_TBL_SZ;
266 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid)) {
281 lwpid_getptr(pid_t pid, id_t lwpid) argument
283 plwp_t *elm = plwp_tbl[pid % PLWP_TBL_SZ];
285 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid))
294 lwpid_get(pid_t pid, id_ argument
304 lwpid_pidcheck(pid_t pid) argument
318 lwpid_is_active(pid_t pid, id_t lwpid) argument
328 lwpid_set_active(pid_t pid, id_t lwpid) argument
[all...]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dpool_rcm.c434 pool_get_info(rcm_handle_t *hdl, char *rsrcname, id_t pid, uint_t flag, argument
462 id_t pid, uint_t flags, char **reason, rcm_info_t **dependent_info)
470 pool_request_offline(rcm_handle_t *hdl, char *rsrcname, id_t pid, uint_t flag, argument
479 pool_notify_online(rcm_handle_t *hdl, char *rsrcname, id_t pid, uint_t flags, argument
487 pool_notify_remove(rcm_handle_t *hdl, char *rsrcname, id_t pid, argument
461 pool_notify_resume(rcm_handle_t *hdl, char *rsrcname, id_t pid, uint_t flags, char **reason, rcm_info_t **dependent_info) argument
H A Drcm_event.c121 pid_t pid; local
147 pid = (pid_t)pid64;
179 error = add_resource_client(modname, rsrcnames[0], pid, flag,
187 error = remove_resource_client(modname, rsrcnames[0], pid,
208 error = process_resource_suspend(rsrcnames, pid, flag, seq_num,
215 error = notify_resource_resume(rsrcnames, pid, flag, seq_num,
222 error = process_resource_offline(rsrcnames, pid, flag, seq_num,
229 error = notify_resource_online(rsrcnames, pid, flag, seq_num,
236 error = notify_resource_remove(rsrcnames, pid, flag, seq_num,
244 error = notify_resource_event(rsrcnames[0], pid, fla
[all...]
H A Drcm_impl.c59 common_resource_op(int cmd, char *rsrcname, pid_t pid, uint_t flag, int seq_num, argument
110 notify_resource_remove(char **rsrcnames, pid_t pid, uint_t flag, int seq_num, argument
121 pid, flag, seq_num);
127 error = dr_req_update(rsrcnames[i], pid, flag,
134 error = common_resource_op(CMD_REMOVE, rsrcnames[i], pid, flag,
153 notify_resource_resume(char **rsrcnames, pid_t pid, uint_t flag, int seq_num, argument
168 if (get_resource_state(rsrcnames[i], pid, &state_info) ||
177 rsrcnames[i], pid, flag, seq_num);
182 error = dr_req_update(rsrcnames[i], pid, flag,
189 error = common_resource_op(CMD_RESUME, rsrcnames[i], pid, fla
205 notify_resource_online(char **rsrcnames, pid_t pid, uint_t flag, int seq_num, rcm_info_t **info) argument
259 process_resource_suspend(char **rsrcnames, pid_t pid, uint_t flag, int seq_num, timespec_t *interval, rcm_info_t **info) argument
325 process_resource_offline(char **rsrcnames, pid_t pid, uint_t flag, int seq_num, rcm_info_t **info) argument
391 add_resource_client(char *modname, char *rsrcname, pid_t pid, uint_t flag, rcm_info_t **infop) argument
475 remove_resource_client(char *modname, char *rsrcname, pid_t pid, uint_t flag) argument
518 notify_resource_event(char *rsrcname, id_t pid, uint_t flag, int seq_num, nvlist_t *event_data, rcm_info_t **info) argument
535 request_capacity_change(char *rsrcname, id_t pid, uint_t flag, int seq_num, nvlist_t *nvl, rcm_info_t **info) argument
574 notify_capacity_change(char *rsrcname, id_t pid, uint_t flag, int seq_num, nvlist_t *nvl, rcm_info_t **info) argument
597 get_resource_state(char *rsrcname, pid_t pid, rcm_info_t **info) argument
682 query(char **rsrcnames, int cmd, const char *opname, int querystate, pid_t pid, uint_t flag, timespec_t *interval, int seq_num, rcm_info_t **info, int *errorp) argument
801 cancel_query(int cmd, const char *opname, pid_t pid, uint_t flag, int seq_num) argument
[all...]
/illumos-gate/usr/src/cmd/rexd/
H A Dunix_login.c102 extern int child; /* pid of the executed process */
400 * the pid fields matches.
419 int pid; local
432 pid = child;
435 if (up->ut_pid == pid) {
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_main.c454 pid_t pid; local
463 if ((pid = fork()) == -1) {
467 } else if (pid > 0) { /* Parent */
475 (void) kill(pid, SIGKILL);
/illumos-gate/usr/src/cmd/enhance/
H A Denhance.c133 pid_t pid; /* The return value of fork() */ local
191 pid = fork();
192 if(pid < 0) {
200 if(pid!=0) {

Completed in 113 milliseconds

1234567891011>>