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