2 * O/S-dependent (mis)feature macro definitions
4 Copyright 1991, 1998 The Open Group
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 Except as contained in this notice, the name of The Open Group shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in this Software without prior written authorization from The Open Group.
31 * X_NOT_POSIX means does not have POSIX header files. Lack of this
32 * symbol does NOT mean that the POSIX environment is the default.
33 * You may still have to define _POSIX_SOURCE to get it.
45 # if !defined(__SCO__) && \
46 !defined(__UNIXWARE__) && !defined(__sun)
47 # if !defined(_POSIX_SOURCE)
55 /* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4
56 * This check allows non-Imake configured programs to build correctly.
58 # if defined(__SVR4) && !defined(SVR4)
62 /* define this to whatever it needs to be */
63 # define X_POSIX_C_SOURCE 199300L
75 # define NULL_NOT_ZERO
77 /* Defining any of these will sanitize the namespace to JUST want is defined by
78 * that particular standard. If that happens, we don't get some expected
79 * prototypes, typedefs, etc (like fd_mask). We can define _DARWIN_C_SOURCE to
80 * loosen our belts a tad.
82 # if defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE)
83 # ifndef _DARWIN_C_SOURCE
84 # define _DARWIN_C_SOURCE
92 # define PATH_MAX 4096
95 # define MAXPATHLEN 4096
99 # if defined(__SCO__) || defined(__UNIXWARE__)
101 # define PATH_MAX 1024
104 # define MAXPATHLEN 1024
108 # if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) \
109 || defined(__APPLE__) || defined(__DragonFly__)
115 #endif /* _XOSDEFS_H_ */