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.10 by ayin, Wed Jan 18 08:43:48 2006 UTC vs.
Revision 1.11 by root, Sat Jan 20 00:45:30 2007 UTC

17# include <grp.h> 17# include <grp.h>
18#endif 18#endif
19 19
20/* ways to deal with getting/setting termios structure */ 20/* ways to deal with getting/setting termios structure */
21 21
22#ifdef HAVE_TERMIOS_H
23/* termios interface */ 22/* termios interface */
24# ifdef TCSANOW /* POSIX */ 23# ifdef TCSANOW /* POSIX */
25# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) 24# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios)
26# define SET_TERMIOS(fd,tios) \ 25# define SET_TERMIOS(fd,tios) \
27 cfsetospeed (tios, BAUDRATE), \ 26 cfsetospeed (tios, BAUDRATE), \
39 tios->c_cflag |= BAUDRATE, \ 38 tios->c_cflag |= BAUDRATE, \
40 ioctl (fd, TCSETS, tios) 39 ioctl (fd, TCSETS, tios)
41# endif 40# endif
42# endif 41# endif
43# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios) 42# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios)
44#else
45/* sgtty interface */
46
47# define SET_TTYMODE(fd,tt) \
48 tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \
49 ioctl (fd, TIOCSETP, & (tt->sg)), \
50 ioctl (fd, TIOCSETC, & (tt->tc)), \
51 ioctl (fd, TIOCSLTC, & (tt->lc)), \
52 ioctl (fd, TIOCSETD, & (tt->line)), \
53 ioctl (fd, TIOCLSET, & (tt->local))
54#endif /* HAVE_TERMIOS_H */
55 43
56/* use the fastest baud-rate */ 44/* use the fastest baud-rate */
57#ifdef B38400 45#ifdef B38400
58# define BAUDRATE B38400 46# define BAUDRATE B38400
59#else 47#else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines