|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/corelib/ncbilcl.lna |
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, Epstein 29 * 30 * Version Creation Date: 11/18/97 31 * 32 * $Revision: 6.3 $ 33 * 34 * File Description: 35 * system dependent header 36 * version for Linux on Alpha 37 * 38 * Modifications: 39 * -------------------------------------------------------------------------- 40 * Date Name Description of modification 41 * ------- ---------- --------------------------------------------------- 42 * 43 * $Log: ncbilcl.lna,v $ 44 * Revision 6.3 2002/11/22 20:05:04 lavr 45 * Configure HAVE_STRDUP and HAVE_STRCASECMP 46 * 47 * Revision 6.2 1999/03/17 15:37:22 vakatov 48 * Set the default(<ncbistd.h>) "Nlm_Int4" to "int" rather tnan "long"; 49 * the same for "Nlm_Uint4"; modifyed the concerned "ncbilcl.*" files 50 * accordingly. 51 * 52 * Revision 6.1 1997/11/18 20:39:21 epstein 53 * new file for Linux on Alpha chip 54 * 55 * 56 * 57 * ========================================================================== 58 */ 59 #ifndef _NCBILCL_ 60 #define _NCBILCL_ 61 62 /* PLATFORM DEFINITION FOR Linux on Alpha */ 63 64 #define COMP_SYSV 65 #define OS_UNIX 66 #define OS_UNIX_LINUX 67 #define PROC_ALPHA 68 #define WIN_DUMB 69 70 /*----------------------------------------------------------------------*/ 71 /* Desired or available feature list */ 72 /*----------------------------------------------------------------------*/ 73 #define SYSV_IPC_AVAIL /* System V Interprocess Communication available */ 74 #define HAVE_STRCASECMP 1 75 #define HAVE_STRDUP 1 76 77 /*----------------------------------------------------------------------*/ 78 /* #includes */ 79 /*----------------------------------------------------------------------*/ 80 #include <sys/types.h> 81 #include <limits.h> 82 #include <sys/stat.h> 83 #include <stddef.h> 84 #include <stdio.h> 85 #include <ctype.h> 86 #include <string.h> 87 #include <malloc.h> 88 #include <memory.h> 89 #include <stdlib.h> 90 #include <math.h> 91 #include <errno.h> 92 #include <float.h> 93 #include <unistd.h> 94 95 /*----------------------------------------------------------------------*/ 96 /* Missing ANSI-isms */ 97 /*----------------------------------------------------------------------*/ 98 #define noalias 99 100 #ifndef SEEK_SET 101 #define SEEK_SET 0 /* Set file pointer to offset */ 102 #define SEEK_CUR 1 /* Set file pointer to current plus offset */ 103 #define SEEK_END 2 /* Set file pointer to EOF plus offset */ 104 #endif 105 #ifndef FILENAME_MAX 106 #define FILENAME_MAX 1024 107 #endif 108 109 /*----------------------------------------------------------------------*/ 110 /* Aliased Logicals, Datatypes */ 111 /*----------------------------------------------------------------------*/ 112 113 /*----------------------------------------------------------------------*/ 114 /* Misc Macros */ 115 /*----------------------------------------------------------------------*/ 116 #define PROTO(x) x /* Prototypes are acceptable */ 117 #define VPROTO(x) x /* Prototype for variable argument list */ 118 #define DIRDELIMCHR '/' 119 #define DIRDELIMSTR "/" 120 #define CWDSTR "." 121 122 #define KBYTE (1024) 123 #define MBYTE (1048576) 124 125 #define IS_LITTLE_ENDIAN 126 #define TEMPNAM_AVAIL 127 128 /*----------------------------------------------------------------------*/ 129 /* For importing MS_DOS code */ 130 /*----------------------------------------------------------------------*/ 131 #define near 132 #define far 133 #define huge 134 #define cdecl 135 #define pascal 136 #define _pascal 137 #define _near 138 #define _far 139 #define _huge 140 #define _cdecl 141 142 /*----------------------------------------------------------------------*/ 143 /* Aliased Logicals, Datatypes */ 144 /*----------------------------------------------------------------------*/ 145 146 147 /*----------------------------------------------------------------------*/ 148 /* Macros for Floating Point */ 149 /*----------------------------------------------------------------------*/ 150 #define EXP2(x) exp((x)*LN2) 151 #define LOG2(x) (log(x)*(1./LN2)) 152 #define EXP10(x) exp((x)*LN10) 153 #define LOG10(x) log10(x) 154 155 /*----------------------------------------------------------------------*/ 156 /* Macros Defining Limits */ 157 /*----------------------------------------------------------------------*/ 158 159 #define MAXALLOC 0x40000000 /* Largest permissible memory request */ 160 161 #endif 162 163
|
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |