Searched refs:ctl_fd (Results 1 – 4 of 4) sorted by relevance
/freebsd/contrib/ntp/libntp/ |
H A D | audio.c | 81 static int ctl_fd; /* audio control file descriptor */ variable 275 ctl_fd = open(actl, O_RDWR); in audio_init() 276 if (ctl_fd < 0) { in audio_init() 280 return(ctl_fd); in audio_init() 327 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) in audio_init() 329 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1) in audio_init() 364 rval = ioctl(ctl_fd, AUDIO_SETINFO, (char *)&info); in audio_init() 367 close(ctl_fd); in audio_init() 409 rval = ioctl(ctl_fd, agc, &l); in audio_gain() 411 rval = ioctl(ctl_fd in audio_gain() [all...] |
/freebsd/contrib/ntp/util/ |
H A D | audio-pcm.c | 38 static int ctl_fd; /* audio control file descriptor */ variable 110 ctl_fd = open(actl, O_RDWR); in main() 111 if (ctl_fd < 0) { in main() 114 return(ctl_fd); in main() 118 printf("control: <%s> %d\n", actl, ctl_fd); in main() 120 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) in main() 122 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1) in main() 124 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1) in main()
|
/freebsd/usr.sbin/ctld/ |
H A D | kernel.c | 80 static int ctl_fd = 0; variable 87 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); in kernel_init() 88 if (ctl_fd < 0 && errno == ENOENT) { in kernel_init() 92 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); in kernel_init() 96 if (ctl_fd < 0) in kernel_init() 452 if (ioctl(ctl_fd, CTL_LUN_LIST, &list) == -1) { in conf_new_from_kernel() 501 if (ioctl(ctl_fd, CTL_PORT_LIST, &list) == -1) { in conf_new_from_kernel() 778 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); in kernel_lun_add() 863 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); in kernel_lun_modify() 902 if (ioctl(ctl_fd, CTL_LUN_REQ, &req) == -1) { in kernel_lun_remove() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | port-solaris.c | 143 int r, ctl_fd = -1, stat_fd = -1; in solaris_contract_post_fork_parent() local 173 if ((ctl_fd = open64(ctl_path, O_WRONLY)) < 0) { in solaris_contract_post_fork_parent() 178 if (ct_ctl_abandon(ctl_fd) < 0) { in solaris_contract_post_fork_parent() 183 close(ctl_fd); in solaris_contract_post_fork_parent() 193 if (ctl_fd != -1) in solaris_contract_post_fork_parent() 194 close(ctl_fd); in solaris_contract_post_fork_parent()
|