/titanic_44/usr/src/lib/libproc/common/ |
H A D | Pcontrol.c | 487 P->ctlfd = -1; in Pxcreate() 534 P->ctlfd = fd; in Pxcreate() 777 P->ctlfd = -1; in Pgrab() 781 if (P->ctlfd >= 0) in Pgrab() 782 (void) close(P->ctlfd); in Pgrab() 789 P->ctlfd = -1; in Pgrab() 883 P->ctlfd = fd; in Pgrab() 1204 if (P->ctlfd >= 0) in Pfree() 1205 (void) close(P->ctlfd); in Pfree() 1215 P->ctlfd = -1; in Pfree() [all …]
|
H A D | Psyscall.c | 119 if (write(P->ctlfd, &cmd, sizeof (cmd)) != sizeof (cmd)) in Pcreate_agent() 237 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; in execute() local 278 (void) write(ctlfd, &ctl, sizeof (ctl)); in execute()
|
H A D | Pcontrol.h | 210 int ctlfd; /* /proc/<pid>/ctl filedescriptor */ member
|
H A D | Pidle.c | 186 P->ctlfd = -1; in Pgrab_file()
|
H A D | Plwpregs.c | 162 if (writev(P->ctlfd, iov, 2) == -1) in setlwpregs()
|
H A D | Pcore.c | 2273 P->ctlfd = -1; in Pfgrab_core()
|
/titanic_44/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 1291 static int ctlfd = -1; variable 1327 if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 || in init_watch() 1328 fstat(ctlfd, &ctlstatb) != 0) { in init_watch() 1329 if (ctlfd >= 0) in init_watch() 1330 (void) close(ctlfd); in init_watch() 1331 ctlfd = -1; in init_watch() 1336 (void) fcntl(ctlfd, F_SETFD, 1); in init_watch() 1359 (void) write(ctlfd, &ctl, sizeof (ctl)); in init_watch() 1370 if (ctlfd < 0) /* first time */ in nowatch() 1372 else if (fstat(ctlfd, &statb) != 0 || in nowatch() [all …]
|
/titanic_44/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 71 int ctlfd; /* /proc/<pid>/ctl */ member 333 if (writev(cp->ctlfd, iov, 2) < 0) in ptrace() 340 if (write(cp->ctlfd, (char *)runctl, 2*sizeof (long)) in ptrace() 350 if (write(cp->ctlfd, (char *)&ctl, in ptrace() 361 if (write(cp->ctlfd, (char *)runctl, 3*sizeof (long)) in ptrace() 382 (void) write(cp->ctlfd, (char *)&ctl, in ptrace() 506 (cp->ctlfd = Dupfd(fd, cp->ctlfd)) < 0) in OpenProc() 529 if (cp->ctlfd > 0) in CloseProc() 530 (void) close(cp->ctlfd); in CloseProc() 534 cp->ctlfd = 0; in CloseProc() [all …]
|
/titanic_44/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 71 int ctlfd; /* /proc/<pid>/ctl */ member 325 if (writev(cp->ctlfd, iov, 2) < 0) in ptrace() 332 if (write(cp->ctlfd, (char *)runctl, 2*sizeof (long)) in ptrace() 342 if (write(cp->ctlfd, (char *)&ctl, in ptrace() 353 if (write(cp->ctlfd, (char *)runctl, 3*sizeof (long)) in ptrace() 374 (void) write(cp->ctlfd, (char *)&ctl, in ptrace() 498 (cp->ctlfd = Dupfd(fd, cp->ctlfd)) < 0) in OpenProc() 521 if (cp->ctlfd > 0) in CloseProc() 522 (void) close(cp->ctlfd); in CloseProc() 526 cp->ctlfd = 0; in CloseProc() [all …]
|
/titanic_44/usr/src/cmd/fs.d/ufs/fssnap/ |
H A D | fssnap.c | 235 int ctlfd; in create_snap() local 301 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) { in create_snap() 306 if (ioctl(ctlfd, _FIOSNAPSHOTCREATE_MULTI, enable) == -1) { in create_snap() 319 if (close(ctlfd) != 0) { in create_snap() 348 int ctlfd; in delete_snap() local 352 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) in delete_snap() 356 if (ioctl(ctlfd, _FIOSNAPSHOTDELETE, &disable) == -1) { in delete_snap() 364 if (close(ctlfd) != 0) { in delete_snap()
|
/titanic_44/usr/src/cmd/halt/ |
H A D | halt.c | 172 int ctlfd; in direct_init() local 180 if ((ctlfd = open(ctlfile, O_WRONLY)) == -1) in direct_init() 184 if (write(ctlfd, &command, sizeof (long)) == -1) { in direct_init() 185 (void) close(ctlfd); in direct_init() 192 if (write(ctlfd, cmds, sizeof (cmds)) == -1) { in direct_init() 193 (void) close(ctlfd); in direct_init() 197 (void) close(ctlfd); in direct_init()
|
/titanic_44/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 463 int efd, ctlfd, statfd; in ses_contract_thread() local 540 ctlfd = open64(path, O_WRONLY); in ses_contract_thread() 542 (void) ct_ctl_ack(ctlfd, evid); in ses_contract_thread() 544 (void) ct_ctl_abandon(ctlfd); in ses_contract_thread() 545 (void) close(ctlfd); in ses_contract_thread() 555 ctlfd = open64(path, O_WRONLY); in ses_contract_thread() 565 (void) ct_ctl_ack(ctlfd, evid); in ses_contract_thread() 575 (void) ct_ctl_abandon(ctlfd); in ses_contract_thread() 577 (void) close(ctlfd); in ses_contract_thread() 732 int ctlfd; in ses_target_free() local [all …]
|