1 /* @(#)xmconfig.h	1.45 10/08/27 Copyright 1995-2010 J. Schilling */
2 /*
3  *	This file either includes the manual generated
4  *	static definitions for a machine configuration.
5  *
6  *	Copyright (c) 1995-2010 J. Schilling
7  *
8  *	Use only cpp instructions.
9  *
10  *	NOTE: SING: (Schily Is Not Gnu)
11  */
12 /*
13  * The contents of this file are subject to the terms of the
14  * Common Development and Distribution License, Version 1.0 only
15  * (the "License").  You may not use this file except in compliance
16  * with the License.
17  *
18  * See the file CDDL.Schily.txt in this distribution for details.
19  * A copy of the CDDL is also available via the Internet at
20  * http://www.opensource.org/licenses/cddl1.txt
21  *
22  * When distributing Covered Code, include this CDDL HEADER in each
23  * file and include the License file CDDL.Schily.txt from this distribution.
24  */
25 
26 #ifndef _SCHILY_XMCONFIG_H
27 #define	_SCHILY_XMCONFIG_H
28 
29 /*
30  * This is the only static (hand crafted) set of machine configuration
31  * left over. We are trying to avoid even this in future.
32  */
33 
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #if defined(VMS)
40 #	define	PROTOTYPES
41 #	define	HAVE_OSDEF	/* prevent later defines to overwrite current */
42 #	define	__NOT_SVR4__	/* Not a real SVR4 implementation */
43 
44 #	define	HAVE_UNISTD_H
45 #	define	HAVE_SYS_TYPES_H
46 #	define	HAVE_CTYPE_H
47 /*  #	define	HAVE_SYS_TIME_H	*/
48 #	define	HAVE_FCNTL_H
49 #	define	HAVE_USLEEP
50 #	if __DECC_VER >= 60000000
51 #		define HAVE_INTTYPES_H
52 #	endif /* __DECC_VER >= 60000000 */
53 #	define SIZEOF_CHAR 1
54 #	define SIZEOF_UNSIGNED_CHAR SIZEOF_CHAR
55 #	define SIZEOF_SHORT_INT 2
56 #	define SIZEOF_UNSIGNED_SHORT_INT SIZEOF_SHORT_INT
57 #	define SIZEOF_INT 4
58 #	define SIZEOF_UNSIGNED_INT SIZEOF_INT
59 #	define SIZEOF_LONG_INT 4
60 #	define SIZEOF_UNSIGNED_LONG_INT SIZEOF_LONG_INT
61 #	ifdef __VAX
62 #		define SIZEOF_LONG_LONG 4
63 #	else /* def __VAX */
64 #	endif /* def __VAX [else] */
65 #	define SIZEOF_UNSIGNED_LONG_LONG SIZEOF_LONG_LONG
66 #	define SIZEOF_CHAR_P 4
67 
68 #	include <types.h>
69 #	ifndef __OFF_T
70 		typedef int off_t;
71 #	endif /* ndef __OFF_T */
72 
73 #	if defined(__alpha)
74 #		define HOST_CPU	"Alpha"
75 #	elif defined(__ia64)
76 #		define HOST_CPU	"IA64"
77 #	elif defined(__vax)
78 #		define HOST_CPU	"VAX"
79 #	else
80 #		define HOST_CPU	"VAX(?)"
81 #	endif
82 #	define HOST_VENDOR "HP"
83 #	define HOST_OS "VMS/OpenVMS"
84 #	define RETSIGTYPE   void
85 #	define	HAVE_STDARG_H
86 #	define	HAVE_STDLIB_H
87 #	define	HAVE_STRING_H
88 #	define	HAVE_STDC_HEADERS
89 #	define	STDC_HEADERS
90 #	define	HAVE_UNISTD_H
91 #	define	HAVE_FCNTL_H
92 #	define	HAVE_DIRENT_H
93 #	define	HAVE_WAIT_H
94 #	define	HAVE_SYS_UTSNAME_H
95 #	define	HAVE_GETCWD
96 #	define	HAVE_STRERROR
97 #	define	HAVE_MEMMOVE
98 #	define	HAVE_MMAP
99 #	define	HAVE_FLOCK
100 #	define	HAVE_GETHOSTNAME
101 #	define	HAVE_SELECT
102 #	define	USLEEPRETURN_T	unsigned int
103 
104 #	define	HAVE_STRUCT_TIMEVAL
105 #	define	HAVE_UTSNAME_ARCH	/* uname -p */
106 
107 #	define HAVE_MALLOC
108 #	define HAVE_CALLOC
109 #	define HAVE_REALLOC
110 
111 #	define	HAVE_UNAME
112 #	define	HAVE_RENAME
113 #	define	HAVE_PUTENV
114 #	define	HAVE_STRNCPY
115 
116 /* 2005-11-22 SMS.  Enabled some above.  Added some below. */
117 #	define	HAVE_ECVT
118 #	define	HAVE_FCVT
119 #	define	HAVE_GCVT
120 #	define	HAVE_NICE 1
121 #	define	HAVE_SELECT
122 #	define	HAVE_STRCASECMP
123 #	if __CRTL_VER >= 70312000
124 #		define HAVE_SNPRINTF
125 #	endif /* __CRTL_VER >= 70312000 */
126 #	define	NICE_DECR -8
127 
128 /* 2005-03-14 SMS.  Need VMS-specific open() parameters. */
129 #ifndef	NO_OPENFD_SRC
130 #	define _OPENFD_SRC	/* Use VMS-specific _openfd() function. */
131 #	define _openfd openfd_vms	/* This one. */
132 #	define O_BINARY 0x0004	/* DOS-like value.  Implies "ctx=bin". */
133 #endif
134 
135 #	define HAVE_C_BIGENDIAN
136 #	define HAVE_C_BITFIELDS
137 #	define BITFIELDS_LTOH
138 
139 /* 2006-09-14 SMS.  Various things for libfind. */
140 #	define fork fork_dummy
141 #	ifndef _POSIX_ARG_MAX
142 #		define _POSIX_ARG_MAX 4096	/* Probably needed. */
143 #	endif /* ndef _POSIX_ARG_MAX */
144 #	define HAVE_DECL_STAT
145 #	define HAVE_DECL_LSTAT
146 
147 /* 2006-09-17 SMS. */
148 #	if __CRTL_VER >= 70000000
149 #		define HAVE_GETPAGESIZE
150 #	endif /* __CRTL_VER >= 70000000 */
151 
152 	extern pid_t fork_dummy(void);
153 
154 #endif /* defined(VMS) */
155 
156 
157 #ifdef __cplusplus
158 }
159 #endif
160 
161 #endif /* _SCHILY_XMCONFIG_H */
162