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