1
/* @(#)mconfig.h 1.24 98/12/14 Copyright 1995 J. Schilling */
3
* definitions for machine configuration
5
* Copyright (c) 1995 J. Schilling
7
* This file must be included before any other file.
8
* Use only cpp instructions.
10
* NOTE: SING: (Schily Is Not Gnu)
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 2, or (at your option)
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* You should have received a copy of the GNU General Public License
24
* along with this program; see the file COPYING. If not, write to
25
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
37
#if defined(unix) || defined(__unix) || defined(__unix__)
45
#if defined(tos) || defined(__tos)
53
#if defined(sun) || defined(__sun) || defined(__sun__)
57
#if defined(__CYGWIN32__)
61
/*--------------------------------------------------------------------------*/
63
* Some magic that cannot (yet) be figured out with autoconf.
70
# ifndef HAVE_SCANSTACK
71
# define HAVE_SCANSTACK
74
#if defined(__i386_) || defined(i386)
78
# ifndef HAVE_SCANSTACK
79
# define HAVE_SCANSTACK
83
#if defined(SOL2) || defined(SOL2) || defined(S5R4) || defined(__S5R4) \
97
* SunOS 4.x / SunOS 5.x
106
#if defined(_IBMR2) || defined(_AIX)
107
# define IS_UNIX /* ??? really ??? */
111
* Silicon Graphics (must be before SVR4)
113
#if defined(sgi) || defined(__sgi)
114
# define __NOT_SVR4__ /* Not a real SVR4 implementation */
120
#if defined(__DGUX__)
122
# undef HAVE_MTGET_DSREG
123
# undef HAVE_MTGET_RESID
124
# undef HAVE_MTGET_FILENO
125
# undef HAVE_MTGET_BLKNO
127
# define mt_type mt_model
128
# define mt_dsreg mt_status1
129
# define mt_erreg mt_status2
131
* DGUX hides its flock as dg_flock.
134
# define flock dg_flock
136
* Use the BSD style wait on DGUX to get the resource usages of child
139
# define _BSD_WAIT_FLAVOR
145
#if defined(__NeXT__) && defined(__TARGET_OSNAME) && __TARGET_OSNAME == rhapsody
146
# define HAVE_OSDEF /* prevent later definitions to overwrite current */
152
#if defined(__NeXT__) && !defined(HAVE_OSDEF)
154
#undef HAVE_USG_STDIO /*
155
* NeXT Step 3.x uses __flsbuf(unsigned char , FILE *)
156
* instead of __flsbuf(int, FILE *)
161
* NextStep 3.x has a broken linker that does not allow us to override
167
# define printf Xprintf
168
# define fprintf Xfprintf
169
# define sprintf Xsprintf
172
#endif /* __OPRINTF__ */
174
/*--------------------------------------------------------------------------*/
176
* If there is no flock defined by the system, use emulation
177
* through fcntl record locking.
180
#define LOCK_SH 1 /* shared lock */
181
#define LOCK_EX 2 /* exclusive lock */
182
#define LOCK_NB 4 /* don't block when locking */
183
#define LOCK_UN 8 /* unlock */
186
#include <prototyp.h>
189
* gcc 2.x generally implements the long long type.
193
# ifndef HAVE_LONGLONG
194
# define HAVE_LONGLONG
200
* Convert to GNU name
202
#ifdef HAVE_STDC_HEADERS
203
# ifndef STDC_HEADERS
204
# define STDC_HEADERS
208
* Convert to SCHILY name
211
# ifndef HAVE_STDC_HEADERS
212
# define HAVE_STDC_HEADERS
217
# define PATH_DELIM '/'
218
# define PATH_DELIM_STR "/"
224
# define PATH_DELIM '/'
225
# define PATH_DELIM_STR "/"
231
# define PATH_DELIM '\\'
232
# define PATH_DELIM_STR "\\"
236
# define PATH_DELIM '\\'
237
# define PATH_DELIM_STR "\\"
243
# define PATH_DELIM ':'
244
# define PATH_DELIM_STR ":"
253
#endif /* _MCONFIG_H */