104 lines
4.3 KiB
C
104 lines
4.3 KiB
C
/*
|
|
* CDE - Common Desktop Environment
|
|
*
|
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
*
|
|
* These libraries and programs are free software; you can
|
|
* redistribute them and/or modify them under the terms of the GNU
|
|
* Lesser General Public License as published by the Free Software
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* These libraries and programs are distributed in the hope that
|
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with these libraries and programs; if not, write
|
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
* Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
/*
|
|
* $TOG: TermPrimOSDepI.h /main/4 1998/03/16 14:41:55 mgreess $";
|
|
*/
|
|
/* *
|
|
* (c) Copyright 1993, 1994, 1996 Hewlett-Packard Company *
|
|
* (c) Copyright 1993, 1994, 1996 International Business Machines Corp. *
|
|
* (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc. *
|
|
* (c) Copyright 1993, 1994, 1996 Novell, Inc. *
|
|
* (c) Copyright 1996 Digital Equipment Corporation. *
|
|
* (c) Copyright 1996 FUJITSU LIMITED. *
|
|
* (c) Copyright 1996 Hitachi. *
|
|
*/
|
|
/******************************************************************************
|
|
|
|
this is a list of OS dependent defines that are available...
|
|
|
|
XOR_CAPS_LOCK xor caps lock and shift so that lock+shift
|
|
acts as a noop for alpha keys
|
|
NO_MESSAGE_CATALOG enables the message catalog code
|
|
USE_TIOCCONS use TIOCCONS iocto for -C option
|
|
USE_SRIOCSREDIR use SRIOCSREDIR ioctl for -C option
|
|
SETENV_LINES_AND_COLS set $LINES and $COLUMNS
|
|
HAS_SETRESUID os supports setresuid(2) - first choice
|
|
HAS_SETEUID os supports seteuid(2) - second choice
|
|
HAS_SETREUID os supports setreuid(2) - second choice
|
|
USE_STREAMS use streams as opposed to ptys - first choice
|
|
USE_STREAMS_TTCOMPAT use ttcompat streams mod
|
|
USE_STREAMS_BUFMOD use bofmod streams mod
|
|
USE_PTYS use ptys - second choice
|
|
USE_CSWIDTH use the csWidth resource to initialize
|
|
multi-byte processing in ldterm
|
|
USE_SETCSMAP use setcsmap() for multi-byte processing
|
|
USE_SUN_WCWIDTH_PATCH use SUN wcwidth() workaround
|
|
USE_TIOCBREAK use TIOCBREAK ioctl() to send RS232 break
|
|
USE_TCSBRK use TCBRK ioctl() to send RS232 break
|
|
USE_TCSBREAK use TCBREAK ioctl() to send RS232 break
|
|
USE_TCSENDBREAK use tiocbreak() to send RS232 break
|
|
|
|
******************************************************************************/
|
|
|
|
#ifndef _Dt_TermPrimOSDepI_h
|
|
#define _Dt_TermPrimOSDepI_h
|
|
|
|
#ifdef __linux__
|
|
# define USE_TIOCCONS /* use tioccons for -C */
|
|
# define HAS_SETEUID /* seteuid available */
|
|
# define HAS_SETREUID /* setreuid available */
|
|
# define USE_TCSENDBREAK /* use tiocbreak() */
|
|
#endif /* LINUX */
|
|
|
|
#ifdef CSRG_BASED
|
|
# define HAS_SETEUID /* seteuid available */
|
|
# define HAS_SETREUID /* setreuid available */
|
|
# define USE_TCSENDBREAK /* use tiocbreak() */
|
|
#endif /* CSRG_BASED */
|
|
|
|
#ifdef sun
|
|
# define XOR_CAPS_LOCK /* xor caps lock and shift */
|
|
# define USE_SRIOCSREDIR /* use SRIOCSREDIR ioctl for -C */
|
|
# define USE_STREAMS /* use streams */
|
|
# define USE_STREAMS_TTCOMPAT /* use ttcompat streams mod */
|
|
# define USE_STREAMS_BUFMOD /* use bofmod streams mod */
|
|
# define USE_TCSENDBREAK /* use tiocbreak() */
|
|
# if (_XOPEN_VERSION == 3)
|
|
# define USE_SUN_WCWIDTH_PATCH
|
|
# define wcwidth(w) sun_wcwidth(w)
|
|
# endif /* (_XOPEN_VERSION == 3) */
|
|
#endif /* SUN */
|
|
|
|
#ifdef IBM_ARCHITECTURE
|
|
/* this seems to be #define'ed in the world of imake... */
|
|
# define USE_TIOCCONS /* use tioccons for -C */
|
|
# define HAS_SETEUID /* seteuid available */
|
|
# define HAS_SETREUID /* setreuid available */
|
|
# define USE_PTYS /* use ptys */
|
|
# define USE_SETCSMAP /* use setcsmap() for multi-byte*/
|
|
# define USE_TCSENDBREAK /* use tiocbreak() */
|
|
#endif /* IBM_ARCHITECTURE */
|
|
|
|
#endif /* _Dt_TermPrimOSDepI_h */
|
|
/* DON'T ADD ANYTHING AFTER THIS #endif... */
|