Searched defs:pid (Results 401 - 425 of 617) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c83 pid_t pd_pid; /* pid */
89 #define ADDPID 1 /* add a pid to "godchild" list */
90 #define REMPID 2 /* remove a pid to "godchild" list */
238 * "big_pids_in_use" determines whether large pid numbers are in use
492 char user[STRSZ], id[STRSZ], line[STRSZ], pid[STRSZ], type[STRSZ], local
512 (void) sprintf(pid, "%d", (int)entryx->ut_pid);
534 argvec[4] = pid;
1112 * sendpid - send message to init to add or remove a pid from the
1116 * pid - pid o
1119 sendpid(int cmd, pid_t pid) argument
1338 sendupid(int cmd, pid_t pid) argument
[all...]
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones.c656 pid_t pid = (pid_t)0; local
667 pid = getpid();
673 zoneName, LOBJ_ZONEADMIN, pid,
686 zoneName, LOBJ_PKGADMIN, pid,
/illumos-gate/usr/src/cmd/vt/
H A Dvtdaemon.c228 pid_t pid; local
230 if ((pid = fork()) == -1)
233 if (pid == 0) { /* child */
239 while (waitpid(pid, (int *)0, 0) != pid)
247 vt_read_utx(int target_vt, pid_t *pid, char name[]) argument
252 *pid = (pid_t)-1;
269 *pid = u->ut_pid;
687 pid_t pid; local
690 vt_read_utx(target_vt, &pid, user_nam
867 pid_t pid = (pid_t)-1; local
975 vt_do_hotkeys(pid_t pid, uint32_t target_vt) argument
1310 vt_audit_start(adt_session_data_t **ah, pid_t pid) argument
1359 pid_t pid; local
[all...]
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c92 #define INITPROCESS (pid_t)1 /* init process pid */
691 * hash table (pr_htbl) for the given pid in case that
692 * pid exists on the hash chain. It returns back a pointer
693 * to that uproc structure. If this is a new pid, it allocates
698 findhash(pid_t pid) argument
702 tp = up = &pr_htbl[(int)pid % HSIZE];
704 up->p_upid = pid;
709 if (up->p_upid == pid) { /* found in hash table */
713 if (tp->p_upid == pid) {
724 tp->p_upid = pid;
[all...]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.c405 (me, "%s call failed(cred): caller pid %d, uid %d, "
415 (me, "nscd received %s cmd from pid %d, uid %d, "
436 pid_t pid; local
450 pid = ucred_getpid(uc);
455 *pidp = pid;
456 else if (*pidp != pid) {
468 (me, "%s call failed: caller pid %d (input pid = %d), ruid %d, "
470 pid, (pidp != NULL) ? *pidp : -1, ruid, euid,
H A Dnscd_selfcred.c110 /* forker nscd pid */
433 (me, "forker (pid = %d) exited or crashed, "
468 (me, "new forker's pid is %d\n", fpid);
489 (me, "child (pid = %d) exited or crashed ...\n", cpid);
571 (me, "FORKER IMPOSTER CAUGHT: pid = %d should be %d\n",
882 (me, "child forked: parent pid = %d, child pid = %d\n",
1415 static pid_t pid = 0; local
1418 int pfd; /* file descriptor for /proc/<pid>/psinfo */
1422 pid
[all...]
H A Dnscd_switch.c1521 nss_psetent(void *buffer, size_t length, pid_t pid) argument
1597 p0c->p0_pid = pid;
1601 (me, "returning a p0 cookie: pid = %ld, time = %ld, seq #= %llx\n",
1610 nssuint_t *seqnum_p, pid_t pid)
1619 _nscd_APP_check_cred(pbuf, &pid, "NSCD_DELAYED_SETENT",
1641 ctx->pid = pid;
1608 delayed_setent(nss_pheader_t *pbuf, nss_db_initf_t initf, nss_getent_t *contextp, nssuint_t *cookie_num_p, nssuint_t *seqnum_p, pid_t pid) argument
/illumos-gate/usr/src/cmd/picl/picld/
H A Dpicld.c1151 pid_t pid; local
1153 pid = fork();
1154 if (pid < 0)
1156 if (pid > 0)
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/watchdog/
H A Dpiclwatchdog.c89 static pid_t pid = -1; /* PID that owns watchdog services */ variable
692 if (pid == -1) {
697 (void) snprintf(strpid, sizeof (pid), "/proc/%ld/status", pid);
805 if (proc_id != pid) {
869 if (proc_id != pid) {
937 pid = parg->cred.dc_pid;
939 pid = -1;
943 /* reset the pid */
944 pid
[all...]
/illumos-gate/usr/src/cmd/ps/
H A Ducbps.c160 pid_t pid; /* pid: process id */ local
184 * calculate width of pid fields based on configured MAXPID
445 pid = info.pr_pid;
449 if (pflg) { /* pid in arg list */
450 if (pidsave == pid)
/illumos-gate/usr/src/cmd/ptools/plgrp/
H A Dplgrp.c194 gettext("Usage:\t%s [-h] <pid> | <core> [/lwps] ...\n"), progname);
196 gettext("\t%s [-F] -a <lgroup list> <pid>[/lwps] ...\n"), progname);
199 " <pid>[/lwps] ...\n"), progname);
201 gettext("\t%s [-F] -H <lgroup list> <pid>[/lwps] ...\n"), progname);
869 do_op(plgrp_args_t *plgrp_args, id_t pid, id_t lwpid, argument
929 progname, lgrps[i], pid, lwpid,
956 progname, pid, lwpid, lgrps[i],
969 progname, pid, lwpid, strerror(errno));
1039 progname, lgrpid, pid, lwpid,
1074 lgrpid, pid, lwpi
[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/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/cmd/cmd-inet/usr.bin/
H A Drlogin.c1246 * pid; otherwise use the negative.
1248 pid_t pid = getpid(); local
1255 if (fcntl(rem, F_SETOWN, pid) == -1)
1263 (void) kill(pid, SIGURG);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rshd.c451 pid_t pid; local
907 pid = fork();
908 if (pid == (pid_t)-1) {
914 if (pid) {
978 (void) killpg(pid, sig);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/
H A Dinetconv.c937 pid_t pid, wpid; local
946 if ((pid = fork()) == -1) {
952 if (pid == 0) {
962 if ((wpid = waitpid(pid, &status, 0)) != pid) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_smb.c60 uchar_t pid[2]; member in struct:smb
721 show_printf("Proc. ID (PID) = 0x%.4x", get2(smb->pid));
/illumos-gate/usr/src/cmd/dc/
H A Ddc.c1983 pid_t pid, rpid; local
1999 if ((pid = fork()) == (pid_t)0) {
2004 while ((rpid = wait(&retcode)) != pid && rpid != (pid_t)-1);
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_kvm.c338 pid_t pid = -1; local
344 if ((pid = kt->k_dump_find_curproc()) == -1)
347 return (pid);
/illumos-gate/usr/src/cmd/fm/modules/common/ses-log-transport/
H A Dses_log_transport.c126 const char *pid; member in struct:platform
399 * expander: An expander_t struct containing path, pid etc info from the node.
594 check_code(ses_log_monitor_t *slmp, nvlist_t *fmri, char *pid, int code) argument
600 if (strcmp(platforms.plist[i].pid, pid) == 0) {
627 platform_supported(char *pid) argument
633 if (strcmp(platforms.plist[i].pid, pid) == 0) {
/illumos-gate/usr/src/cmd/sendmail/db/
H A Ddb_int.h168 u_int32_t pid; /* Lock holder: 0 or process pid. */ member in struct:_db_mutex_t
172 u_int32_t pid; /* Lock holder: 0 or process pid. */
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddaemon.c184 /* write the pid to file, command line args to syslog */
209 register pid_t pid; local
620 pid = 0;
636 pid = fork();
637 if (pid < 0)
652 if (pid == 0)
900 proc_list_add(pid, status, PROC_CONTROL, 0, -1, NULL);
907 proc_list_add(pid, status, PROC_DAEMON, 0, -1,
3130 /* close locked pid file */
H A Dusersmtp.c718 pid_t pid; local
750 pid = prog_open(argv, &fd, CurEnv);
751 if (pid < 0)
760 pid = -1;
808 if (pid > 0)
809 (void) waitfor(pid);
H A Dutil.c563 ** LOG_SENDMAIL_PID -- record sendmail pid and command line.
586 /* write the pid to the log file for posterity */
596 "unable to write pid to %s: file in use by another process",
600 "unable to write pid to %s: %s",
619 ** Leave pid file open until process ends
629 ** CLOSE_SENDMAIL_PID -- close sendmail pid file
2016 ** pid of the process -- -1 if it failed.
2025 pid_t pid; local
2039 pid = fork();
2040 if (pid <
2686 pid_t pid; local
[all...]
/illumos-gate/usr/src/cmd/avs/dscfglockd/
H A Ddscfglockd.c86 pid_t pid; /* pid of read locker or local writer */ member in struct:lock_req
93 pid_t pid; /* pid of locker */ member in struct:unlock_s
293 send_lockmsg(int cmd, pid_t pid, daemonaddr_t *dp, uint8_t seq) argument
306 message_buf.pid = pid;
434 the_lock.holding_pid[0] = lock_wanted.pid;
483 the_lock.holding_pid[i] = lock_wanted.pid;
498 the_lock.holding_pid[0] = lock_wanted.pid;
678 is_duplicate(cfglockd_t type, pid_t pid, uint8_t seq) argument
737 unqueue_lock(daemonaddr_t *d, pid_t pid) argument
772 local_unlock(pid_t pid, uint8_t seq, int method) argument
1013 purge_pid(pid_t pid) argument
1031 pid_t pid; local
1161 pid_t pid; local
[all...]

Completed in 161 milliseconds

<<11121314151617181920>>