Searched refs:asfd (Results 1 - 10 of 10) sorted by relevance

/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c87 int asfd = -1; local
169 get_attrdirs(indfd, outdfd, dp->d_name, &asfd,
180 (renameat(asfd, VIEW_READWRITE, atfd,
197 if (asfd != -1)
198 (void) close(asfd);
240 if (asfd != -1)
241 (void) close(asfd);
/illumos-gate/usr/src/lib/libproc/common/
H A DPscantext.c140 (void) lseek(P->asfd, (off_t)offset, 0);
142 if ((nbytes = read(P->asfd, buf, 2*BLKSIZE)) <= 0)
166 n2bytes = read(P->asfd,
H A DPcore.c92 fd = P->asfd;
380 * seek pointer on P->asfd positioned appropriately. We populate a table
394 read(P->asfd, &ps32, sizeof (ps32)) != sizeof (ps32))
402 read(P->asfd, &P->status, sizeof (pstatus_t)) != sizeof (pstatus_t))
428 read(P->asfd, &l32, sizeof (l32)) != sizeof (l32))
435 read(P->asfd, &lps, sizeof (lps)) != sizeof (lps))
505 read(P->asfd, &p32, sizeof (p32)) != sizeof (p32))
511 read(P->asfd, &p64, sizeof (p64)) != sizeof (p64))
627 read(P->asfd, &prs32, sizeof (prs32)) != nbytes)
632 read(P->asfd,
[all...]
H A DPidle.c60 if ((len = pread64(P->asfd, buf, len, off)) <= 0)
186 P->asfd = fd;
H A DPcontrol.c90 return (pread(P->asfd, buf, n, (off_t)addr));
98 return (pwrite(P->asfd, buf, n, (off_t)addr));
496 P->asfd = -1;
524 P->asfd = fd;
786 P->asfd = -1;
793 if (P->asfd >= 0)
794 (void) close(P->asfd);
800 P->asfd = -1;
852 P->asfd = fd;
1216 if (P->asfd >
[all...]
H A DPcontrol.h211 int asfd; /* /proc/<pid>/as filedescriptor */ member in struct:ps_prochandle
/illumos-gate/usr/src/lib/libc/sparc/sys/
H A Dptrace.c70 int asfd; /* /proc/<pid>/as */ member in struct:cstatus
238 if (pread(cp->asfd, (char *)&data, sizeof (data), (off_t)addr)
271 if (pwrite(cp->asfd, (char *)&data, sizeof (data), (off_t)addr)
326 (void) pread(cp->asfd, (char *)&ps->pr_lwp.pr_reg[R_L0],
498 omode = (cp->asfd > 0)? O_RDWR : (O_RDWR|O_EXCL);
501 (cp->asfd = Dupfd(fd, cp->asfd)) < 0)
527 if (cp->asfd > 0)
528 (void) close(cp->asfd);
533 cp->asfd
[all...]
/illumos-gate/usr/src/cmd/ps/
H A Ducbps.c401 int asfd; /* file descriptor for /proc/nnnnn/as */ local
412 asfd = -1;
418 asfd = open(asname, O_RDONLY);
431 if (asfd > 0)
432 (void) close(asfd);
476 if (asfd > 0) {
478 preadargs(asfd, &info, psargs) == -1) ||
479 (eflg && preadenvs(asfd, &info, psargs) == -1)) {
482 (void) close(asfd);
523 if (asfd >
[all...]
/illumos-gate/usr/src/lib/libc/i386/sys/
H A Dptrace.c70 int asfd; /* /proc/<pid>/as */ member in struct:cstatus
238 if (pread(cp->asfd, (char *)&data, sizeof (data), (off_t)addr)
267 if (pwrite(cp->asfd, (char *)&data, sizeof (data), (off_t)addr)
490 omode = (cp->asfd > 0)? O_RDWR : (O_RDWR|O_EXCL);
493 (cp->asfd = Dupfd(fd, cp->asfd)) < 0)
519 if (cp->asfd > 0)
520 (void) close(cp->asfd);
525 cp->asfd = 0;
/illumos-gate/usr/src/cmd/power/
H A Dpowerd.c463 int asfd; local
465 if ((asfd = open(CPR_CONFIG, O_RDONLY)) < 0) {
470 if (read(asfd, (void *)&asinfo, sizeof (asinfo)) != sizeof (asinfo)) {
472 (void) close(asfd);
476 (void) close(asfd);

Completed in 122 milliseconds