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

/macosx-10.10.1/ntp-92/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)
/macosx-10.10.1/ntp-92/libntp/
H A Daudio.c67 static int ctl_fd; /* audio control file descriptor */ variable
258 ctl_fd = open(actl, O_RDWR);
259 if (ctl_fd < 0) {
263 return(ctl_fd);
310 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
312 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
346 rval = ioctl(ctl_fd, (int)AUDIO_SETINFO, (char *)&info);
349 close(ctl_fd);
389 rval = ioctl(ctl_fd, agc, &l);
392 rval = ioctl(ctl_fd, SOUND_MIXER_WRITE_LIN
[all...]
/macosx-10.10.1/OpenSSH-189/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);

Completed in 95 milliseconds