ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.h
(Generate patch)

Comparing rxvt-unicode/src/init.h (file contents):
Revision 1.7 by root, Sun Aug 15 02:17:32 2004 UTC vs.
Revision 1.8 by root, Sun Jan 2 10:55:43 2005 UTC

31#ifdef HAVE_TERMIOS_H 31#ifdef HAVE_TERMIOS_H
32/* termios interface */ 32/* termios interface */
33# ifdef TCSANOW /* POSIX */ 33# ifdef TCSANOW /* POSIX */
34# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) 34# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios)
35# define SET_TERMIOS(fd,tios) \ 35# define SET_TERMIOS(fd,tios) \
36 cfsetospeed (tios, BAUDRATE), \ 36 cfsetospeed (tios, BAUDRATE), \
37 cfsetispeed (tios, BAUDRATE), \ 37 cfsetispeed (tios, BAUDRATE), \
38 tcsetattr (fd, TCSANOW, tios) 38 tcsetattr (fd, TCSANOW, tios)
39# else 39# else
40# ifdef TIOCSETA 40# ifdef TIOCSETA
41# define GET_TERMIOS(fd,tios) ioctl (fd, TIOCGETA, tios) 41# define GET_TERMIOS(fd,tios) ioctl (fd, TIOCGETA, tios)
42# define SET_TERMIOS(fd,tios) \ 42# define SET_TERMIOS(fd,tios) \
43 tios->c_cflag |= BAUDRATE, \ 43 tios->c_cflag |= BAUDRATE, \
44 ioctl (fd, TIOCSETA, tios) 44 ioctl (fd, TIOCSETA, tios)
45# else 45# else
46# define GET_TERMIOS(fd,tios) ioctl (fd, TCGETS, tios) 46# define GET_TERMIOS(fd,tios) ioctl (fd, TCGETS, tios)
47# define SET_TERMIOS(fd,tios) \ 47# define SET_TERMIOS(fd,tios) \
48 tios->c_cflag |= BAUDRATE, \ 48 tios->c_cflag |= BAUDRATE, \
49 ioctl (fd, TCSETS, tios) 49 ioctl (fd, TCSETS, tios)
50# endif 50# endif
51# endif 51# endif
52# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios) 52# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios)
53#else 53#else
54/* sgtty interface */ 54/* sgtty interface */
55 55
56# define SET_TTYMODE(fd,tt) \ 56# define SET_TTYMODE(fd,tt) \
57 tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \ 57 tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \
58 ioctl (fd, TIOCSETP, & (tt->sg)), \ 58 ioctl (fd, TIOCSETP, & (tt->sg)), \
59 ioctl (fd, TIOCSETC, & (tt->tc)), \ 59 ioctl (fd, TIOCSETC, & (tt->tc)), \
60 ioctl (fd, TIOCSLTC, & (tt->lc)), \ 60 ioctl (fd, TIOCSLTC, & (tt->lc)), \
61 ioctl (fd, TIOCSETD, & (tt->line)), \ 61 ioctl (fd, TIOCSETD, & (tt->line)), \
62 ioctl (fd, TIOCLSET, & (tt->local)) 62 ioctl (fd, TIOCLSET, & (tt->local))
63#endif /* HAVE_TERMIOS_H */ 63#endif /* HAVE_TERMIOS_H */
64 64
65/* use the fastest baud-rate */ 65/* use the fastest baud-rate */
66#ifdef B38400 66#ifdef B38400
67# define BAUDRATE B38400 67# define BAUDRATE B38400

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines