NCBI C Toolkit Cross Reference

C/corelib/ncbilcl.hlx


  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:  Contributed by Howard Feldman <feldman@mshri.on.ca>
 29 *
 30 * Version Creation Date:   4/5/02
 31 *
 32 * $Revision: 6.1 $
 33 *
 34 * File Description:
 35 *               system dependent header
 36 *       version for HPPA Linux
 37 *
 38 * Modifications:
 39 * --------------------------------------------------------------------------
 40 * $Log: ncbilcl.hlx,v $
 41 * Revision 6.1  2002/04/15 20:04:41  ivanov
 42 * Initial revision
 43 *
 44 * ==========================================================================
 45 */
 46 #ifndef _NCBILCL_
 47 #define _NCBILCL_
 48 
 49 /* PLATFORM DEFINITION FOR Linux */
 50 
 51 #define COMP_SYSV
 52 #define OS_UNIX
 53 #define OS_UNIX_LINUX
 54 #define OS_UNIX_HPPALINUX
 55 #define PROC_HPPA
 56 #define WIN_DUMB
 57 
 58 
 59 /*----------------------------------------------------------------------*/
 60 /*      Desired or available feature list                               */
 61 /*----------------------------------------------------------------------*/
 62 #define SYSV_IPC_AVAIL  /* System V Interprocess Communication available */
 63 /*#define _POSIX_C_SOURCE 199309L*/
 64 
 65 #ifndef _REENTRANT
 66 #define _REENTRANT
 67 #endif
 68 
 69 /* good for the EGCS C/C++ compiler on Linux(e.g. putenv(), tempnam() proto) */
 70 /*#define _SVID_SOURCE 1 */
 71 
 72 
 73 /*----------------------------------------------------------------------*/
 74 /*      #includes                                                       */
 75 /*----------------------------------------------------------------------*/
 76 #include <sys/types.h>
 77 #include <limits.h>
 78 #include <sys/stat.h>
 79 #include <stddef.h>
 80 #include <stdio.h>
 81 #include <ctype.h>
 82 #include <string.h>
 83 #include <malloc.h>
 84 #include <memory.h>
 85 #include <stdlib.h>
 86 #include <math.h>
 87 #include <errno.h>
 88 #include <float.h>
 89 #include <unistd.h>
 90 
 91 /* Check if there are POSIX threads available */
 92 #ifdef _POSIX_THREADS
 93 #define POSIX_THREADS_AVAIL
 94 #endif
 95 
 96 
 97 /*----------------------------------------------------------------------*/
 98 /*      Missing ANSI-isms                                               */
 99 /*----------------------------------------------------------------------*/
100 #define noalias 
101 
102 #ifndef SEEK_SET
103 #define SEEK_SET        0       /* Set file pointer to offset */
104 #define SEEK_CUR        1       /* Set file pointer to current plus offset */
105 #define SEEK_END        2       /* Set file pointer to EOF plus offset */
106 #endif
107 #ifndef FILENAME_MAX
108 #define FILENAME_MAX 1024
109 #endif
110 
111 /*----------------------------------------------------------------------*/
112 /*      Aliased Logicals, Datatypes                                     */
113 /*----------------------------------------------------------------------*/
114 
115 /*----------------------------------------------------------------------*/
116 /*      Misc Macros                                                     */
117 /*----------------------------------------------------------------------*/
118 #define PROTO(x) x      /* Prototypes are acceptable */
119 #define VPROTO(x) x   /* Prototype for variable argument list */
120 #define DIRDELIMCHR     '/'
121 #define DIRDELIMSTR     "/"
122 #define CWDSTR          "."
123 
124 #define KBYTE           (1024)
125 #define MBYTE           (1048576)
126 
127 #define IS_LITTLE_ENDIAN
128 #define TEMPNAM_AVAIL
129 
130 /*----------------------------------------------------------------------*/
131 /*      For importing MS_DOS code                                       */
132 /*----------------------------------------------------------------------*/
133 #define near
134 #define far
135 #define huge
136 #define cdecl
137 #define pascal
138 #define _pascal
139 #define _near
140 #define _far
141 #define _huge
142 #define _cdecl
143 
144 /*----------------------------------------------------------------------*/
145 /*      Macros for Floating Point                                       */
146 /*----------------------------------------------------------------------*/
147 #define EXP2(x) exp((x)*LN2)
148 #define LOG2(x) (log(x)*(1./LN2))
149 #define EXP10(x) exp((x)*LN10)
150 #define LOG10(x) log10(x)
151 
152 /*----------------------------------------------------------------------*/
153 /*      Macros Defining Limits                                          */
154 /*----------------------------------------------------------------------*/
155 #define MAXALLOC        0x40000000 /* Largest permissible memory request */
156 
157 #endif
158 

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.