/titanic_41/usr/src/lib/libcmdutils/common/ |
H A D | process_xattrs.c | 87 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 D | Pcore.c | 92 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 D | Pscantext.c | 140 (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 D | Pcontrol.c | 88 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 D | Pidle.c | 60 if ((len = pread64(P->asfd, buf, len, off)) <= 0) in Pread_idle() 185 P->asfd = fd; in Pgrab_file()
|
H A D | Pcontrol.h | 209 int asfd; /* /proc/<pid>/as filedescriptor */ member
|
/titanic_41/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 70 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 D | ucbps.c | 401 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 D | ptrace.c | 70 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 D | powerd.c | 454 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()
|