|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/corelib/ncbilcl.hp_ia64 |
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 * $Revision: 6.1 $ 29 * (this file has not been tested for accuracy) 30 * 31 * File Description: 32 * system dependent header 33 * HP-UX version on IA64 34 * 35 * ========================================================================== 36 */ 37 #ifndef _NCBILCL_ 38 #define _NCBILCL_ 39 40 /* PLATFORM DEFINITION FOR Hewlett-Packard UNDER HP-UX */ 41 42 #define COMP_SYSV 43 #define OS_UNIX 44 #define OS_UNIX_HPUX 45 #define PROC_HPIA64 46 #define WIN_DUMB 47 48 /*----------------------------------------------------------------------*/ 49 /* Desired or available feature list */ 50 /*----------------------------------------------------------------------*/ 51 #define SYSV_IPC_AVAIL /* System V Interprocess Communication available */ 52 #define SYSV_STREAMS_AVAIL /* System V STREAMS module available */ 53 54 /*----------------------------------------------------------------------*/ 55 /* Defines needed to trigger the correct inclusions in system files*/ 56 /* Reportedly needed in HP/UX 9.05 */ 57 /*----------------------------------------------------------------------*/ 58 #define _INCLUDE_POSIX_SOURCE 59 #define _INCLUDE_XOPEN_SOURCE 60 #define _XOPEN_SOURCE_EXTENDED 61 #define _INCLUDE_XOPEN_SOURCE_EXTENDED 62 63 /* allow the fork with largefiles */ 64 #define _FILE_OFFSET_BITS 64 65 66 #define POSIX_THREADS_AVAIL 67 #define _POSIX_C_SOURCE 199506L 68 /*----------------------------------------------------------------------*/ 69 /* #includes */ 70 /*----------------------------------------------------------------------*/ 71 #include <sys/types.h> 72 #include <sys/resource.h> 73 #include <limits.h> 74 #include <sys/stat.h> 75 #include <stddef.h> 76 #include <stdio.h> 77 #include <ctype.h> 78 #include <string.h> 79 #include <malloc.h> 80 #include <memory.h> 81 #include <stdlib.h> 82 #include <math.h> 83 #include <errno.h> 84 #include <float.h> 85 86 /*----------------------------------------------------------------------*/ 87 /* Missing ANSI-isms */ 88 /*----------------------------------------------------------------------*/ 89 #ifndef SEEK_SET 90 #define SEEK_SET 0 91 #define SEEK_CUR 1 92 #define SEEK_END 2 93 #endif 94 #ifdef FILENAME_MAX 95 #undef FILENAME_MAX 96 #endif 97 #define FILENAME_MAX 1024 98 99 /*----------------------------------------------------------------------*/ 100 /* Aliased Logicals, Datatypes */ 101 /*----------------------------------------------------------------------*/ 102 103 /*----------------------------------------------------------------------*/ 104 /* Misc Macros */ 105 /*----------------------------------------------------------------------*/ 106 #if defined(__STDC__) 107 #define PROTO(x) x /* Function prototypes copied */ 108 #define VPROTO(x) x /* Prototype for variable argument list */ 109 #else 110 #define PROTO(x) () /* Function prototypes faked in */ 111 #define VPROTO(x) () /* Prototype for variable argument list */ 112 #endif 113 #define DIRDELIMCHR '/' 114 #define DIRDELIMSTR "/" 115 #define CWDSTR "." 116 117 #define KBYTE (1024) 118 #define MBYTE (1048576) 119 120 #define IS_BIG_ENDIAN 121 #define TEMPNAM_AVAIL 122 123 /*----------------------------------------------------------------------*/ 124 /* For importing MS_DOS code */ 125 /*----------------------------------------------------------------------*/ 126 #define near 127 #define far 128 #define huge 129 #define cdecl 130 #define pascal 131 #define _pascal 132 #define _near 133 #define _far 134 #define _huge 135 #define _cdecl 136 137 /*----------------------------------------------------------------------*/ 138 /* Macros for Floating Point */ 139 /*----------------------------------------------------------------------*/ 140 #define EXP2(x) exp((x)*LN2) 141 #define LOG2(x) (log(x)*(1./LN2)) 142 #define EXP10(x) exp((x)*LN10) 143 #define LOG10(x) (log(x)*(1./LN10)) 144 145 /*----------------------------------------------------------------------*/ 146 /* Macros Defining Limits */ 147 /*----------------------------------------------------------------------*/ 148 #define MAXALLOC 0x40000000 /* Largest permissible memory request */ 149 150 #endif /* _NCBILCL_ */ 151
|
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |