--- rxvt-unicode/src/init.h 2003/11/24 17:28:08 1.1 +++ rxvt-unicode/src/init.h 2006/01/17 11:02:10 1.9 @@ -1,9 +1,5 @@ -/* - * $Id: init.h,v 1.1 2003/11/24 17:28:08 pcg Exp $ - */ - -#ifndef _INIT_H_ -#define _INIT_H_ +#ifndef INIT_H_ +#define INIT_H_ #undef CERASE /* TODO */ #define CERASE '\010' /* ^H */ @@ -13,7 +9,7 @@ # include #else # ifdef HAVE_SETLOCALE -# include +# include # endif #endif /* HAVE_XLOCALE */ @@ -22,10 +18,6 @@ # define _NEW_TTY_CTRL /* to get proper defines in */ #endif -#ifdef __QNX__ /* autoconf someday */ -# include -#endif - #ifdef TTY_GID_SUPPORT # include #endif @@ -37,20 +29,20 @@ # ifdef TCSANOW /* POSIX */ # define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) # define SET_TERMIOS(fd,tios) \ - cfsetospeed (tios, BAUDRATE), \ - cfsetispeed (tios, BAUDRATE), \ - tcsetattr (fd, TCSANOW, tios) + cfsetospeed (tios, BAUDRATE), \ + cfsetispeed (tios, BAUDRATE), \ + tcsetattr (fd, TCSANOW, tios) # else # ifdef TIOCSETA # define GET_TERMIOS(fd,tios) ioctl (fd, TIOCGETA, tios) # define SET_TERMIOS(fd,tios) \ - tios->c_cflag |= BAUDRATE, \ - ioctl (fd, TIOCSETA, tios) + tios->c_cflag |= BAUDRATE, \ + ioctl (fd, TIOCSETA, tios) # else # define GET_TERMIOS(fd,tios) ioctl (fd, TCGETS, tios) # define SET_TERMIOS(fd,tios) \ - tios->c_cflag |= BAUDRATE, \ - ioctl (fd, TCSETS, tios) + tios->c_cflag |= BAUDRATE, \ + ioctl (fd, TCSETS, tios) # endif # endif # define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios) @@ -58,12 +50,12 @@ /* sgtty interface */ # define SET_TTYMODE(fd,tt) \ - tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \ - ioctl (fd, TIOCSETP, &(tt->sg)), \ - ioctl (fd, TIOCSETC, &(tt->tc)), \ - ioctl (fd, TIOCSLTC, &(tt->lc)), \ - ioctl (fd, TIOCSETD, &(tt->line)), \ - ioctl (fd, TIOCLSET, &(tt->local)) + tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \ + ioctl (fd, TIOCSETP, & (tt->sg)), \ + ioctl (fd, TIOCSETC, & (tt->tc)), \ + ioctl (fd, TIOCSLTC, & (tt->lc)), \ + ioctl (fd, TIOCSETD, & (tt->line)), \ + ioctl (fd, TIOCLSET, & (tt->local)) #endif /* HAVE_TERMIOS_H */ /* use the fastest baud-rate */ @@ -146,14 +138,10 @@ #ifndef O_NOCTTY # define O_NOCTTY 0 #endif -#ifndef O_NDELAY -# define O_NDELAY O_NONBLOCK /* QNX, at least */ -#endif #ifndef ONLCR -# define ONLCR 0 /* QNX, at least */ +# define ONLCR 0 #endif #define CONSOLE "/dev/console" /* console device */ -#include "init.intpro" /* PROTOS for internal routines */ #endif /* _INIT_H_ */