/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pcontrol.c | 555 P->ctlfd = -1; in Pxcreate() 603 P->ctlfd = fd; in Pxcreate() 845 P->ctlfd = -1; in Pgrab() 849 if (P->ctlfd >= 0) in Pgrab() 850 (void) close(P->ctlfd); in Pgrab() 857 P->ctlfd = -1; in Pgrab() 952 P->ctlfd = fd; in Pgrab() 1274 if (P->ctlfd >= 0) in Pfree() 1275 (void) close(P->ctlfd); in Pfree() 1285 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 | 221 int ctlfd; /* /proc/<pid>/ctl filedescriptor */ member
|
H A D | Pidle.c | 187 P->ctlfd = -1; in Pgrab_file()
|
H A D | Plwpregs.c | 274 fd = P->ctlfd; in setlwpregs_proc()
|
H A D | Pcore.c | 2426 P->ctlfd = -1;
|
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 1289 static int ctlfd = -1; variable 1325 if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 || in init_watch() 1326 fstat(ctlfd, &ctlstatb) != 0) { in init_watch() 1327 if (ctlfd >= 0) in init_watch() 1328 (void) close(ctlfd); in init_watch() 1329 ctlfd = -1; in init_watch() 1334 (void) fcntl(ctlfd, F_SETFD, 1); in init_watch() 1357 (void) write(ctlfd, &ctl, sizeof (ctl)); in init_watch() 1368 if (ctlfd < 0) /* first time */ in nowatch() 1370 else if (fstat(ctlfd, &statb) != 0 || in nowatch() [all …]
|
/illumos-gate/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 69 int ctlfd; /* /proc/<pid>/ctl */ member 323 if (writev(cp->ctlfd, iov, 2) < 0) in ptrace() 330 if (write(cp->ctlfd, (char *)runctl, 2*sizeof (long)) in ptrace() 340 if (write(cp->ctlfd, (char *)&ctl, in ptrace() 351 if (write(cp->ctlfd, (char *)runctl, 3*sizeof (long)) in ptrace() 372 (void) write(cp->ctlfd, (char *)&ctl, in ptrace() 496 (cp->ctlfd = Dupfd(fd, cp->ctlfd)) < 0) in OpenProc() 519 if (cp->ctlfd > 0) in CloseProc() 520 (void) close(cp->ctlfd); in CloseProc() 524 cp->ctlfd = 0; in CloseProc() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fssnap/ |
H A D | fssnap.c | 233 int ctlfd; in create_snap() local 299 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) { in create_snap() 304 if (ioctl(ctlfd, _FIOSNAPSHOTCREATE_MULTI, enable) == -1) { in create_snap() 317 if (close(ctlfd) != 0) { in create_snap() 346 int ctlfd; in delete_snap() local 350 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) in delete_snap() 354 if (ioctl(ctlfd, _FIOSNAPSHOTDELETE, &disable) == -1) { in delete_snap() 362 if (close(ctlfd) != 0) { in delete_snap()
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 174 int ctlfd; in direct_init() local 182 if ((ctlfd = open(ctlfile, O_WRONLY)) == -1) in direct_init() 186 if (write(ctlfd, &command, sizeof (long)) == -1) { in direct_init() 187 (void) close(ctlfd); in direct_init() 194 if (write(ctlfd, cmds, sizeof (cmds)) == -1) { in direct_init() 195 (void) close(ctlfd); in direct_init() 199 (void) close(ctlfd); in direct_init()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 510 int efd, ctlfd, statfd; in ses_contract_thread() local 587 ctlfd = open64(path, O_WRONLY); in ses_contract_thread() 589 (void) ct_ctl_ack(ctlfd, evid); in ses_contract_thread() 591 (void) ct_ctl_abandon(ctlfd); in ses_contract_thread() 592 (void) close(ctlfd); in ses_contract_thread() 602 ctlfd = open64(path, O_WRONLY); in ses_contract_thread() 612 (void) ct_ctl_ack(ctlfd, evid); in ses_contract_thread() 622 (void) ct_ctl_abandon(ctlfd); in ses_contract_thread() 624 (void) close(ctlfd); in ses_contract_thread() 779 int ctlfd; in ses_target_free() local [all …]
|