Searched refs:ctl_fd (Results 1 - 6 of 6) sorted by relevance

/freebsd-11-stable/contrib/ntp/util/
H A Daudio-pcm.c38 static int ctl_fd; /* audio control file descriptor */ variable
110 ctl_fd = open(actl, O_RDWR);
111 if (ctl_fd < 0) {
114 return(ctl_fd);
118 printf("control: <%s> %d\n", actl, ctl_fd);
120 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
122 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
124 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1)
/freebsd-11-stable/contrib/ntp/libntp/
H A Daudio.c81 static int ctl_fd; /* audio control file descriptor */ variable
275 ctl_fd = open(actl, O_RDWR);
276 if (ctl_fd < 0) {
280 return(ctl_fd);
327 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
329 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
364 rval = ioctl(ctl_fd, AUDIO_SETINFO, (char *)&info);
367 close(ctl_fd);
409 rval = ioctl(ctl_fd, agc, &l);
411 rval = ioctl(ctl_fd
[all...]
/freebsd-11-stable/contrib/gdb/gdb/
H A Dnto-procfs.c52 int ctl_fd; variable
217 devctl (ctl_fd, DCMD_PROC_CURTHREAD, &tid, sizeof (tid), 0);
227 if (devctl (ctl_fd, DCMD_PROC_CURTHREAD, &tid, sizeof (tid), 0) == EOK)
239 if (ctl_fd == -1)
246 if (devctl (ctl_fd, DCMD_PROC_TIDSTATUS, &status, sizeof (status), 0)
375 err = devctl (ctl_fd, DCMD_PROC_MAPINFO, NULL, 0, &num);
388 err = devctl (ctl_fd, DCMD_PROC_MAPINFO, mapinfo_p, num
411 err = devctl (ctl_fd, DCMD_PROC_MAPDEBUG, &map, sizeof (map), 0);
434 devctl (ctl_fd, DCMD_PROC_MAPDEBUG, &map, sizeof (map), 0);
551 ctl_fd
[all...]
H A Dprocfs.c359 int ctl_fd; /* File descriptor for /proc control file */ member in struct:procinfo
562 * three fields of the procinfo struct (ctl_fd, status_fd, and
599 pi->ctl_fd = fd;
660 if ((fd = ioctl (process->ctl_fd, PIOCOPENLWP, &lwpid)) <= 0)
667 pi->ctl_fd = pi->as_fd = pi->status_fd = fd;
737 if (pi->ctl_fd > 0)
738 close (pi->ctl_fd);
745 pi->ctl_fd = pi->as_fd = pi->status_fd = 0;
1426 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
1432 win = (ioctl (pi->ctl_fd, PIOCSE
[all...]
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dport-solaris.c144 int r, ctl_fd = -1, stat_fd = -1; local
174 if ((ctl_fd = open64(ctl_path, O_WRONLY)) < 0) {
179 if (ct_ctl_abandon(ctl_fd) < 0) {
184 close(ctl_fd);
194 if (ctl_fd != -1)
195 close(ctl_fd);
/freebsd-11-stable/usr.sbin/ctld/
H A Dkernel.c78 static int ctl_fd = 0; variable
85 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR);
86 if (ctl_fd < 0 && errno == ENOENT) {
90 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR);
94 if (ctl_fd < 0)
436 if (ioctl(ctl_fd, CTL_LUN_LIST, &list) == -1) {
485 if (ioctl(ctl_fd, CTL_PORT_LIST, &list) == -1) {
748 error = ioctl(ctl_fd, CTL_LUN_REQ, &req);
810 error = ioctl(ctl_fd, CTL_LUN_REQ, &req);
847 if (ioctl(ctl_fd, CTL_LUN_RE
[all...]

Completed in 123 milliseconds