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.9 by root, Tue Jan 17 11:02:10 2006 UTC vs.
Revision 1.11 by root, Sat Jan 20 00:45:30 2007 UTC

11# ifdef HAVE_SETLOCALE 11# ifdef HAVE_SETLOCALE
12# include <clocale> 12# include <clocale>
13# endif 13# endif
14#endif /* HAVE_XLOCALE */ 14#endif /* HAVE_XLOCALE */
15 15
16#if defined(PTYS_ARE_PTMX) && !defined(__CYGWIN32__)
17# include <sys/resource.h> /* for struct rlimit */
18# define _NEW_TTY_CTRL /* to get proper defines in <termios.h> */
19#endif
20
21#ifdef TTY_GID_SUPPORT 16#ifdef TTY_GID_SUPPORT
22# include <grp.h> 17# include <grp.h>
23#endif 18#endif
24 19
25/* ways to deal with getting/setting termios structure */ 20/* ways to deal with getting/setting termios structure */
26 21
27#ifdef HAVE_TERMIOS_H
28/* termios interface */ 22/* termios interface */
29# ifdef TCSANOW /* POSIX */ 23# ifdef TCSANOW /* POSIX */
30# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) 24# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios)
31# define SET_TERMIOS(fd,tios) \ 25# define SET_TERMIOS(fd,tios) \
32 cfsetospeed (tios, BAUDRATE), \ 26 cfsetospeed (tios, BAUDRATE), \
44 tios->c_cflag |= BAUDRATE, \ 38 tios->c_cflag |= BAUDRATE, \
45 ioctl (fd, TCSETS, tios) 39 ioctl (fd, TCSETS, tios)
46# endif 40# endif
47# endif 41# endif
48# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios) 42# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios)
49#else
50/* sgtty interface */
51
52# define SET_TTYMODE(fd,tt) \
53 tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \
54 ioctl (fd, TIOCSETP, & (tt->sg)), \
55 ioctl (fd, TIOCSETC, & (tt->tc)), \
56 ioctl (fd, TIOCSLTC, & (tt->lc)), \
57 ioctl (fd, TIOCSETD, & (tt->line)), \
58 ioctl (fd, TIOCLSET, & (tt->local))
59#endif /* HAVE_TERMIOS_H */
60 43
61/* use the fastest baud-rate */ 44/* use the fastest baud-rate */
62#ifdef B38400 45#ifdef B38400
63# define BAUDRATE B38400 46# define BAUDRATE B38400
64#else 47#else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines