1 /* $NetBSD: ntp_tty.h,v 1.2 2003/12/04 16:23:36 drochner Exp $ */
4 * ntp_tty.h - header file for serial lines handling
10 #if defined(HAVE_BSD_TTYS)
12 #define TTY struct sgttyb
13 #endif /* HAVE_BSD_TTYS */
15 #if defined(HAVE_SYSV_TTYS)
17 #define TTY struct termio
19 #define tcsetattr(fd, cmd, arg) ioctl(fd, cmd, arg)
22 #define TCSANOW TCSETA
34 #define tcflush(fd, arg) ioctl(fd, TCFLSH, arg)
36 #endif /* HAVE_SYSV_TTYS */
38 #if defined(HAVE_TERMIOS)
39 # ifdef TERMIOS_NEEDS__SVID3
43 # ifdef TERMIOS_NEEDS__SVID3
46 #define TTY struct termios
49 #if defined(HAVE_SYS_MODEM_H)
50 #include <sys/modem.h>
53 #if !defined(SYSV_TTYS) && !defined(STREAM) & !defined(BSD_TTYS)
55 #endif /* SYSV_TTYS STREAM BSD_TTYS */
57 #endif /* NTP_TTY_H */