Searched refs:ctlfd (Results 1 - 12 of 12) sorted by relevance

/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.c497 P->ctlfd = -1;
544 P->ctlfd = fd;
787 P->ctlfd = -1;
791 if (P->ctlfd >= 0)
792 (void) close(P->ctlfd);
799 P->ctlfd = -1;
893 P->ctlfd = fd;
1214 if (P->ctlfd >= 0)
1215 (void) close(P->ctlfd);
1225 P->ctlfd
1425 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; local
1832 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; local
2097 int ctlfd = (P->agentctlfd >= 0) ? P->agentctlfd : P->ctlfd; local
2227 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; local
2239 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; local
2339 execute_bkpt( int ctlfd, const fltset_t *faultset, const sigset_t *sigmask, uintptr_t address, ulong_t saved) argument
2438 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; local
2526 execute_wapt( int ctlfd, const fltset_t *faultset, const sigset_t *sigmask, const prwatch_t *wp) argument
2633 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; local
3393 int ctlfd = L->lwp_ctlfd; local
3429 int ctlfd = L->lwp_ctlfd; local
3629 int ctlfd = L->lwp_ctlfd; local
3686 int ctlfd = L->lwp_ctlfd; local
3698 int ctlfd = L->lwp_ctlfd; local
[all...]
H A DPsyscall.c119 if (write(P->ctlfd, &cmd, sizeof (cmd)) != sizeof (cmd))
237 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; local
278 (void) write(ctlfd, &ctl, sizeof (ctl));
H A DPcontrol.h212 int ctlfd; /* /proc/<pid>/ctl filedescriptor */ member in struct:ps_prochandle
H A DPidle.c187 P->ctlfd = -1;
H A DPlwpregs.c162 if (writev(P->ctlfd, iov, 2) == -1)
H A DPcore.c2324 P->ctlfd = -1;
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c1291 static int ctlfd = -1; variable
1327 if ((ctlfd = open("/proc/self/ctl", O_WRONLY)) < 0 ||
1328 fstat(ctlfd, &ctlstatb) != 0) {
1329 if (ctlfd >= 0)
1330 (void) close(ctlfd);
1331 ctlfd = -1;
1336 (void) fcntl(ctlfd, F_SETFD, 1);
1359 (void) write(ctlfd, &ctl, sizeof (ctl));
1370 if (ctlfd < 0) /* first time */
1372 else if (fstat(ctlfd,
[all...]
/illumos-gate/usr/src/lib/libc/i386/sys/
H A Dptrace.c71 int ctlfd; /* /proc/<pid>/ctl */ member in struct:cstatus
325 if (writev(cp->ctlfd, iov, 2) < 0)
332 if (write(cp->ctlfd, (char *)runctl, 2*sizeof (long))
342 if (write(cp->ctlfd, (char *)&ctl,
353 if (write(cp->ctlfd, (char *)runctl, 3*sizeof (long))
374 (void) write(cp->ctlfd, (char *)&ctl,
498 (cp->ctlfd = Dupfd(fd, cp->ctlfd)) < 0)
521 if (cp->ctlfd > 0)
522 (void) close(cp->ctlfd);
[all...]
/illumos-gate/usr/src/lib/libc/sparc/sys/
H A Dptrace.c71 int ctlfd; /* /proc/<pid>/ctl */ member in struct:cstatus
333 if (writev(cp->ctlfd, iov, 2) < 0)
340 if (write(cp->ctlfd, (char *)runctl, 2*sizeof (long))
350 if (write(cp->ctlfd, (char *)&ctl,
361 if (write(cp->ctlfd, (char *)runctl, 3*sizeof (long))
382 (void) write(cp->ctlfd, (char *)&ctl,
506 (cp->ctlfd = Dupfd(fd, cp->ctlfd)) < 0)
529 if (cp->ctlfd > 0)
530 (void) close(cp->ctlfd);
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fssnap/
H A Dfssnap.c235 int ctlfd; local
301 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) {
306 if (ioctl(ctlfd, _FIOSNAPSHOTCREATE_MULTI, enable) == -1) {
319 if (close(ctlfd) != 0) {
348 int ctlfd; local
352 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1)
356 if (ioctl(ctlfd, _FIOSNAPSHOTDELETE, &disable) == -1) {
364 if (close(ctlfd) != 0) {
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c173 int ctlfd; local
181 if ((ctlfd = open(ctlfile, O_WRONLY)) == -1)
185 if (write(ctlfd, &command, sizeof (long)) == -1) {
186 (void) close(ctlfd);
193 if (write(ctlfd, cmds, sizeof (cmds)) == -1) {
194 (void) close(ctlfd);
198 (void) close(ctlfd);
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses.c463 int efd, ctlfd, statfd; local
540 ctlfd = open64(path, O_WRONLY);
542 (void) ct_ctl_ack(ctlfd, evid);
544 (void) ct_ctl_abandon(ctlfd);
545 (void) close(ctlfd);
555 ctlfd = open64(path, O_WRONLY);
565 (void) ct_ctl_ack(ctlfd, evid);
575 (void) ct_ctl_abandon(ctlfd);
577 (void) close(ctlfd);
732 int ctlfd; local
[all...]

Completed in 87 milliseconds