|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/corelib/ncbilcl.ccr |
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.0 $ 33 * 34 * File Description: 35 * system dependent header 36 * CodeCenter version 37 * 38 * Modifications: 39 * -------------------------------------------------------------------------- 40 * Date Name Description of modification 41 * ------- ---------- ----------------------------------------------------- 42 * 43 * $Log: ncbilcl.ccr,v $ 44 * Revision 6.0 1997/08/25 18:15:49 madden 45 * Revision changed to 6.0 46 * 47 * Revision 5.0 1996/05/28 13:18:57 ostell 48 * Set to revision 5.0 49 * 50 Revision 4.1 1995/12/20 22:20:08 kans 51 defines DATE of compilation symbol 52 53 Revision 4.0 1995/07/26 13:46:50 ostell 54 force revision to 4.0 55 56 Revision 2.5 1995/05/15 18:45:58 ostell 57 added Log line 58 59 * 60 * 61 * ========================================================================== 62 */ 63 #ifndef _NCBILCL_ 64 #define _NCBILCL_ 65 66 /* PLATFORM DEFINITION FOR Sun4 UNDER SunOS Unix */ 67 68 #define COMP_SABERC 69 #define OS_UNIX 70 #define OS_UNIX_SUN 71 #define PROC_SPARC 72 #define WIN_DUMB 73 74 /*----------------------------------------------------------------------*/ 75 /* Desired or available feature list */ 76 /*----------------------------------------------------------------------*/ 77 #define SYSV_IPC_AVAIL 78 #define SYSV_STREAMS_AVAIL 79 80 /*----------------------------------------------------------------------*/ 81 /* #includes */ 82 /*----------------------------------------------------------------------*/ 83 #include <sys/types.h> 84 #include <limits.h> 85 #include <sys/stat.h> 86 #include <stddef.h> 87 #include <stdio.h> 88 #include <ctype.h> 89 #include <string.h> 90 #include <malloc.h> 91 #include <memory.h> 92 #include <stdlib.h> 93 #include <math.h> 94 #include <errno.h> 95 96 /*----------------------------------------------------------------------*/ 97 /* Missing ANSI-isms */ 98 /*----------------------------------------------------------------------*/ 99 #define VAR_ARGS /* use Sun's varargs.h, not ANSI's stdarg.h */ 100 #define signed /* "signed" keyword not accepted by Sun C */ 101 #define const /* "const" keyword not accepted by Sun C */ 102 #define noalias /* "noalias" keyword not accepted by Sun C */ 103 #define volatile /* "volatile" keyword not accepted by Sun C */ 104 #define CLK_TCK 60 105 #define FILENAME_MAX 1024 106 #define DBL_EPSILON 2.2204460492503131e-16 107 108 #ifndef SEEK_SET 109 #define SEEK_SET 0 110 #define SEEK_CUR 1 111 #define SEEK_END 2 112 #endif 113 114 /*----------------------------------------------------------------------*/ 115 /* Aliased Logicals, Datatypes */ 116 /*----------------------------------------------------------------------*/ 117 118 /*----------------------------------------------------------------------*/ 119 /* Misc Macros */ 120 /*----------------------------------------------------------------------*/ 121 #define PROTO(x) () /* Function prototypes faked in */ 122 #define VPROTO(x) () /* Prototype for variable argument list */ 123 #define DIRDELIMCHR '/' 124 #define DIRDELIMSTR "/" 125 #define CWDSTR "." 126 127 #define KBYTE (1024) 128 #define MBYTE (1048576) 129 130 #define IS_BIG_ENDIAN 131 #define TEMPNAM_AVAIL 132 133 #undef __builtin_va_arg_incr 134 #undef va_start 135 #define va_start(list, arg) list = (char *)&arg + sizeof(arg) 136 #define __builtin_va_arg_incr(list) (((list) += 1) -1) 137 138 #ifndef __DATE__ 139 #define __DATE__ "(no date)" 140 #endif 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) exp2(x) 160 #define LOG2(x) log2(x) 161 #define EXP10(x) exp10(x) 162 #define LOG10(x) log10(x) 163 164 /*----------------------------------------------------------------------*/ 165 /* Macros Defining Limits */ 166 /*----------------------------------------------------------------------*/ 167 #define MAXALLOC 0x40000000 /* Largest permissible memory request */ 168 169 #endif
|
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |