Searched refs:ctl_fd (Results 1 - 4 of 4) sorted by relevance
/freebsd-13-stable/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); 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-13-stable/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); 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-13-stable/crypto/openssh/openbsd-compat/ |
H A D | port-solaris.c | 144 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-13-stable/usr.sbin/ctld/ |
H A D | kernel.c | 83 static int ctl_fd = 0; variable 90 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); 91 if (ctl_fd < 0 && errno == ENOENT) { 95 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); 99 if (ctl_fd < 0) 455 if (ioctl(ctl_fd, CTL_LUN_LIST, &list) == -1) { 504 if (ioctl(ctl_fd, CTL_PORT_LIST, &list) == -1) { 752 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); 835 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); 873 if (ioctl(ctl_fd, CTL_LUN_RE [all...] |
Completed in 106 milliseconds