|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/corelib/ncbilcl.ibm |
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.2 $ 33 * 34 * File Description: 35 * system dependent header 36 * version for IBM RS 6000 AIX 37 * 38 * Modifications: 39 * -------------------------------------------------------------------------- 40 * Date Name Description of modification 41 * ------- ---------- --------------------------------------------------- 42 * 43 * Revision 6. 44 * replace ncbilcl.r6k with ncbilcl.ibm cpsosa@us.ibm.com 45 * 46 * $Log: ncbilcl.ibm,v $ 47 * Revision 6.2 2001/09/17 20:14:49 lavr 48 * Added macro: HAVE_SOCKLEN_T 49 * 50 * Revision 6.1 2001/06/15 16:52:11 beloslyu 51 * AIX support 52 * 53 * Revision 6.1 1998/04/20 23:09:58 vakatov 54 * included <unistd.h> 55 * 56 * Revision 6.0 1997/08/25 18:16:12 madden 57 * Revision changed to 6.0 58 * 59 * Revision 5.1 1996/07/24 16:15:12 epstein 60 * changes per Joachim Theilhaber of IBM 61 * 62 Revision 5.0 1996/05/28 13:18:57 ostell 63 Set to revision 5.0 64 65 Revision 4.0 1995/07/26 13:46:50 ostell 66 force revision to 4.0 67 68 Revision 1.7 1995/07/05 14:22:37 kans 69 move #include <sys/select.h> to ncbilcl.r6k 70 71 Revision 1.6 1995/05/15 18:45:58 ostell 72 added Log line 73 74 * 75 * 76 * ========================================================================== 77 */ 78 #ifndef _NCBILCL_ 79 #define _NCBILCL_ 80 81 /* PLATFORM DEFINITION FOR IBM RS 6000 AIX 3.2.3 */ 82 #ifndef POSIX_THREADS_AVAIL 83 #define POSIX_THREADS_AVAIL 84 #define _POSIX_PTHREAD_SEMANTICS 85 #endif 86 87 #define COMP_SYSV 88 #define OS_UNIX 89 #define OS_UNIX_AIX 90 #define PROC_POWER 91 #define WIN_DUMB 92 93 /*----------------------------------------------------------------------*/ 94 /* Desired or available feature list */ 95 /*----------------------------------------------------------------------*/ 96 #define SYSV_IPC_AVAIL /* System V Interprocess Communication available */ 97 98 /*----------------------------------------------------------------------*/ 99 /* #includes */ 100 /*----------------------------------------------------------------------*/ 101 #include <sys/types.h> 102 #include <limits.h> 103 #include <sys/stat.h> 104 #include <stddef.h> 105 #include <stdio.h> 106 #include <ctype.h> 107 #include <string.h> 108 #include <malloc.h> 109 #include <memory.h> 110 #include <stdlib.h> 111 #include <math.h> 112 #include <errno.h> 113 #include <float.h> 114 #include <sys/select.h> 115 #include <unistd.h> 116 117 /*----------------------------------------------------------------------*/ 118 /* Missing ANSI-isms */ 119 /*----------------------------------------------------------------------*/ 120 /* 121 #define signed 122 #define const 123 #define noalias 124 #define volatile 125 */ 126 #define CLK_TCK 100 127 128 #ifndef SEEK_SET 129 #define SEEK_SET 0 /* Set file pointer to offset */ 130 #define SEEK_CUR 1 /* Set file pointer to current plus offset */ 131 #define SEEK_END 2 /* Set file pointer to EOF plus offset */ 132 #endif 133 #ifndef FILENAME_MAX 134 #define FILENAME_MAX 1024 135 #endif 136 137 /*----------------------------------------------------------------------*/ 138 /* Aliased Logicals, Datatypes */ 139 /*----------------------------------------------------------------------*/ 140 141 /*----------------------------------------------------------------------*/ 142 /* Misc Macros */ 143 /*----------------------------------------------------------------------*/ 144 #define PROTO(x) x /* Prototypes are acceptable */ 145 #define VPROTO(x) x /* Prototype for variable argument list */ 146 #define DIRDELIMCHR '/' 147 #define DIRDELIMSTR "/" 148 #define CWDSTR "." 149 150 #define KBYTE (1024) 151 #define MBYTE (1048576) 152 153 #define IS_BIG_ENDIAN 154 #define TEMPNAM_AVAIL 155 156 /*----------------------------------------------------------------------*/ 157 /* For importing MS_DOS code */ 158 /*----------------------------------------------------------------------*/ 159 #define near 160 #define far 161 #define huge 162 #define cdecl 163 #define pascal 164 #define _pascal 165 #define _near 166 #define _far 167 #define _huge 168 #define _cdecl 169 170 /*----------------------------------------------------------------------*/ 171 /* Macros for Floating Point */ 172 /*----------------------------------------------------------------------*/ 173 #define EXP2(x) exp((x)*LN2) 174 #define LOG2(x) (log(x)*(1./LN2)) 175 #define EXP10(x) exp((x)*LN10) 176 #define LOG10(x) log10(x) 177 178 /*----------------------------------------------------------------------*/ 179 /* Macros Defining Limits */ 180 /*----------------------------------------------------------------------*/ 181 #define MAXALLOC 0x40000000 /* Largest permissible memory request */ 182 183 /*----------------------------------------------------------------------*/ 184 /* Miscelaneous */ 185 /*----------------------------------------------------------------------*/ 186 #define HAVE_SOCKLEN_T 1 187 188 #endif
|
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |