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

<<11121314151617181920>>

/illumos-gate/usr/src/test/zfs-tests/tests/functional/mv_files/
H A Dmv_files_common.kshlib62 for pid in \$PIDS
64 \wait \$pid
113 for pid in $1
115 ps -e | grep $pid >/dev/null 2>&1
116 (( $? == 0 )) && wait $pid
/illumos-gate/usr/src/lib/libtnfctl/
H A Dopen.c43 static tnfctl_errcode_t attach_pid(pid_t pid, prb_proc_ctl_t **proc_pp);
131 tnfctl_pid_open(pid_t pid, tnfctl_handle_t **ret_val) argument
139 prexstat = attach_pid(pid, &proc_p);
376 attach_pid(pid_t pid, prb_proc_ctl_t **proc_pp) argument
381 if (getpid() == pid)
384 /* check if pid is valid */
385 if ((kill(pid, 0) == -1) && errno == ESRCH) {
389 prbstat = prb_proc_open(pid, proc_pp);
429 int pid; local
433 pid
[all...]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_subr.c414 add_busy_rsrc_to_list(char *alias, pid_t pid, int state, int seq_num, argument
437 (errno = nvlist_add_int64(info->info, RCM_CLIENT_ID, pid)) ||
514 rsrc_client_alloc(char *alias, char *modname, pid_t pid, uint_t flag) argument
522 alias, modname, pid);
530 client->pid = pid;
542 /* Find client in list matching modname and pid */
544 rsrc_client_find(char *modname, pid_t pid, client_t **list) argument
549 modname, pid, (void *)list);
552 if ((client->pid
1189 rsrc_node_add_user(rsrc_node_t *node, char *alias, char *modname, pid_t pid, uint_t flag) argument
1245 rsrc_node_remove_user(rsrc_node_t *node, char *modname, pid_t pid, uint_t flag) argument
1644 proc_exist(pid_t pid) argument
1894 call_getinfo(struct rcm_mod_ops *ops, rcm_handle_t *hdl, char *alias, id_t pid, uint_t flag, char **info, char **error, nvlist_t *client_props, rcm_info_t **infop) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dprocopen.c419 if (proc_default.pid == -1)
423 proc->pid = -1;
459 proc->pid = 0;
464 proc->pid = 0;
491 proc->pid = fork();
494 else if (!proc->pid)
519 else if (proc->pid == -1)
524 if (!proc->pid)
685 else if ((proc->pid = spawnveg(path, p, environ, proc->pgrp)) != -1)
714 proc->pid
[all...]
/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/hal/hald/
H A Dhald_runner.c56 GPid pid; member in struct:__anon622
117 GPid pid; local
119 pid = (GPid) dpid;
121 /*HAL_INFO (("Previously started process with pid %d exited", pid));*/
122 rp = g_hash_table_lookup (running_processes, (gpointer) pid);
125 g_hash_table_remove (running_processes, (gpointer) pid);
166 runner_died(GPid pid, gint status, gpointer data) { argument
167 g_spawn_close_pid (pid);
177 GPid pid; local
[all...]
/illumos-gate/usr/src/cmd/rcap/rcapd/
H A Drcapd_main.c99 static pid_t rcapd_pid; /* rcapd's pid to ensure it's not */
134 proc_issystem(pid_t pid) argument
138 if (priocntl(P_PID, pid, PC_GETXPARMS, NULL, PC_KY_CLNAME, pc_clname,
151 pid_t pid = psinfop->pr_pid; local
188 if (lproc->lpc_pid == pid) {
205 debug("insufficient memory to track new process %d", (int)pid);
208 lproc->lpc_pid = pid;
219 lproc->lpc_unscannable = unscannable || proc_issystem(pid);
249 (int)pid, psinfop->pr_psargs,
265 pid_t pid local
315 get_psinfo(pid_t pid, psinfo_t *psinfo, int cached_fd, int(*fd_update_cb)(void *, int), void *arg, lprocess_t *lpc) argument
374 proc_cb(const pid_t pid) argument
590 pid_t pid; local
820 pid_t pid; local
1240 pid_t pid; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dutils.c846 notice("Device %s is locked by pid %d", dev, result);
854 int fd, pid, n;
895 n = read(fd, &pid, sizeof(pid));
900 error("Can't read pid from lock file %s", lock_file);
907 pid = atoi(lock_buffer);
909 if (pid == getpid())
911 if (pid == 0
912 || (kill(pid, 0) == -1 && errno == ESRCH)) {
914 notice("Removed stale lock on %s (pid
[all...]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypupdated.c102 pid_t pid; local
182 pid = fork();
184 if (pid < 0) {
188 if (pid)
313 int pid; local
322 pid = _openchild(updater, &childargs, &childrslt);
323 if (pid < 0) {
H A Dypxfrd_svc.c164 pid_t pid; local
229 pid = fork();
230 if (pid < 0) {
234 if (pid)
/illumos-gate/usr/src/cmd/keyserv/
H A Dupdate.c84 pid_t pid; local
110 pid = _openchild(updater, &childargs, &childrslt);
111 if (pid < 0)
145 * returns pid, or -1 for failure
151 pid_t pid; local
163 switch (pid = vfork()) {
165 switch (pid = fork()) {
197 return (pid);
/illumos-gate/usr/src/cmd/svc/startd/
H A Dwait.c30 * Use event ports to poll on the set of fds representing the /proc/[pid]/psinfo
180 * wait_register is called after we have called fork(2), and know which pid we
188 * Returns 0 if registration successful, 1 if child pid did not exist, and -1
192 wait_register(pid_t pid, const char *inst_fmri, int am_parent, int direct) argument
194 char *fname = uu_msprintf("/proc/%ld/psinfo", pid);
198 assert(pid != 0);
208 wi->wi_pid = pid;
245 log_framework(LOG_DEBUG, "monitoring PID %ld on fd %d (%s)\n", pid, fd,
327 wait_postfork(pid_t pid) argument
333 if (pid !
[all...]
/illumos-gate/usr/src/cmd/power/
H A Dconf.c232 mesg(MDEBUG, "got powerd pid %ld\n", powerd_pid);
286 * Signal old powerd when there's a valid pid, or start a new one;
294 pid_t pid, wp; local
305 if ((pid = fork()) == NOPID)
307 else if (pid == P_MYPID) {
318 wp = waitpid(pid, &status, 0);
333 int pid; local
337 pid = fork();
338 if (pid == NOPID)
340 else if (pid
[all...]
/illumos-gate/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c48 * by another process, do not block but return the pid owner of
133 * lock the file, write caller's pid to the lock file
135 * pid of the current lock holder, else,
142 pid_t pid; local
146 pid = getpid();
147 (void) snprintf(line, sizeof (line), "%ld\n", pid);
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_simple.c62 pid_t pid; /* process-id at moment of creation */ member in struct:rpc_call_private
121 rcp->pid == getpid() &&
135 rcp->pid = getpid();
/illumos-gate/usr/src/cmd/bnu/
H A Dutility.c67 #define EFORMAT "%sERROR (%.9s) pid: %ld (%s) %s %s (%d) [FILE: %s, LINE: %d]\n"
75 pid_t pid; local
86 pid = getpid();
89 Progname, (long) pid, timeStamp(), s1, s2, i1, file, line);
/illumos-gate/usr/src/cmd/tcpd/
H A Dsafe_finger.c152 int pid; local
176 switch (pid = fork()) {
195 return (pid);
/illumos-gate/usr/src/cmd/tsol/plabel/
H A Dplabel.c112 char pid[11]; /* 32 bit pids go to 4294967295 plus a NUL */ local
114 (void) sprintf(pid, "%d", (int)getpid());
115 rc = look(pid);
220 gettext(" %s [pid ...] \n"), cmd);
222 gettext(" %s -s [pid ...] \n"), cmd);
224 gettext(" %s -S [pid ...] \n"), cmd);
/illumos-gate/usr/src/uts/common/idmap/
H A Dkidmap_priv.h61 uid_t pid; member in struct:pid2sid
119 uint32_t rid, uid_t *pid, int *is_user);
140 uint32_t rid, uid_t pid, int is_user, int direction);
/illumos-gate/usr/src/tools/ctf/ctfstrip/
H A Dctfstrip.c117 pid_t pid; local
129 if ((rc = posix_spawn(&pid, MCS, NULL, &attr,
135 waitpid(pid, &stat, 0);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/replacement/
H A Dreplacement_001_pos.ksh99 typeset pid=$!
102 if ! ps -p $pid > /dev/null 2>&1; then
106 child_pids="$child_pids $pid"
H A Dreplacement_003_pos.ksh97 typeset pid=$!
100 if ! ps -p $pid > /dev/null 2>&1; then
104 child_pids="$child_pids $pid"
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DProcessState.java36 * Consumer#grabProcess(int pid)}.
123 * @param pid non-negative target process ID
140 ProcessState(int pid, State processState, argument
145 processID = pid;
157 * @see #ProcessState(int pid, State processState, int
164 ProcessState(int pid, String processStateName, argument
169 processID = pid;
182 throw new IllegalArgumentException("pid is negative");
346 buf.append("[pid = ");
/illumos-gate/usr/src/lib/libstmf/common/
H A Dlibstmf_impl.h63 char pid[16]; member in struct:_diskResource
/illumos-gate/usr/src/head/
H A Ducred.h45 extern ucred_t *ucred_get(pid_t pid);

Completed in 286 milliseconds

<<11121314151617181920>>