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

/freebsd-9.3-release/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-9.3-release/contrib/ntp/libntp/
H A Daudio.c67 static int ctl_fd; /* audio control file descriptor */ variable
261 ctl_fd = open(actl, O_RDWR);
262 if (ctl_fd < 0) {
266 return(ctl_fd);
313 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
315 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
350 rval = ioctl(ctl_fd, (int)AUDIO_SETINFO, (char *)&info);
353 close(ctl_fd);
395 rval = ioctl(ctl_fd, agc, &l);
397 rval = ioctl(ctl_fd
[all...]
/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dport-solaris.c146 int r, ctl_fd = -1, stat_fd = -1; local
176 if ((ctl_fd = open64(ctl_path, O_WRONLY)) < 0) {
181 if (ct_ctl_abandon(ctl_fd) < 0) {
186 close(ctl_fd);
196 if (ctl_fd != -1)
197 close(ctl_fd);
/freebsd-9.3-release/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...]

Completed in 89 milliseconds