Searched refs:ctl_fd (Results 1 - 6 of 6) sorted by relevance
/freebsd-10.2-release/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-10.2-release/contrib/ntp/libntp/ |
H A D | audio.c | 67 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-10.2-release/crypto/openssh/openbsd-compat/ |
H A D | port-solaris.c | 146 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-10.2-release/contrib/gdb/gdb/ |
H A D | nto-procfs.c | 52 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 D | procfs.c | 359 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...] |
/freebsd-10.2-release/usr.sbin/ctld/ |
H A D | kernel.c | 78 static int ctl_fd = 0; variable 85 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); 86 if (ctl_fd < 0 && errno == ENOENT) { 90 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); 94 if (ctl_fd < 0) 421 if (ioctl(ctl_fd, CTL_LUN_LIST, &list) == -1) { 470 if (ioctl(ctl_fd, CTL_PORT_LIST, &list) == -1) { 721 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); 760 if (ioctl(ctl_fd, CTL_LUN_REQ, &req) == -1) { 795 if (ioctl(ctl_fd, CTL_LUN_RE [all...] |
Completed in 211 milliseconds