NCBI C Toolkit Cross Reference

C/corelib/ncbilcl.hp_pa


  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
 34 *
 35 * $Log: ncbilcl.hp_pa,v $
 36 * Revision 6.1  2002/02/15 21:56:26  beloslyu
 37 * HP-UX changes
 38 *
 39 * Revision 6.2  2001/01/03 16:08:02  beloslyu
 40 * allow the work with largefiles
 41 *
 42 * Revision 6.1  2000/01/13 23:37:12  beloslyu
 43 * changes because of port to HP-UX 11.0
 44 * ==========================================================================
 45 */
 46 #ifndef _NCBILCL_
 47 #define _NCBILCL_
 48 
 49 /* PLATFORM DEFINITION FOR Hewlett-Packard UNDER HP-UX */
 50 
 51 #define COMP_SYSV
 52 #define OS_UNIX
 53 #define OS_UNIX_HPUX
 54 #define PROC_HPPA
 55 #define WIN_DUMB
 56 
 57 /*----------------------------------------------------------------------*/
 58 /*      Desired or available feature list                               */
 59 /*----------------------------------------------------------------------*/
 60 #define SYSV_IPC_AVAIL  /* System V Interprocess Communication available */
 61 #define SYSV_STREAMS_AVAIL  /* System V STREAMS module available */
 62 
 63 /*----------------------------------------------------------------------*/
 64 /*      Defines needed to trigger the correct inclusions in system files*/
 65 /*      Reportedly needed in HP/UX 9.05                                 */
 66 /*----------------------------------------------------------------------*/
 67 #define _INCLUDE_POSIX_SOURCE
 68 #define _INCLUDE_XOPEN_SOURCE
 69 #define _XOPEN_SOURCE_EXTENDED
 70 #define _INCLUDE_XOPEN_SOURCE_EXTENDED
 71 
 72 /* allow the fork with largefiles */
 73 #define _FILE_OFFSET_BITS 64
 74 
 75 #define POSIX_THREADS_AVAIL
 76 #define _POSIX_C_SOURCE 199506L
 77 /*----------------------------------------------------------------------*/
 78 /*      #includes                                                       */
 79 /*----------------------------------------------------------------------*/
 80 #include <sys/types.h>
 81 #include <sys/resource.h>
 82 #include <limits.h>
 83 #include <sys/stat.h>
 84 #include <stddef.h>
 85 #include <stdio.h>
 86 #include <ctype.h>
 87 #include <string.h>
 88 #include <malloc.h>
 89 #include <memory.h>
 90 #include <stdlib.h>
 91 #include <math.h>
 92 #include <errno.h>
 93 #include <float.h>
 94 
 95 /*----------------------------------------------------------------------*/
 96 /*      Missing ANSI-isms                                               */
 97 /*----------------------------------------------------------------------*/
 98 #ifndef SEEK_SET
 99 #define SEEK_SET        0
100 #define SEEK_CUR        1
101 #define SEEK_END        2
102 #endif
103 #ifdef FILENAME_MAX
104 #undef FILENAME_MAX
105 #endif
106 #define FILENAME_MAX 1024
107 
108 /*----------------------------------------------------------------------*/
109 /*      Aliased Logicals, Datatypes                                     */
110 /*----------------------------------------------------------------------*/
111 
112 /*----------------------------------------------------------------------*/
113 /*      Misc Macros                                                     */
114 /*----------------------------------------------------------------------*/
115 #if defined(__STDC__)
116 #define PROTO(x)        x       /* Function prototypes copied */
117 #define VPROTO(x)       x       /* Prototype for variable argument list */
118 #else
119 #define PROTO(x)        ()      /* Function prototypes faked in */
120 #define VPROTO(x)       ()      /* Prototype for variable argument list */
121 #endif
122 #define DIRDELIMCHR     '/'
123 #define DIRDELIMSTR     "/"
124 #define CWDSTR  "."
125 
126 #define KBYTE   (1024)
127 #define MBYTE   (1048576)
128 
129 #define IS_BIG_ENDIAN
130 #define TEMPNAM_AVAIL
131 
132 /*----------------------------------------------------------------------*/
133 /*      For importing MS_DOS code                                       */
134 /*----------------------------------------------------------------------*/
135 #define near
136 #define far
137 #define huge
138 #define cdecl
139 #define pascal
140 #define _pascal
141 #define _near
142 #define _far
143 #define _huge
144 #define _cdecl
145 
146 /*----------------------------------------------------------------------*/
147 /*      Macros for Floating Point                                       */
148 /*----------------------------------------------------------------------*/
149 #define EXP2(x) exp((x)*LN2)
150 #define LOG2(x) (log(x)*(1./LN2))
151 #define EXP10(x) exp((x)*LN10)
152 #define LOG10(x) (log(x)*(1./LN10))
153 
154 /*----------------------------------------------------------------------*/
155 /*      Macros Defining Limits                                          */
156 /*----------------------------------------------------------------------*/
157 #define MAXALLOC        0x40000000 /* Largest permissible memory request */
158 
159 #endif /* _NCBILCL_ */
160 

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.