Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c87 int asfd = -1; in mv_xattrs() local
169 get_attrdirs(indfd, outdfd, dp->d_name, &asfd, in mv_xattrs()
180 (renameat(asfd, VIEW_READWRITE, atfd, in mv_xattrs()
197 if (asfd != -1) in mv_xattrs()
198 (void) close(asfd); in mv_xattrs()
241 if (asfd != -1) in mv_xattrs()
242 (void) close(asfd); in mv_xattrs()
/titanic_41/usr/src/lib/libproc/common/
H A DPcore.c92 fd = P->asfd; in core_rw()
372 read(P->asfd, &ps32, sizeof (ps32)) != sizeof (ps32)) in note_pstatus()
380 read(P->asfd, &P->status, sizeof (pstatus_t)) != sizeof (pstatus_t)) in note_pstatus()
406 read(P->asfd, &l32, sizeof (l32)) != sizeof (l32)) in note_lwpstatus()
413 read(P->asfd, &lps, sizeof (lps)) != sizeof (lps)) in note_lwpstatus()
483 read(P->asfd, &p32, sizeof (p32)) != sizeof (p32)) in note_linux_psinfo()
489 read(P->asfd, &p64, sizeof (p64)) != sizeof (p64)) in note_linux_psinfo()
605 read(P->asfd, &prs32, sizeof (prs32)) != nbytes) in note_linux_prstatus()
610 read(P->asfd, &prs64, sizeof (prs64)) != nbytes) in note_linux_prstatus()
649 read(P->asfd, &ps32, sizeof (ps32)) != sizeof (ps32)) in note_psinfo()
[all …]
H A DPscantext.c140 (void) lseek(P->asfd, (off_t)offset, 0); in Pscantext()
142 if ((nbytes = read(P->asfd, buf, 2*BLKSIZE)) <= 0) in Pscantext()
166 n2bytes = read(P->asfd, in Pscantext()
H A DPcontrol.c88 return (pread(P->asfd, buf, n, (off_t)addr)); in Pread_live()
96 return (pwrite(P->asfd, buf, n, (off_t)addr)); in Pwrite_live()
486 P->asfd = -1; in Pxcreate()
514 P->asfd = fd; in Pxcreate()
776 P->asfd = -1; in Pgrab()
783 if (P->asfd >= 0) in Pgrab()
784 (void) close(P->asfd); in Pgrab()
790 P->asfd = -1; in Pgrab()
842 P->asfd = fd; in Pgrab()
1206 if (P->asfd >= 0) in Pfree()
[all …]
H A DPidle.c60 if ((len = pread64(P->asfd, buf, len, off)) <= 0) in Pread_idle()
185 P->asfd = fd; in Pgrab_file()
H A DPcontrol.h209 int asfd; /* /proc/<pid>/as filedescriptor */ member
/titanic_41/usr/src/lib/libc/sparc/sys/
H A Dptrace.c70 int asfd; /* /proc/<pid>/as */ member
238 if (pread(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace()
271 if (pwrite(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace()
326 (void) pread(cp->asfd, (char *)&ps->pr_lwp.pr_reg[R_L0], in ptrace()
498 omode = (cp->asfd > 0)? O_RDWR : (O_RDWR|O_EXCL); in OpenProc()
501 (cp->asfd = Dupfd(fd, cp->asfd)) < 0) in OpenProc()
527 if (cp->asfd > 0) in CloseProc()
528 (void) close(cp->asfd); in CloseProc()
533 cp->asfd = 0; in CloseProc()
645 (void) pread(cp->asfd, (char *)&ps->pr_lwp.pr_reg[R_L0], in ProcUpdate()
/titanic_41/usr/src/cmd/ps/
H A Ducbps.c401 int asfd; /* file descriptor for /proc/nnnnn/as */ in ucbmain() local
412 asfd = -1; in ucbmain()
418 asfd = open(asname, O_RDONLY); in ucbmain()
431 if (asfd > 0) in ucbmain()
432 (void) close(asfd); in ucbmain()
476 if (asfd > 0) { in ucbmain()
478 preadargs(asfd, &info, psargs) == -1) || in ucbmain()
479 (eflg && preadenvs(asfd, &info, psargs) == -1)) { in ucbmain()
482 (void) close(asfd); in ucbmain()
523 if (asfd > 0) in ucbmain()
[all …]
/titanic_41/usr/src/lib/libc/i386/sys/
H A Dptrace.c70 int asfd; /* /proc/<pid>/as */ member
238 if (pread(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace()
267 if (pwrite(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace()
490 omode = (cp->asfd > 0)? O_RDWR : (O_RDWR|O_EXCL); in OpenProc()
493 (cp->asfd = Dupfd(fd, cp->asfd)) < 0) in OpenProc()
519 if (cp->asfd > 0) in CloseProc()
520 (void) close(cp->asfd); in CloseProc()
525 cp->asfd = 0; in CloseProc()
/titanic_41/usr/src/cmd/power/
H A Dpowerd.c454 int asfd; in read_cpr_config() local
456 if ((asfd = open(CPR_CONFIG, O_RDONLY)) < 0) { in read_cpr_config()
461 if (read(asfd, (void *)&asinfo, sizeof (asinfo)) != sizeof (asinfo)) { in read_cpr_config()
463 (void) close(asfd); in read_cpr_config()
467 (void) close(asfd); in read_cpr_config()