1 | /* |
|
|
2 | * $Id: init.h,v 1.3 2003/11/25 15:25:17 pcg Exp $ |
|
|
3 | */ |
|
|
4 | |
|
|
5 | #ifndef _INIT_H_ |
1 | #ifndef INIT_H_ |
6 | #define _INIT_H_ |
2 | #define INIT_H_ |
7 | |
3 | |
8 | #undef CERASE /* TODO */ |
4 | #undef CERASE /* TODO */ |
9 | #define CERASE '\010' /* ^H */ |
5 | #define CERASE '\010' /* ^H */ |
10 | |
6 | |
11 | #ifdef HAVE_XSETLOCALE |
7 | #ifdef HAVE_XSETLOCALE |
12 | # define X_LOCALE |
8 | # define X_LOCALE |
13 | # include <X11/Xlocale.h> |
9 | # include <X11/Xlocale.h> |
14 | #else |
10 | #else |
15 | # ifdef HAVE_SETLOCALE |
11 | # ifdef HAVE_SETLOCALE |
16 | # include <locale.h> |
12 | # include <clocale> |
17 | # endif |
13 | # endif |
18 | #endif /* HAVE_XLOCALE */ |
14 | #endif /* HAVE_XLOCALE */ |
19 | |
15 | |
20 | #if defined(PTYS_ARE_PTMX) && !defined(__CYGWIN32__) |
16 | #if defined(PTYS_ARE_PTMX) && !defined(__CYGWIN32__) |
21 | # include <sys/resource.h> /* for struct rlimit */ |
17 | # include <sys/resource.h> /* for struct rlimit */ |
… | |
… | |
57 | #else |
53 | #else |
58 | /* sgtty interface */ |
54 | /* sgtty interface */ |
59 | |
55 | |
60 | # define SET_TTYMODE(fd,tt) \ |
56 | # define SET_TTYMODE(fd,tt) \ |
61 | tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \ |
57 | tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \ |
62 | ioctl (fd, TIOCSETP, &(tt->sg)), \ |
58 | ioctl (fd, TIOCSETP, & (tt->sg)), \ |
63 | ioctl (fd, TIOCSETC, &(tt->tc)), \ |
59 | ioctl (fd, TIOCSETC, & (tt->tc)), \ |
64 | ioctl (fd, TIOCSLTC, &(tt->lc)), \ |
60 | ioctl (fd, TIOCSLTC, & (tt->lc)), \ |
65 | ioctl (fd, TIOCSETD, &(tt->line)), \ |
61 | ioctl (fd, TIOCSETD, & (tt->line)), \ |
66 | ioctl (fd, TIOCLSET, &(tt->local)) |
62 | ioctl (fd, TIOCLSET, & (tt->local)) |
67 | #endif /* HAVE_TERMIOS_H */ |
63 | #endif /* HAVE_TERMIOS_H */ |
68 | |
64 | |
69 | /* use the fastest baud-rate */ |
65 | /* use the fastest baud-rate */ |
70 | #ifdef B38400 |
66 | #ifdef B38400 |
71 | # define BAUDRATE B38400 |
67 | # define BAUDRATE B38400 |
… | |
… | |
150 | # define ONLCR 0 /* QNX, at least */ |
146 | # define ONLCR 0 /* QNX, at least */ |
151 | #endif |
147 | #endif |
152 | |
148 | |
153 | #define CONSOLE "/dev/console" /* console device */ |
149 | #define CONSOLE "/dev/console" /* console device */ |
154 | |
150 | |
155 | #include "init.intpro" /* PROTOS for internal routines */ |
|
|
156 | #endif /* _INIT_H_ */ |
151 | #endif /* _INIT_H_ */ |