__malloc_initialized now signals three states: uninitialized,
[glibc.git] / db / compat.h
blob706e58265d12cef660b5c1ef9693b229d8f30d30
1 /* Values for building 4.4 BSD db routines in the GNU C library. */
3 #ifndef _compat_h_
4 #define _compat_h_
6 #include <fcntl.h>
8 /*
9 * If you can't provide lock values in the open(2) call. Note, this
10 * allows races to happen.
12 #ifndef O_EXLOCK /* 4.4BSD extension. */
13 #define O_EXLOCK 0
14 #endif
16 #ifndef O_SHLOCK /* 4.4BSD extension. */
17 #define O_SHLOCK 0
18 #endif
20 #include <errno.h>
22 #ifndef EFTYPE
23 #define EFTYPE EINVAL /* POSIX 1003.1 format errno. */
24 #endif
26 #include <unistd.h>
27 #include <limits.h>
29 #ifndef _POSIX_VDISABLE /* POSIX 1003.1 disabling char. */
30 #define _POSIX_VDISABLE 0 /* Some systems used 0. */
31 #endif
33 #include <termios.h>
35 #ifndef TCSASOFT /* 4.4BSD extension. */
36 #define TCSASOFT 0
37 #endif
39 #include <sys/param.h>
41 #ifndef MAX /* Usually found in <sys/param.h>. */
42 #define MAX(_a,_b) ((_a)<(_b)?(_b):(_a))
43 #endif
44 #ifndef MIN /* Usually found in <sys/param.h>. */
45 #define MIN(_a,_b) ((_a)<(_b)?(_a):(_b))
46 #endif
49 #endif /* compat.h */