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

/netbsd-current/external/bsd/ntp/dist/util/
H A Daudio-pcm.c40 static int ctl_fd; /* audio control file descriptor */ variable
112 ctl_fd = open(actl, O_RDWR);
113 if (ctl_fd < 0) {
116 return(ctl_fd);
120 printf("control: <%s> %d\n", actl, ctl_fd);
122 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
124 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
126 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1)
/netbsd-current/external/bsd/ntp/dist/libntp/
H A Daudio.c83 static int ctl_fd; /* audio control file descriptor */ variable
277 ctl_fd = open(actl, O_RDWR);
278 if (ctl_fd < 0) {
282 return(ctl_fd);
329 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
331 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
366 rval = ioctl(ctl_fd, AUDIO_SETINFO, (char *)&info);
369 close(ctl_fd);
411 rval = ioctl(ctl_fd, agc, &l);
413 rval = ioctl(ctl_fd
[all...]
/netbsd-current/usr.sbin/apmd/
H A Dapmd.c71 static enum apm_state handle_client(int sock_fd, int ctl_fd);
72 static void suspend(int ctl_fd);
73 static void stand_by(int ctl_fd);
74 static void resume(int ctl_fd);
179 handle_client(int sock_fd, int ctl_fd) argument
203 power_status(ctl_fd, 0, &reply.batterystate);
267 suspend(int ctl_fd) argument
275 ioctl(ctl_fd, APM_IOC_SUSPEND, 0);
279 stand_by(int ctl_fd) argument
287 ioctl(ctl_fd, APM_IOC_STANDB
293 resume(int ctl_fd) argument
302 int ctl_fd, sock_fd, ch, ready; local
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gdb/
H A Dnto-procfs.c52 int ctl_fd; variable
295 devctl (ctl_fd, DCMD_PROC_CURTHREAD, &tid, sizeof (tid), 0);
315 if ((err = devctl (ctl_fd, DCMD_PROC_TIDSTATUS,
356 if (devctl (ctl_fd, DCMD_PROC_INFO, &pidinfo,
368 if (devctl (ctl_fd, DCMD_PROC_THREADCTL, &tctl, sizeof (tctl), NULL) != EOK)
391 if (ctl_fd == -1)
403 && (devctl (ctl_fd, DCMD_PROC_TIDSTATUS, &status, sizeof (status), 0)
541 err = devctl (ctl_fd, DCMD_PROC_MAPINFO, NULL, 0, &num);
555 err = devctl (ctl_fd, DCMD_PROC_MAPINFO, mapinfo_p, num
578 err = devctl (ctl_fd, DCMD_PROC_MAPDEBU
[all...]
H A Dprocfs.c235 int ctl_fd; /* File descriptor for /proc control file */ member in struct:procinfo
409 pi->ctl_fd = fd;
486 if (pi->ctl_fd > 0)
487 close (pi->ctl_fd);
492 pi->ctl_fd = pi->as_fd = pi->status_fd = 0;
787 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
867 if (pi->ctl_fd == 0 && open_procinfo_files (pi, FD_CTL) == 0)
873 win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd));
890 with one that makes sure the ctl_fd is open. */
899 win = (write (pi->ctl_fd, (cha
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/
H A Dnto-procfs.c52 int ctl_fd; variable
295 devctl (ctl_fd, DCMD_PROC_CURTHREAD, &tid, sizeof (tid), 0);
315 if ((err = devctl (ctl_fd, DCMD_PROC_TIDSTATUS,
356 if (devctl (ctl_fd, DCMD_PROC_INFO, &pidinfo,
368 if (devctl (ctl_fd, DCMD_PROC_THREADCTL, &tctl, sizeof (tctl), NULL) != EOK)
391 if (ctl_fd == -1)
403 && (devctl (ctl_fd, DCMD_PROC_TIDSTATUS, &status, sizeof (status), 0)
541 err = devctl (ctl_fd, DCMD_PROC_MAPINFO, NULL, 0, &num);
555 err = devctl (ctl_fd, DCMD_PROC_MAPINFO, mapinfo_p, num
578 err = devctl (ctl_fd, DCMD_PROC_MAPDEBU
[all...]
H A Dprocfs.c236 int ctl_fd; /* File descriptor for /proc control file */ member in struct:procinfo
410 pi->ctl_fd = fd;
487 if (pi->ctl_fd > 0)
488 close (pi->ctl_fd);
493 pi->ctl_fd = pi->as_fd = pi->status_fd = 0;
780 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
860 if (pi->ctl_fd == 0 && open_procinfo_files (pi, FD_CTL) == 0)
866 win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd));
883 with one that makes sure the ctl_fd is open. */
892 win = (write (pi->ctl_fd, (cha
[all...]

Completed in 224 milliseconds