/usr/include/xview_private/portable.h is in xviewg-dev 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | /* @(#)portable.h 1.14 93/06/28 SMI */
/*
* (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
* pending in the U.S. and foreign countries. See LEGAL NOTICE
* file for terms of the license.
*/
#ifndef xview_portable_h_DEFINED
#define xview_portable_h_DEFINED
#include <xview/attr.h>
#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
#include <stdarg.h>
#define ANSI_FUNC_PROTO
#define VA_START( ptr, param ) va_start( ptr, param )
#else
#include <varargs.h>
#define VA_START( ptr, param ) va_start( ptr )
#endif
EXTERN_FUNCTION (Attr_avlist copy_va_to_av, (va_list valist, Attr_avlist avlist, Attr_attribute attr1));
#ifdef NO_CAST_VATOAV
#define AVLIST_DECL Attr_attribute avarray[ATTR_STANDARD_SIZE]; \
Attr_avlist avlist = avarray
#define MAKE_AVLIST( valist, avlist ) copy_va_to_av( valist, avlist, 0 )
#else
#define AVLIST_DECL Attr_avlist avlist
#define MAKE_AVLIST( valist, avlist ) \
if( *((Attr_avlist)(valist)) == (Attr_attribute) ATTR_LIST ) \
{ \
Attr_attribute avarray[ATTR_STANDARD_SIZE]; \
avlist = avarray; \
copy_va_to_av( valist, avlist, 0 ); \
} \
else \
(avlist) = (Attr_avlist)(valist);
#endif
#if !(defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus))
#define const
#endif
#if defined(SVR4) || defined(__linux__)
#define XV_BCOPY(a,b,c) memmove(b,a,c)
#define XV_BZERO(a,b) memset(a,0,b)
#define XV_INDEX(a,b) strchr(a,b)
#define XV_RINDEX(a,b) strrchr(a,b)
#else
#include <strings.h>
#define XV_BCOPY(a,b,c) bcopy(a,b,c)
#define XV_BZERO(a,b) bzero(a,b)
#define XV_INDEX(a,b) index(a,b)
#define XV_RINDEX(a,b) rindex(a,b)
#endif
/*
* Defines governing tty mode and pty behavior. (These are relevant to the
* ttysw code.)
*/
#ifdef __linux__
#define XV_USE_TERMIOS
#undef XV_USE_SVR4_PTYS
#else
#ifdef SVR4
#define XV_USE_TERMIOS
#define XV_USE_SVR4_PTYS
#else /* SVR4 */
#undef XV_USE_TERMIOS
#undef XV_USE_SVR4_PTYS
#endif /* SVR4 */
#endif /* __linux__ */
#endif /* xview_portable_h_DEFINED */
|