Searched refs:ctl_fd (Results 1 – 6 of 6) sorted by relevance
| /freebsd-12.1/contrib/ntp/libntp/ |
| H A D | audio.c | 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() 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() 431 rval = ioctl(ctl_fd, SOUND_MIXER_WRITE_VOLUME, in audio_gain() 465 ioctl(ctl_fd, AUDIO_GETINFO, (char *)&info); in audio_gain() 496 printf("audio_show: ctl_fd %d\n", ctl_fd); in audio_show() 502 ioctl(ctl_fd, AUDIO_GETDEV, &device); in audio_show() [all …]
|
| /freebsd-12.1/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-12.1/contrib/gdb/gdb/ |
| H A D | nto-procfs.c | 52 int ctl_fd; variable 239 if (ctl_fd == -1) in procfs_find_new_threads() 551 ctl_fd = open (path, O_RDWR); in do_attach() 552 if (ctl_fd == -1) in do_attach() 750 nbytes = write (ctl_fd, myaddr, len); in procfs_xfer_memory() 752 nbytes = read (ctl_fd, myaddr, len); in procfs_xfer_memory() 783 close (ctl_fd); in procfs_detach() 784 ctl_fd = -1; in procfs_detach() 896 close (ctl_fd); in procfs_mourn_inferior() 1090 devctl (ctl_fd, DCMD_PROC_STOP, NULL, 0, 0); in procfs_stop() [all …]
|
| H A D | procfs.c | 599 pi->ctl_fd = fd; in open_procinfo_files() 667 pi->ctl_fd = pi->as_fd = pi->status_fd = fd; in open_procinfo_files() 737 if (pi->ctl_fd > 0) in close_procinfo_files() 738 close (pi->ctl_fd); in close_procinfo_files() 745 pi->ctl_fd = pi->as_fd = pi->status_fd = 0; in close_procinfo_files() 1638 if (pi->ctl_fd == 0 && in proc_stop_process() 1745 if (pi->ctl_fd == 0 && in proc_run_process() 2633 if (pi->ctl_fd == 0 && in proc_get_fpregs() 2700 if (pi->ctl_fd == 0 && in proc_set_gregs() 2743 if (pi->ctl_fd == 0 && in proc_set_fpregs() [all …]
|
| /freebsd-12.1/usr.sbin/ctld/ |
| H A D | kernel.c | 82 static int ctl_fd = 0; variable 89 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); in kernel_init() 90 if (ctl_fd < 0 && errno == ENOENT) { in kernel_init() 94 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); in kernel_init() 98 if (ctl_fd < 0) in kernel_init() 737 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); in kernel_lun_add() 796 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); in kernel_lun_modify() 1068 error = ioctl(ctl_fd, CTL_LUN_MAP, &lm); in kernel_port_add() 1079 error = ioctl(ctl_fd, CTL_LUN_MAP, &lm); in kernel_port_add() 1119 error = ioctl(ctl_fd, CTL_LUN_MAP, &lm); in kernel_port_update() [all …]
|
| /freebsd-12.1/crypto/openssh/openbsd-compat/ |
| H A D | port-solaris.c | 144 int r, ctl_fd = -1, stat_fd = -1; in solaris_contract_post_fork_parent() local 174 if ((ctl_fd = open64(ctl_path, O_WRONLY)) < 0) { in solaris_contract_post_fork_parent() 179 if (ct_ctl_abandon(ctl_fd) < 0) { in solaris_contract_post_fork_parent() 184 close(ctl_fd); in solaris_contract_post_fork_parent() 194 if (ctl_fd != -1) in solaris_contract_post_fork_parent() 195 close(ctl_fd); in solaris_contract_post_fork_parent()
|