Define _POSIX_VDISABLE so that it can be used in #if expressions.

This commit is contained in:
bde 1995-05-11 07:52:49 +00:00
parent 55d983e843
commit abe5650c04
3 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)termios.h 8.3 (Berkeley) 3/28/94
* $Id: termios.h,v 1.3 1994/08/02 07:53:46 davidg Exp $
* $Id: termios.h,v 1.4 1995/04/30 14:56:30 bde Exp $
*/
#ifndef _SYS_TERMIOS_H_
@ -78,10 +78,10 @@
#endif
#define NCCS 20
#define _POSIX_VDISABLE ((unsigned char)'\377')
#define _POSIX_VDISABLE 0xff
#ifndef _POSIX_SOURCE
#define CCEQ(val, c) (c == val ? val != _POSIX_VDISABLE : 0)
#define CCEQ(val, c) ((c) == (val) ? (val) != _POSIX_VDISABLE : 0)
#endif
/*

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94
* $Id: ttydefaults.h,v 1.6 1994/10/11 00:16:28 wollman Exp $
* $Id: ttydefaults.h,v 1.7 1995/03/06 02:50:49 nate Exp $
*/
/*
@ -59,10 +59,10 @@
*/
#define CTRL(x) (x&037)
#define CEOF CTRL('d')
#define CEOL ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */
#define CEOL 0xff /* XXX avoid _POSIX_VDISABLE */
#define CERASE 0177
#define CINTR CTRL('c')
#define CSTATUS ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */
#define CSTATUS 0xff /* XXX avoid _POSIX_VDISABLE */
#define CKILL CTRL('u')
#define CMIN 1
#define CQUIT 034 /* FS, ^\ */

View File

@ -56,7 +56,7 @@
/* too-long path components generate errors */
#define _POSIX_NO_TRUNC 1
/* may disable terminal special characters */
#define _POSIX_VDISABLE ((unsigned char)'\377')
#define _POSIX_VDISABLE 0xff
/* access function */
#define F_OK 0 /* test for existence of file */