/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pisprocdir.c | 38 Pisprocdir(struct ps_prochandle *Pr, const char *dir) argument 46 procfs_path, (int)Pr->pid, dir); 49 procfs_path, (int)Pr->pid, dir);
|
H A D | pr_door.c | 40 pr_door_info(struct ps_prochandle *Pr, int did, door_info_t *di) argument 47 if (Pr == NULL) /* no subject process */ 91 error = Psyscall(Pr, &rval, SYS_door, 6, &argd[0]);
|
H A D | pr_exit.c | 39 pr_exit(struct ps_prochandle *Pr, int status) argument 46 if (Pr == NULL) { /* no subject process */ 58 error = Psyscall(Pr, &rval, SYS_exit, 1, &argd[0]); 82 pr_lwp_exit(struct ps_prochandle *Pr) argument 87 if (Pr == NULL) { /* no subject process */ 92 error = Psyscall(Pr, &rval, SYS_lwp_exit, 0, NULL);
|
H A D | pr_fcntl.c | 40 pr_fcntl(struct ps_prochandle *Pr, int fd, int cmd, void *argp) argument 47 if (Pr == NULL) /* no subject process */ 59 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) { 133 error = Psyscall(Pr, &rval, SYS_fcntl, 3, &argd[0]);
|
H A D | pr_ioctl.c | 39 pr_ioctl(struct ps_prochandle *Pr, int fd, int code, void *buf, size_t size) argument 46 if (Pr == NULL) /* no subject process */ 77 error = Psyscall(Pr, &rval, SYS_ioctl, 3, &argd[0]);
|
H A D | pr_pbind.c | 36 pr_processor_bind(struct ps_prochandle *Pr, idtype_t idtype, id_t id, argument 44 if (Pr == NULL) /* no subject process */ 82 error = Psyscall(Pr, &rval, SYS_processor_bind, 4, &argd[0]);
|
H A D | pr_getitimer.c | 39 pr_getitimer(struct ps_prochandle *Pr, int which, struct itimerval *itv) argument 46 int victim32 = (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32); 50 if (Pr == NULL) /* no victim process */ 77 error = Psyscall(Pr, &rval, SYS_getitimer, 2, &argd[0]); 95 pr_setitimer(struct ps_prochandle *Pr, argument 103 int victim32 = (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32); 108 if (Pr == NULL) /* no victim process */ 160 error = Psyscall(Pr, &rval, SYS_setitimer, 3, &argd[0]);
|
H A D | pr_getrctl.c | 41 pr_getrctl(struct ps_prochandle *Pr, const char *rname, argument 49 if (Pr == NULL) /* no subject process */ 110 error = Psyscall(Pr, &rval, SYS_rctlsys, 6, &argd[0]); 123 pr_setrctl(struct ps_prochandle *Pr, const char *rname, argument 131 if (Pr == NULL) /* no subject process */ 192 error = Psyscall(Pr, &rval, SYS_rctlsys, 6, &argd[0]); 205 pr_setprojrctl(struct ps_prochandle *Pr, const char *rname, argument 213 if (Pr == NULL) /* no subject process */ 267 error = Psyscall(Pr, &rval, SYS_rctlsys, 6, &argd[0]);
|
H A D | pr_getrlimit.c | 41 pr_getrlimit(struct ps_prochandle *Pr, argument 50 if (Pr == NULL) /* no subject process */ 68 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) 76 error = Psyscall(Pr, &rval, sysnum, 2, &argd[0]); 89 pr_setrlimit(struct ps_prochandle *Pr, argument 98 if (Pr == NULL) /* no subject process */ 116 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) 124 error = Psyscall(Pr, &rval, sysnum, 2, &argd[0]); 137 pr_getrlimit64(struct ps_prochandle *Pr, argument 146 if (Pr 185 pr_setrlimit64(struct ps_prochandle *Pr, int resource, const struct rlimit64 *rlp) argument [all...] |
H A D | pr_lseek.c | 43 pr_lseek(struct ps_prochandle *Pr, int filedes, off_t offset, int whence) argument 53 if (Pr == NULL) 64 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_NATIVE) { 96 error = Psyscall(Pr, &rval, syscall, nargs, &argd[0]); 103 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_NATIVE) 118 pr_llseek(struct ps_prochandle *Pr, int filedes, offset_t offset, int whence) argument 128 if (Pr == NULL) 139 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_LP64) { 171 error = Psyscall(Pr, &rval, syscall, nargs, &argd[0]); 178 if (Pstatus(Pr) [all...] |
H A D | pr_memcntl.c | 41 pr_memcntl(struct ps_prochandle *Pr, argument 49 if (Pr == NULL) /* no subject process */ 80 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) 109 error = Psyscall(Pr, &rval, SYS_memcntl, 6, &argd[0]);
|
H A D | pr_mmap.c | 39 pr_mmap(struct ps_prochandle *Pr, argument 47 if (Pr == NULL) /* no subject process */ 92 error = Psyscall(Pr, &rval, SYS_mmap, 6, &argd[0]); 105 pr_munmap(struct ps_prochandle *Pr, void *addr, size_t len) argument 112 if (Pr == NULL) /* no subject process */ 129 error = Psyscall(Pr, &rval, SYS_munmap, 2, &argd[0]); 142 pr_zmap(struct ps_prochandle *Pr, void *addr, size_t len, int prot, int flags) argument 144 return (pr_mmap(Pr, addr, len, prot, flags | MAP_ANON, -1, (off_t)0));
|
H A D | pr_open.c | 38 pr_open(struct ps_prochandle *Pr, const char *filename, int flags, mode_t mode) argument 45 if (Pr == NULL) /* no subject process */ 76 error = Psyscall(Pr, &rval, SYS_openat, 4, &argd[0]); 89 pr_creat(struct ps_prochandle *Pr, const char *filename, mode_t mode) argument 96 if (Pr == NULL) /* no subject process */ 127 error = Psyscall(Pr, &rval, SYS_openat, 4, &argd[0]); 140 pr_close(struct ps_prochandle *Pr, int fd) argument 147 if (Pr == NULL) /* no subject process */ 157 error = Psyscall(Pr, &rval, SYS_close, 1, &argd[0]); 170 pr_access(struct ps_prochandle *Pr, cons argument [all...] |
H A D | pr_rename.c | 36 pr_rename(struct ps_prochandle *Pr, const char *old, const char *new) argument 43 if (Pr == NULL) 74 error = Psyscall(Pr, &rval, SYS_renameat, 4, &argd[0]); 87 pr_link(struct ps_prochandle *Pr, const char *existing, const char *new) argument 94 if (Pr == NULL) 132 error = Psyscall(Pr, &rval, SYS_linkat, 5, &argd[0]); 145 pr_unlink(struct ps_prochandle *Pr, const char *path) argument 152 if (Pr == NULL) 176 error = Psyscall(Pr, &rval, SYS_unlinkat, 3, &argd[0]);
|
H A D | pr_sigaction.c | 44 pr_sigaction(struct ps_prochandle *Pr, argument 56 if (Pr == NULL) /* no subject process */ 77 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) { 102 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) { 115 error = Psyscall(Pr, &rval, SYS_sigaction, 3, &argd[0]); 122 if (oact != NULL && Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32)
|
H A D | pr_statvfs.c | 65 pr_statvfs(struct ps_prochandle *Pr, const char *path, statvfs_t *buf) argument 75 if (Pr == NULL) /* no subject process */ 89 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) { 101 error = Psyscall(Pr, &rval, SYS_statvfs, 2, &argd[0]); 108 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) 118 pr_fstatvfs(struct ps_prochandle *Pr, int fd, statvfs_t *buf) argument 128 if (Pr == NULL) /* no subject process */ 142 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) { 154 error = Psyscall(Pr, &rval, SYS_fstatvfs, 2, &argd[0]); 161 if (Pstatus(Pr) [all...] |
H A D | pr_tasksys.c | 44 pr_getzoneid(struct ps_prochandle *Pr) argument 51 if (Pr == NULL) /* no subject process */ 68 error = Psyscall(Pr, &rval, SYS_zone, 2, &argd[0]); 78 pr_getprojid(struct ps_prochandle *Pr) argument 85 if (Pr == NULL) /* no subject process */ 95 error = Psyscall(Pr, &rval, SYS_tasksys, 1, &argd[0]); 105 pr_gettaskid(struct ps_prochandle *Pr) argument 112 if (Pr == NULL) /* no subject process */ 122 error = Psyscall(Pr, &rval, SYS_tasksys, 1, &argd[0]); 132 pr_settaskid(struct ps_prochandle *Pr, projid_ argument [all...] |
H A D | pr_waitid.c | 45 pr_waitid(struct ps_prochandle *Pr, argument 56 if (Pr == NULL) /* no subject process */ 78 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) { 97 error = Psyscall(Pr, &rval, SYS_waitid, 4, &argd[0]); 104 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32)
|
H A D | proc_set.c | 39 Psetcred(struct ps_prochandle *Pr, const prcred_t *credp) argument 48 if (Pr == NULL || credp == NULL) 58 if (write(Pctlfd(Pr), ctlp, sizeof (long) + ctlsize) < 0) 70 Psetzoneid(struct ps_prochandle *Pr, zoneid_t zoneid) argument 77 if (Pr == NULL) 83 if (write(Pctlfd(Pr), &ctl, sizeof (ctl)) < 0)
|
H A D | pr_stat.c | 69 pr_stat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument 80 if (Pr == NULL) /* no subject process */ 83 if (Pstatus(Pr)->pr_dmodel != PR_MODEL_NATIVE) { 108 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) { 127 error = Psyscall(Pr, &rval, syscall, 4, &argd[0]); 134 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) 144 pr_lstat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument 155 if (Pr == NULL) /* no subject process */ 158 if (Pstatus(Pr)->pr_dmodel != PR_MODEL_NATIVE) { 183 if (Pstatus(Pr) 219 pr_fstat(struct ps_prochandle *Pr, int fd, struct stat *buf) argument 294 pr_stat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument 373 pr_lstat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument 452 pr_fstat64(struct ps_prochandle *Pr, int fd, struct stat64 *buf) argument [all...] |
H A D | pr_getsockname.c | 40 get_sock_peer_name(struct ps_prochandle *Pr, argument 76 error = Psyscall(Pr, &rval, syscall, 4, &argd[0]); 94 pr_getsockname(struct ps_prochandle *Pr, argument 97 if (Pr == NULL) /* no subject process */ 100 return (get_sock_peer_name(Pr, SYS_getsockname, sock, name, namelen)); 107 pr_getpeername(struct ps_prochandle *Pr, argument 110 if (Pr == NULL) /* no subject process */ 113 return (get_sock_peer_name(Pr, SYS_getpeername, sock, name, namelen)); 117 pr_getsockopt(struct ps_prochandle *Pr, argument 125 if (Pr 176 pr_getpeerucred(struct ps_prochandle *Pr, int fd, ucred_t **ucp) argument [all...] |
H A D | pr_meminfo.c | 40 pr_meminfo(struct ps_prochandle *Pr, const uint64_t *addrs, argument 71 if ((totalmap = pr_zmap(Pr, 0, totalsize, PROT_READ | PROT_WRITE, 85 if (Pwrite(Pr, addrs, inarraysize, inaddr) != inarraysize) { 90 if (Pwrite(Pr, info, infoarraysize, infoaddr) != 97 model = Pr->status.pr_dmodel; 156 error = Psyscall(Pr, &rval, SYS_meminfosys, 3, &argd[0]); 165 if ((Pread(Pr, outdata, outarraysize, outaddr)) != outarraysize) { 170 if (Pread(Pr, validity, validityarraysize, validityaddr) 181 pr_munmap(Pr, totalmap, totalsize) == -1) {
|
/illumos-gate/usr/src/cmd/ptools/pldd/ |
H A D | pldd.c | 101 struct ps_prochandle *Pr; local 105 if ((Pr = proc_arg_grab(arg = *argv++, PR_ARG_ANY, 114 (void) memcpy(&psinfo, Ppsinfo(Pr), sizeof (psinfo_t)); 117 if (Pstate(Pr) == PS_DEAD) { 118 if ((Pcontent(Pr) & content) != content) { 131 if (Pgetauxval(Pr, AT_BASE) != -1L && Prd_agent(Pr) == NULL) { 138 rc += Pobject_iter(Pr, show_map, Pr); 140 rc += Pobject_iter_resolved(Pr, show_ma 152 struct ps_prochandle *Pr = cd; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/ |
H A D | proc_kludges.c | 81 struct ps_prochandle *Pr; local 86 if (mdb_get_xdata("pshandle", &Pr, sizeof (Pr)) == -1) { 92 pkm->pkm_Pr = Pr; 95 rc = Pmapping_iter(Pr, (proc_map_f *)prockludge_mappings_iter, pkm);
|
/illumos-gate/usr/src/cmd/ptools/pcred/ |
H A D | pcred.c | 158 struct ps_prochandle *Pr; local 173 if ((Pr = proc_arg_grab(arg, doset ? PR_ARG_PIDS : PR_ARG_ANY, 181 if (Pcred(Pr, prcred, ngroups_max) == -1) { 183 Prelease(Pr, 0); 189 if (Psetcred(Pr, prcred) != 0) { 191 Prelease(Pr, 0); 194 Prelease(Pr, 0); 198 if (Pstate(Pr) == PS_DEAD) 199 (void) printf("core of %d:\t", (int)Pstatus(Pr)->pr_pid); 201 (void) printf("%d:\t", (int)Pstatus(Pr) [all...] |