/titanic_41/usr/src/lib/libc/port/sys/ |
H A D | pgrpsys.c | 41 pid_t 44 return ((pid_t)syscall(SYS_pgrpsys, 0)); in getpgrp() 47 pid_t 50 return ((pid_t)syscall(SYS_pgrpsys, 1)); in setpgrp() 53 pid_t 54 getsid(pid_t pid) in getsid() 56 return ((pid_t)syscall(SYS_pgrpsys, 2, pid)); in getsid() 59 pid_t 62 return ((pid_t)syscall(SYS_pgrpsys, 3)); in setsid() 65 pid_t [all …]
|
/titanic_41/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_impl.h | 133 pid_t pid; /* pid of regis process */ 229 int process_resource_suspend(char **, pid_t, uint_t, int, timespec_t *, 231 int notify_resource_resume(char **, pid_t, uint_t, int, rcm_info_t **); 232 int process_resource_offline(char **, pid_t, uint_t, int, rcm_info_t **); 233 int notify_resource_online(char **, pid_t, uint_t, int, rcm_info_t **); 234 int notify_resource_remove(char **, pid_t, uint_t, int, rcm_info_t **); 235 int add_resource_client(char *, char *, pid_t, uint_t, rcm_info_t **); 236 int remove_resource_client(char *, char *, pid_t, uint_t); 238 int notify_resource_event(char *, pid_t, uint_t, int, nvlist_t *, 240 int request_capacity_change(char *, pid_t, uint_t, int, nvlist_t *, [all …]
|
/titanic_41/usr/src/lib/libpctx/common/ |
H A D | libpctx.h | 56 extern pctx_t *pctx_capture(pid_t pid, 59 typedef int pctx_sysc_execfn_t(pctx_t *, pid_t, id_t, char *, void *); 60 typedef void pctx_sysc_forkfn_t(pctx_t *, pid_t, id_t, pid_t, void *); 61 typedef void pctx_sysc_exitfn_t(pctx_t *, pid_t, id_t, int, void *); 62 typedef int pctx_sysc_lwp_createfn_t(pctx_t *, pid_t, id_t, void *); 63 typedef int pctx_init_lwpfn_t(pctx_t *, pid_t, id_t, void *); 64 typedef int pctx_fini_lwpfn_t(pctx_t *, pid_t, id_t, void *); 65 typedef int pctx_sysc_lwp_exitfn_t(pctx_t *, pid_t, id_t, void *); 83 int (*tick)(pctx_t *, pid_t, id_t, void *));
|
/titanic_41/usr/src/lib/libshell/common/include/ |
H A D | jobs.h | 62 pid_t p_pid; /* process id */ 63 pid_t p_pgrp; /* process group */ 64 pid_t p_fgrp; /* process group when stopped */ 79 pid_t curpgid; /* current process gid id */ 80 pid_t parent; /* set by fork() */ 81 pid_t mypid; /* process id of shell */ 82 pid_t mypgid; /* process group id of shell */ 83 pid_t mytgid; /* terminal group id of shell */ 163 extern int job_wait(pid_t); 164 extern int job_post(pid_t,pid_t); [all …]
|
/titanic_41/usr/src/lib/libdscfg/common/ |
H A D | cfg_lockdlck.c | 41 #define segment_off(s) ((off_t)(s) * sizeof (pid_t)) 58 pid_t pid = 0; in cfg_filelock() 64 if (sb.st_size < off + sizeof (pid_t)) { in cfg_filelock() 67 write(local_lockfda, &pid, sizeof (pid_t)); in cfg_filelock() 73 lk.l_len = (off_t)sizeof (pid_t); in cfg_filelock() 94 lk.l_len = (off_t)sizeof (pid_t); in cfg_fileunlock() 102 cfg_readpid(int segment, pid_t *pidp) in cfg_readpid() 106 read(local_lockfd, pidp, sizeof (pid_t)); in cfg_readpid() 110 cfg_writepid(int segment, pid_t pid) in cfg_writepid() 114 write(local_lockfd, &pid, sizeof (pid_t)); in cfg_writepid() [all …]
|
/titanic_41/usr/src/lib/libbc/inc/include/ |
H A D | unistd.h | 123 extern pid_t fork(void); 131 extern pid_t getpgrp(void); 132 extern pid_t getpid(void); 133 extern pid_t getppid(void); 144 extern int setpgid(pid_t, pid_t); 145 extern pid_t setsid(void); 149 extern pid_t tcgetpgrp(int); 150 extern int tcsetpgrp(int, pid_t);
|
/titanic_41/usr/src/cmd/latencytop/common/ |
H A D | latencytop.h | 199 extern void lt_stat_update(pid_t, id_t, char *, char *, unsigned int, 201 extern void lt_stat_update_cause(pid_t, id_t, int, lt_stat_type_t, uint64_t); 202 extern void lt_stat_update_sobj(pid_t, id_t, int, unsigned long long, 212 pid_t, id_t, int, lt_sort_t); 224 extern int lt_stat_proc_list_create(pid_t **, id_t **); 225 extern void lt_stat_proc_list_free(pid_t *, id_t *); 226 extern const char *lt_stat_proc_get_name(pid_t); 227 extern int lt_stat_proc_get_nthreads(pid_t); 245 extern void lt_klog_log(int, pid_t, char *, lt_stat_type_t, 257 extern char *lt_get_proc_field(pid_t, lt_field_t);
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | pclose.c | 84 static pid_t *popen_pid; 91 pid_t pid; in mypopen() 102 popen_pid = (pid_t *)malloc((unsigned)nfiles * in mypopen() 107 popen_pid[i] = (pid_t)-1; in mypopen() 123 if (pid == (pid_t)-1) { in mypopen() 145 pid_t child, pid; in mypclose() 151 popen_pid[fileno(ptr)] = (pid_t)-1; in mypclose() 153 if (child == (pid_t)-1) in mypclose() 157 while ((pid = wait(&status)) != child && pid != (pid_t)-1) in mypclose() 161 return (pid == (pid_t)-1 ? -1 : 0); in mypclose()
|
/titanic_41/usr/src/tools/cscope-fast/ |
H A D | exec.c | 52 pid_t childpid; /* child's process ID */ 57 static pid_t myfork(void); 58 static int join(pid_t p); 74 pid_t p; in execute() 111 static pid_t 114 pid_t p; /* process number */ in myfork() 138 join(pid_t p) in join() 141 pid_t w; in join()
|
/titanic_41/usr/src/cmd/prstat/ |
H A D | prtable.h | 68 pid_t l_pid; 85 extern void lwpid_add(lwp_info_t *, pid_t, id_t); 86 extern lwp_info_t *lwpid_get(pid_t, id_t); 87 extern int lwpid_pidcheck(pid_t); 88 extern void lwpid_del(pid_t, id_t); 89 extern void lwpid_set_active(pid_t, id_t); 90 extern int lwpid_is_active(pid_t, id_t);
|
/titanic_41/usr/src/ucbhead/sys/ |
H A D | wait.h | 152 extern pid_t wait(int *); 153 extern pid_t waitpid(pid_t, int *, int); 155 extern pid_t wait4(pid_t, int *, int, struct rusage *); 156 extern pid_t wait3(int *, int, struct rusage *); 160 extern pid_t wait(); 161 extern pid_t waitpid();
|
/titanic_41/usr/src/lib/libast/common/comp/ |
H A D | spawnveg.c | 47 pid_t 48 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid) 51 pid_t pid; 98 pid_t 99 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid) 114 pid_t 115 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid) 154 pid_t 155 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid) 160 pid_t pid; [all …]
|
/titanic_41/usr/src/ucbhead/ |
H A D | unistd.h | 143 extern pid_t getpid(void); 144 extern pid_t getppid(void); 145 extern pid_t getpgrp(void); 147 extern int setpgid(pid_t, pid_t); 148 extern int setpgrp(pid_t, pid_t); /* BSD */
|
/titanic_41/usr/src/lib/libgen/common/ |
H A D | p2open.c | 47 extern int _insert(pid_t pid, int fd); 48 extern pid_t _delete(int fd); 74 pid_t pid; in __p2open() 99 if (pid == (pid_t)-1) in __p2open() 116 pid_t pid, r; in __p2close() 132 if (pid == (pid_t)-1) in __p2close() 150 while ((r = waitpid(pid, &status, 0)) == (pid_t)-1 && errno == EINTR) in __p2close() 152 if (r == (pid_t)-1) in __p2close()
|
/titanic_41/usr/src/head/ |
H A D | unistd.h | 322 extern pid_t fork(void); 324 extern pid_t fork1(void); 325 extern pid_t forkall(void); 382 extern pid_t getpgid(pid_t); 384 extern pid_t getpid(void); 385 extern pid_t getppid(void); 386 extern pid_t getpgrp(void); 392 extern pid_t getsid(pid_t); 455 extern int ptrace(int, pid_t, int, int); 510 extern int setpgid(pid_t, pid_t); [all …]
|
H A D | sched.h | 59 int sched_getparam(pid_t, struct sched_param *); 60 int sched_setparam(pid_t, const struct sched_param *); 61 int sched_getscheduler(pid_t); 62 int sched_setscheduler(pid_t, int, const struct sched_param *); 66 int sched_rr_get_interval(pid_t, struct timespec *);
|
/titanic_41/usr/src/cmd/mailx/ |
H A D | popen.c | 65 typedef int pid_t; typedef 71 static pid_t popen_pid[20]; 77 register pid_t pid; in npopen() 104 if(pid == (pid_t)-1) in npopen() 115 register pid_t r; in npclose() 123 while((r = wait(&status)) != popen_pid[f] && r != (pid_t)-1) in npclose() 125 if(r == (pid_t)-1) in npclose()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | wait.h | 98 extern pid_t wait(int *); 99 extern pid_t waitpid(pid_t, int *, int); 105 extern pid_t wait3(int *, int, struct rusage *); 110 extern pid_t wait4(pid_t, int *, int, struct rusage *);
|
H A D | port_kernel.h | 57 pid_t portkev_pid; /* pid of process using this struct */ 60 int (*portkev_callback)(void *, int *, pid_t, int, void *); 99 void (*portsrc_close)(void *, int, pid_t, int); 145 void (*pks_close)(void *, int, pid_t, int); 152 void (*)(void *, int, pid_t, int), void *arg, 163 int (*)(void *, int *, pid_t, int, void *), void *);
|
H A D | share.h | 48 pid_t sl_pid; 56 pid_t s_pid; /* 0 if remote otherwise local pid */ 71 extern void cleanshares(struct vnode *, pid_t); 74 extern int proc_has_nbmand_share_on_vp(vnode_t *, pid_t);
|
/titanic_41/usr/src/lib/libmail/common/ |
H A D | systemvp.c | 49 pid_t 53 pid_t pid, w; in systemvp() 68 } while (w != pid && w != (pid_t)-1); in systemvp() 71 return ((w == (pid_t)-1)? w: (pid_t)status); in systemvp()
|
H A D | popenvp.c | 58 static pid_t popen_pid[20]; 67 pid_t pid; in popenvp() 93 if (pid == (pid_t)-1) in popenvp() 104 pid_t r; in pclosevp() 115 } while (r != popen_pid[f] && r != (pid_t)-1); in pclosevp() 117 if (r == (pid_t)-1) in pclosevp()
|
/titanic_41/usr/src/lib/libast/common/obsolete/ |
H A D | spawn.c | 69 extern pid_t 83 extern pid_t 87 pid_t pid; 126 extern pid_t 140 extern pid_t 144 pid_t pid;
|
/titanic_41/usr/src/lib/libnsl/common/ |
H A D | daemon_utils.c | 138 pid_t 142 pid_t pid; in _enter_daemon_lock() 150 return ((pid_t)-1); in _enter_daemon_lock() 160 return ((pid_t)-1); in _enter_daemon_lock() 168 return ((pid_t)-1); in _enter_daemon_lock() 171 return ((pid_t)0); in _enter_daemon_lock()
|
/titanic_41/usr/src/cmd/avs/dscfglockd/ |
H A D | dscfglockd.c | 86 pid_t pid; /* pid of read locker or local writer */ 93 pid_t pid; /* pid of locker */ 117 pid_t holding_pid[MAX_LOCAL]; 293 send_lockmsg(int cmd, pid_t pid, daemonaddr_t *dp, uint8_t seq) in send_lockmsg() 330 send_lockmsg(ALIVE, (pid_t)0, &(ldp->host), 0); in send_aliveall() 394 send_lockmsg(WRITE_LOCK, (pid_t)0, daemon, 0); in daemon_alive() 410 send_lockmsg(ackmessage, (pid_t)0, &lock_wanted.remote, 0); in take_lock() 465 send_lockmsg(UNLOCK, (pid_t)0, &(ldp->host), 0); in lock_granted() 515 send_lockmsg(WRITE_LOCK, (pid_t)0, in try_lock() 572 send_lockmsg(GRANTED, (pid_t)0, addr, msg->seq); in queue_lock() [all …]
|