Searched defs:Pr (Results 1 - 25 of 26) sorted by relevance

12

/osnet-11/usr/src/lib/libproc/common/
H A DPisprocdir.c38 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 Dpr_door.c40 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 Dpr_exit.c36 pr_exit(struct ps_prochandle *Pr, int status) argument
43 if (Pr == NULL) { /* no subject process */
56 error = Psyscall(Pr, &rval, SYS_exit, 1, &argd[0]);
80 pr_lwp_exit(struct ps_prochandle *Pr) argument
85 if (Pr == NULL) { /* no subject process */
90 error = Psyscall(Pr, &rval, SYS_lwp_exit, 0, NULL);
H A Dpr_fcntl.c40 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 Dpr_ioctl.c39 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 Dpr_pbind.c36 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 Dpr_getitimer.c39 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 Dpr_getrctl.c41 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 Dpr_getrlimit.c41 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 Dpr_lseek.c43 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 Dpr_memcntl.c41 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 Dpr_mmap.c39 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 Dpr_open.c38 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 Dpr_rename.c36 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 Dpr_sigaction.c44 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 Dpr_statvfs.c65 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 Dpr_tasksys.c44 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 Dpr_waitid.c45 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 Dproc_set.c39 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 Dpr_stat.c69 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 Dpr_getsockname.c38 get_sock_peer_name(struct ps_prochandle *Pr, argument
74 error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
92 pr_getsockname(struct ps_prochandle *Pr, argument
95 if (Pr == NULL) /* no subject process */
98 return (get_sock_peer_name(Pr, SYS_getsockname, sock, name, namelen));
105 pr_getpeername(struct ps_prochandle *Pr, argument
108 if (Pr == NULL) /* no subject process */
111 return (get_sock_peer_name(Pr, SYS_getpeername, sock, name, namelen));
115 pr_getsockopt(struct ps_prochandle *Pr, argument
123 if (Pr
174 pr_getpeerucred(struct ps_prochandle *Pr, int fd, ucred_t **ucp) argument
[all...]
H A Dpr_meminfo.c40 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) {
H A Dproc_arg.c137 struct ps_prochandle *Pr; local
183 if ((Pr = Pfgrab_core(fd, path == NULL ?
186 (void) memcpy(psp, Ppsinfo(Pr),
188 Prelease(Pr, 0);
191 return (Pr);
218 if ((Pr = Pfgrab_core(fd, path == NULL ? dirname(core) : path,
221 (void) memcpy(psp, Ppsinfo(Pr),
223 Prelease(Pr, 0);
226 return (Pr);
/osnet-11/usr/src/lib/libproject/common/
H A Dsetproject.c189 rctl_set(char *ctl_name, char *val, struct ps_prochandle *Pr, int flags) argument
242 (void) pr_getrctl(Pr, ctl_name, NULL, blk, RCTL_FIRST);
371 if (pr_getrctl(Pr, ctl_name, NULL, rnext, RCTL_FIRST) == 0) {
378 if (pr_setrctl(Pr, ctl_name, NULL,
380 if (pr_getrctl(Pr, ctl_name,
394 if (pr_setrctl(Pr, ctl_name, NULL,
396 if (pr_getrctl(Pr, ctl_name,
409 if (pr_getrctl(Pr, ctl_name, rlast, rnext,
426 if (pr_setprojrctl(Pr, ctl_name, blk, count, flags) == -1)
431 if (pr_setrctl(Pr, ctl_nam
605 setproject_proc(const char *project_name, const char *user_name, int flags, pid_t pid, struct ps_prochandle *Pr, struct project *proj) argument
[all...]
/osnet-11/usr/src/lib/libpctx/common/
H A Dlibpctx.c55 struct ps_prochandle *Pr; member in struct:__pctx
113 if ((pctx->Pr = Pcreate(filename, argv, &err, 0, 0)) == NULL) {
144 if (Psysentry(pctx->Pr, SYS_exit, 1) == -1) {
147 Prelease(pctx->Pr, PRELEASE_KILL);
156 (void) Psetflags(pctx->Pr, PR_KLC);
177 if ((pctx->Pr = Pgrab(pid, 0, &err)) == NULL) {
217 if (Psysentry(pctx->Pr, SYS_exit, 1) == -1) {
220 Prelease(pctx->Pr, PRELEASE_CLEAR);
232 (void) Psetflags(pctx->Pr, PR_RLC);
319 (void) Psysexit(pctx->Pr, SYS_vfor
[all...]

Completed in 116 milliseconds

12