utils/db1-ast/include/compat.h

Go to the documentation of this file.
00001 /* Values for building 4.4 BSD db routines in the GNU C library.  */
00002 
00003 #ifndef _compat_h_
00004 #define _compat_h_
00005 
00006 #include <fcntl.h>
00007 
00008 /*
00009  * If you can't provide lock values in the open(2) call.  Note, this
00010  * allows races to happen.
00011  */
00012 #ifndef O_EXLOCK        /* 4.4BSD extension. */
00013 #define  O_EXLOCK 0
00014 #endif
00015 
00016 #ifndef O_SHLOCK        /* 4.4BSD extension. */
00017 #define  O_SHLOCK 0
00018 #endif
00019 
00020 #include <errno.h>
00021 
00022 #ifndef EFTYPE
00023 #define  EFTYPE      EINVAL      /* POSIX 1003.1 format errno. */
00024 #endif
00025 
00026 #include <unistd.h>
00027 #include <limits.h>
00028 
00029 #ifndef _POSIX_VDISABLE       /* POSIX 1003.1 disabling char. */
00030 #define  _POSIX_VDISABLE   0     /* Some systems used 0. */
00031 #endif
00032 
00033 #include <termios.h>
00034 
00035 #ifndef  TCSASOFT       /* 4.4BSD extension. */
00036 #define  TCSASOFT 0
00037 #endif
00038 
00039 #include <sys/param.h>
00040 
00041 #ifndef  MAX            /* Usually found in <sys/param.h>. */
00042 #define  MAX(_a,_b)  ((_a)<(_b)?(_b):(_a))
00043 #endif
00044 #ifndef  MIN            /* Usually found in <sys/param.h>. */
00045 #define  MIN(_a,_b)  ((_a)<(_b)?(_a):(_b))
00046 #endif
00047 
00048 
00049 #endif /* compat.h */

Generated on Thu Apr 16 06:27:30 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6