|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/corelib/ncbilcl.alf |
source navigation diff markup identifier search freetext search file search |
1 /* ncbilcl.h 2 * =========================================================================== 3 * 4 * PUBLIC DOMAIN NOTICE 5 * National Center for Biotechnology Information 6 * 7 * This software/database is a "United States Government Work" under the 8 * terms of the United States Copyright Act. It was written as part of 9 * the author's official duties as a United States Government employee and 10 * thus cannot be copyrighted. This software/database is freely available 11 * to the public for use. The National Library of Medicine and the U.S. 12 * Government have not placed any restriction on its use or reproduction. 13 * 14 * Although all reasonable efforts have been taken to ensure the accuracy 15 * and reliability of the software and data, the NLM and the U.S. 16 * Government do not and cannot warrant the performance or results that 17 * may be obtained by using this software or data. The NLM and the U.S. 18 * Government disclaim all warranties, express or implied, including 19 * warranties of performance, merchantability or fitness for any particular 20 * purpose. 21 * 22 * Please cite the author in any work or product based on this material. 23 * 24 * =========================================================================== 25 * 26 * File Name: ncbilcl.h 27 * 28 * Author: Gish, Kans, Ostell, Schuler 29 * 30 * Version Creation Date: 1/1/91 31 * 32 * $Revision: 6.3 $ 33 * 34 * File Description: 35 * system dependent header 36 * version for DEC Alpha running OSF/1 operating system 37 * 38 * Modifications: 39 * -------------------------------------------------------------------------- 40 * $Log: ncbilcl.alf,v $ 41 * Revision 6.3 2002/11/22 20:05:04 lavr 42 * Configure HAVE_STRDUP and HAVE_STRCASECMP 43 * 44 * Revision 6.2 1999/03/17 15:37:21 vakatov 45 * Set the default(<ncbistd.h>) "Nlm_Int4" to "int" rather tnan "long"; 46 * the same for "Nlm_Uint4"; modifyed the concerned "ncbilcl.*" files 47 * accordingly. 48 * 49 * Revision 6.1 1997/12/24 17:11:10 vakatov 50 * avoid cpp warnings on #POSIX_THREADS_AVAIL 51 * 52 * Revision 5.2 1997/01/24 17:04:26 epstein 53 * add include so MAXLOGNAME define can be found by ncbienv.c 54 * 55 * Revision 5.1 1997/01/13 16:16:43 shavirin 56 * Added define POSIX_THREADS_AVAIL . 57 * 58 * 4/12/93 Kans/Gish Include <time.h>, #undef ABS to avoid conflict 59 * ========================================================================== 60 */ 61 #ifndef _NCBILCL_ 62 #define _NCBILCL_ 63 64 /* PLATFORM DEFINITION FOR DEC Alpha AXP processor running OSF/1 */ 65 66 #define COMP_DEC 67 #define OS_UNIX 68 #define OS_UNIX_OSF1 69 #define PROC_ALPHA 70 #define WIN_DUMB 71 72 /*----------------------------------------------------------------------*/ 73 /* Desired or available feature list */ 74 /*----------------------------------------------------------------------*/ 75 /*#define MPROC_AVAIL*/ 76 #define SYSV_IPC_AVAIL 77 #define SYSV_STREAMS_AVAIL 78 #ifdef MPROC_AVAIL 79 #define DCE_THREADS_AVAIL 80 #endif 81 #ifndef POSIX_THREADS_AVAIL 82 #define POSIX_THREADS_AVAIL 83 #endif 84 #define HAVE_STRCASECMP 1 85 #define HAVE_STRDUP 1 86 87 /*----------------------------------------------------------------------*/ 88 /* #includes */ 89 /*----------------------------------------------------------------------*/ 90 #include <sys/types.h> 91 #include <limits.h> 92 #include <sys/stat.h> 93 #include <stddef.h> 94 #include <stdio.h> 95 #include <ctype.h> 96 #include <string.h> 97 #include <malloc.h> 98 #include <memory.h> 99 #include <stdlib.h> 100 #include <math.h> 101 #include <unistd.h> 102 #include <sys/user.h> 103 #ifdef MPROC_AVAIL 104 #include <pthread.h> 105 #define DCE_THREADS_AVAIL 106 #endif 107 #include <errno.h> 108 #include <float.h> 109 #include <time.h> 110 111 /*----------------------------------------------------------------------*/ 112 /* Missing ANSI-isms */ 113 /*----------------------------------------------------------------------*/ 114 #define noalias /* "noalias" keyword not accepted by compiler */ 115 116 #ifndef FILENAME_MAX 117 #define FILENAME_MAX 1024 118 #endif 119 120 /*----------------------------------------------------------------------*/ 121 /* Aliased Logicals, Datatypes */ 122 /*----------------------------------------------------------------------*/ 123 124 /*----------------------------------------------------------------------*/ 125 /* Misc Macros */ 126 /*----------------------------------------------------------------------*/ 127 #ifdef ABS 128 #undef ABS 129 #endif 130 #define PROTO(x) x 131 #define VPROTO(x) x 132 #define DIRDELIMCHR '/' 133 #define DIRDELIMSTR "/" 134 #define CWDSTR "." 135 136 #define KBYTE (1024) 137 #define MBYTE (1048576) 138 139 #define IS_LITTLE_ENDIAN 140 #define TEMPNAM_AVAIL 141 142 /*----------------------------------------------------------------------*/ 143 /* For importing MS_DOS code */ 144 /*----------------------------------------------------------------------*/ 145 #define near 146 #define far 147 #define huge 148 #define cdecl 149 #define pascal 150 #define _pascal 151 #define _near 152 #define _far 153 #define _huge 154 #define _cdecl 155 156 /*----------------------------------------------------------------------*/ 157 /* Macros for Floating Point */ 158 /*----------------------------------------------------------------------*/ 159 #define EXP2(x) exp((x)*LN2) 160 #define LOG2(x) log2(x) 161 #define EXP10(x) exp((x)*LN10) 162 #define LOG10(x) log10(x) 163 164 /*----------------------------------------------------------------------*/ 165 /* Macros Defining Limits */ 166 /*----------------------------------------------------------------------*/ 167 168 #define MAXALLOC 0x40000000 /* Largest permissible memory request */ 169 170 #endif
|
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |