1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Solaris defines some of these in termios.h so #ifndef them.

This commit is contained in:
Nicholas Marriott 2009-08-20 12:27:58 +00:00
parent 698e003fcd
commit 14eb6df45e

View File

@ -1,4 +1,4 @@
/* $Id: ttydefaults.h,v 1.1 2009-08-20 05:34:58 nicm Exp $ */ /* $Id: ttydefaults.h,v 1.2 2009-08-20 12:27:58 nicm Exp $ */
/* $OpenBSD: ttydefaults.h,v 1.6 2003/06/02 23:28:22 millert Exp $ */ /* $OpenBSD: ttydefaults.h,v 1.6 2003/06/02 23:28:22 millert Exp $ */
/* $NetBSD: ttydefaults.h,v 1.8 1996/04/09 20:55:45 cgd Exp $ */ /* $NetBSD: ttydefaults.h,v 1.8 1996/04/09 20:55:45 cgd Exp $ */
@ -57,28 +57,70 @@
* Control Character Defaults * Control Character Defaults
*/ */
#define CTRL(x) (x&037) #define CTRL(x) (x&037)
#ifndef CEOF
#define CEOF CTRL('d') #define CEOF CTRL('d')
#endif
#ifndef CEOL
#define CEOL ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */ #define CEOL ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */
#endif
#ifndef CERASE
#define CERASE 0177 #define CERASE 0177
#endif
#ifndef CINTR
#define CINTR CTRL('c') #define CINTR CTRL('c')
#endif
#ifndef CSTATUS
#define CSTATUS ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */ #define CSTATUS ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */
#endif
#ifndef CKILL
#define CKILL CTRL('u') #define CKILL CTRL('u')
#endif
#ifndef CMIN
#define CMIN 1 #define CMIN 1
#endif
#ifndef CQUIT
#define CQUIT 034 /* FS, ^\ */ #define CQUIT 034 /* FS, ^\ */
#endif
#ifndef CSUSP
#define CSUSP CTRL('z') #define CSUSP CTRL('z')
#endif
#ifndef CTIME
#define CTIME 0 #define CTIME 0
#endif
#ifndef CDSUSP
#define CDSUSP CTRL('y') #define CDSUSP CTRL('y')
#endif
#ifndef CSTART
#define CSTART CTRL('q') #define CSTART CTRL('q')
#endif
#ifndef CSTOP
#define CSTOP CTRL('s') #define CSTOP CTRL('s')
#endif
#ifndef CLNEXT
#define CLNEXT CTRL('v') #define CLNEXT CTRL('v')
#endif
#ifndef CDISCARD
#define CDISCARD CTRL('o') #define CDISCARD CTRL('o')
#endif
#ifndef CWERASE
#define CWERASE CTRL('w') #define CWERASE CTRL('w')
#endif
#ifndef CREPRINT
#define CREPRINT CTRL('r') #define CREPRINT CTRL('r')
#endif
#ifndef CEOT
#define CEOT CEOF #define CEOT CEOF
#endif
/* compat */ /* compat */
#ifndef CBRK
#define CBRK CEOL #define CBRK CEOL
#endif
#ifndef CRPRNT
#define CRPRNT CREPRINT #define CRPRNT CREPRINT
#endif
#ifndef CFLUSH
#define CFLUSH CDISCARD #define CFLUSH CDISCARD
#endif
/* PROTECTED INCLUSION ENDS HERE */ /* PROTECTED INCLUSION ENDS HERE */
#endif /* !_SYS_TTYDEFAULTS_H_ */ #endif /* !_SYS_TTYDEFAULTS_H_ */