/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | prb_lmap.c | 106 loadobj.objfd = ioctl(proc_p->procfd, PIOCOPENM, &lmap.l_addr); 132 int procfd; local 136 procfd = proc_p->procfd; 138 retfd = ioctl(procfd, PIOCOPENM, 0);
|
H A D | prb_proc_int.h | 70 int procfd; member in struct:prb_proc_ctl
|
H A D | internal.c | 203 int procfd; local 228 procfd = open(path, O_RDONLY); 229 if (procfd == -1) 240 loadobj.objfd = ioctl(procfd, PIOCOPENM, &(lmap->l_addr)); 254 close(procfd);
|
H A D | prb_proc.c | 89 proc_p->procfd = retval; 138 if (close(proc_p->procfd) == -1) { 168 retval = ioctl(proc_p->procfd, PIOCSTOP, NULL); 188 int procfd; local 196 procfd = proc_p->procfd; 202 retval = ioctl(procfd, PIOCRUN, &prrun); 212 retval = ioctl(procfd, PIOCWSTOP, &prstat); 238 int procfd; local 245 procfd 277 int procfd; local 358 int procfd; local 392 int procfd; local 487 int procfd; local 514 int procfd; local 561 int procfd; local 607 int procfd; local 651 int procfd; local 703 int procfd; local 777 int procfd; local 843 int procfd; local 873 int procfd; local 980 int procfd; local [all...] |
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | procopen.c | 366 register int procfd; local 407 procfd = -1; 410 procfd = 1; 413 procfd = 0; 416 procfd = 2; 437 if (procfd >= 0) 443 if (procfd > 1) 584 if (procfd > 1) 600 else if (procfd >= 0) 602 if (modify(proc, forked, PROC_fd_dup|PROC_FD_CHILD, pio[!!procfd], !!procf [all...] |
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | subr.c | 309 int procfd; local 347 if ((procfd = open(pname, O_RDONLY)) < 0) 349 if (read(procfd, &prinfo, sizeof (prinfo)) != sizeof (prinfo)) { 351 (void) close(procfd); 356 (void) close(procfd); 360 if ((procfd = open(pname, O_RDONLY)) < 0 || 361 read(procfd, &prcred, sizeof (prcred)) != 364 (void) close(procfd); 369 (void) close(procfd);
|
H A D | priocntl.c | 487 int procfd; local 567 if ((procfd = open(pname, O_RDONLY)) < 0) 570 if (read(procfd, &prinfo, sizeof (prinfo)) != 573 (void) close(procfd); 583 (void) close(procfd); 587 if ((procfd = open(pname, O_RDONLY)) < 0 || 588 read(procfd, &prcred, sizeof (prcred)) != 591 if (procfd >= 0) 592 (void) close(procfd); 603 (void) close(procfd); 807 int procfd; local [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | syslog.c | 186 int procfd; local 219 if ((procfd = open(procfile, O_RDONLY)) >= 0) { 220 if (read(procfd, &p, sizeof (psinfo_t)) >= 0) { 225 (void) close(procfd);
|
/illumos-gate/usr/src/lib/libkvm/common/ |
H A D | kvm.c | 353 int procfd; local 362 if ((procfd = open64(procbuf, kd->kvm_openflag)) == -1) 364 rval = prw(procfd, buf, size, addr); 365 (void) close(procfd);
|
/illumos-gate/usr/src/cmd/ptools/ptree/ |
H A D | ptree.c | 187 int procfd; /* filedescriptor for /proc/nnnnn/psinfo */ local 194 if ((procfd = open(pname, O_RDONLY)) == -1) 200 if (read(procfd, &info, sizeof (info)) != sizeof (info)) { 203 (void) close(procfd); 210 (void) close(procfd);
|
/illumos-gate/usr/src/cmd/w/ |
H A D | w.c | 172 int procfd; local 342 if ((procfd = open(pname, O_RDONLY)) < 0) 344 if (read(procfd, &info, sizeof (info)) != sizeof (info)) { 346 (void) close(procfd); 355 (void) close(procfd); 373 procfd = open(pname, O_RDONLY); 378 if (procfd < 0) 381 if (read(procfd, &statinfo, sizeof (statinfo)) 384 (void) close(procfd); 393 (void) close(procfd); [all...] |
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | pgrep.c | 283 int procfd; local 302 if ((procfd = open(procpath, O_RDONLY)) == -1) 305 if ((read(procfd, &ps, sizeof (ps)) == sizeof (psinfo_t)) && 328 (void) close(procfd);
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 178 int procfd; local 323 if ((procfd = open(pname, O_RDONLY)) < 0) 325 if (read(procfd, &info, sizeof (info)) != sizeof (info)) { 327 (void) close(procfd); 336 (void) close(procfd); 354 procfd = open(pname, O_RDONLY); 359 if (procfd < 0) 362 if (read(procfd, &statinfo, sizeof (statinfo)) 365 (void) close(procfd); 374 (void) close(procfd); [all...] |
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | spawn.c | 97 int procfd; local 113 if ((procfd = __open64("/proc/self/fd", O_RDONLY, 0)) < 0) { 127 if ((buflen = getdents64(procfd, dp, DIRBUF)) <= 0) { 128 (void) __close(procfd); 133 /* skip '.', '..' and procfd */ 135 (fd = atoi(dp->d_name)) != procfd &&
|
/illumos-gate/usr/src/cmd/ps/ |
H A D | ps.c | 737 int procfd; local 744 if ((procfd = open(pname, O_RDONLY)) < 0 || 745 read(procfd, (char *)&info, sizeof (info)) < 0 || 751 (void) close(procfd); 933 int procfd; /* filedescriptor for /proc/nnnnn/psinfo */ local 943 if ((procfd = open(pname, O_RDONLY)) == -1) { 950 if (read(procfd, (char *)&info, sizeof (info)) < 0) { 953 (void) close(procfd); 962 (void) close(procfd); 1003 if ((procfd [all...] |
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 5296 int procfd; local 5306 if ((procfd = open(procpath, O_RDONLY)) == -1) 5309 if (read(procfd, &ps, sizeof (ps)) == sizeof (psinfo_t)) { 5312 (void) close(procfd); 5325 (void) close(procfd);
|