|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/corelib/ncbilcl.cvx |
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 * CONVEX version 37 * 38 * Modifications: 39 * -------------------------------------------------------------------------- 40 * Date Name Description of modification 41 * ------- ---------- ----------------------------------------------------- 42 * 6NOV92 John Powell Header for CONVEX computer. 43 * NIH DCRT 44 * 45 * $Log: ncbilcl.cvx,v $ 46 * Revision 6.0 1997/08/25 18:15:55 madden 47 * Revision changed to 6.0 48 * 49 * Revision 5.2 1997/05/29 16:15:53 epstein 50 * remove some defines per Warren Gish 51 * 52 * Revision 5.1 1997/05/21 13:47:29 epstein 53 * additional defines added per Warren Gish 54 * 55 * Revision 5.0 1996/05/28 13:18:57 ostell 56 * Set to revision 5.0 57 * 58 Revision 4.0 1995/07/26 13:46:50 ostell 59 force revision to 4.0 60 61 Revision 1.5 1995/05/15 18:45:58 ostell 62 added Log line 63 64 * 65 * ========================================================================== 66 */ 67 #ifndef _NCBILCL_ 68 #define _NCBILCL_ 69 70 /* PLATFORM DEFINITION FOR CONVEX */ 71 72 #define COMP_BSD 73 #define OS_UNIX 74 #define OS_UNIX_SYSV 75 #define PROC_CONVEX 76 #define WIN_DUMB 77 78 /*----------------------------------------------------------------------*/ 79 /* Desired or available feature list */ 80 /*----------------------------------------------------------------------*/ 81 #define MMAP_AVAIL 82 #define SYSV_IPC_AVAIL 83 84 /*----------------------------------------------------------------------*/ 85 /* #includes */ 86 /*----------------------------------------------------------------------*/ 87 #include <sys/types.h> 88 #include <limits.h> 89 #include <sys/stat.h> 90 #include <stddef.h> 91 #include <stdio.h> 92 #include <ctype.h> 93 #include <string.h> 94 #include <stdlib.h> 95 #include <math.h> 96 #include <errno.h> 97 #include <float.h> 98 99 /*----------------------------------------------------------------------*/ 100 /* Missing ANSI-isms */ 101 /*----------------------------------------------------------------------*/ 102 #define volatile /* "volatile" keyword not accepted */ 103 #ifndef CLK_TCK 104 #define CLK_TCK 60 105 #endif 106 107 /*----------------------------------------------------------------------*/ 108 /* Aliased Logicals, Datatypes */ 109 /*----------------------------------------------------------------------*/ 110 111 /*----------------------------------------------------------------------*/ 112 /* Misc Macros */ 113 /*----------------------------------------------------------------------*/ 114 #define PROTO(x) x /* Function prototypes faked in */ 115 #define VPROTO(x) x /* Prototype for variable argument list */ 116 #define DIRDELIMCHR '/' 117 #define DIRDELIMSTR "/" 118 #define CWDSTR "." 119 120 #define KBYTE (1024) 121 #define MBYTE (1048576) 122 123 #define IS_BIG_ENDIAN 124 125 /*----------------------------------------------------------------------*/ 126 /* For importing MS_DOS code */ 127 /*----------------------------------------------------------------------*/ 128 #define near 129 #define far 130 #define huge 131 #define cdecl 132 #define pascal 133 #define _pascal 134 #define _near 135 #define _far 136 #define _huge 137 #define _cdecl 138 139 /*----------------------------------------------------------------------*/ 140 /* Macros for Floating Point */ 141 /*----------------------------------------------------------------------*/ 142 #define EXP2(x) exp((x)*LN2) 143 #define LOG2(x) (log(x)*(1./LN2)) 144 #define EXP10(x) exp((x)*LN10) 145 #define LOG10(x) (log(x)*(1./LN10)) 146 147 /*----------------------------------------------------------------------*/ 148 /* Macros Defining Limits */ 149 /*----------------------------------------------------------------------*/ 150 #define MAXALLOC 0x40000000 /* Largest permissible memory request */ 151 152 #endif
|
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |