NCBI C Toolkit Cross Reference

C/corelib/ncbilcl.gcc


  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 *               GNU version
 37 *
 38 * Modifications:
 39 * --------------------------------------------------------------------------
 40 * Date     Name        Description of modification
 41 * -------  ----------  -----------------------------------------------------
 42 * 06-11-93 Schuler     Added INLINE macro.
 43 *
 44 * $Log: ncbilcl.gcc,v $
 45 * Revision 6.2  2002/11/22 20:05:04  lavr
 46 * Configure HAVE_STRDUP and HAVE_STRCASECMP
 47 *
 48 * Revision 6.1  1999/06/01 15:41:28  beloslyu
 49 * changes to work on Solaris 2.6 (SunOS is not supported any more)
 50 *
 51 * Revision 6.0  1997/08/25 18:15:57  madden
 52 * Revision changed to 6.0
 53 *
 54 * Revision 5.0  1996/05/28 13:18:57  ostell
 55 * Set to revision 5.0
 56 *
 57 Revision 4.0  1995/07/26  13:46:50  ostell
 58 force revision to 4.0
 59 
 60 Revision 2.10  1995/05/15  18:45:58  ostell
 61 added Log line
 62 
 63 *
 64 *
 65 * ==========================================================================
 66 */
 67 #ifndef _NCBILCL_
 68 #define _NCBILCL_
 69 
 70 /* PLATFORM DEFINITION FOR GNU UNDER Solaris 2.6 Unix */
 71 
 72 #define COMP_GNU
 73 #define OS_UNIX
 74 #define OS_UNIX_SYSV
 75 #define OS_UNIX_SOL
 76 #define PROC_SPARC
 77 #define WIN_DUMB
 78 
 79 /*----------------------------------------------------------------------*/
 80 /*      Desired or available feature list                               */
 81 /*----------------------------------------------------------------------*/
 82 #define SYSV_IPC_AVAIL  /* System V Interprocess Communication available */
 83 #define SYSV_STREAMS_AVAIL      /* System V STREAMS module available */
 84 #define HAVE_STRCASECMP 1
 85 #define HAVE_STRDUP 1
 86 
 87 /*----------------------------------------------------------------------*/
 88 /*      #includes                                                       */
 89 /*----------------------------------------------------------------------*/
 90 #include <sys/types.h>
 91 #include <limits.h>
 92 #include <sys/stat.h>
 93 #include <stddef.h>
 94 #include <stdio.h>
 95 #include <ctype.h>
 96 #include <string.h>
 97 #include <malloc.h>
 98 #include <memory.h>
 99 #include <stdlib.h>
100 #include <math.h>
101 #include <errno.h>
102 #include <float.h>
103 
104 /*----------------------------------------------------------------------*/
105 /*      Missing ANSI-isms                                               */
106 /*----------------------------------------------------------------------*/
107 #ifndef offsetof
108 #define offsetof(__strctr,__fld) ((size_t)(&(((__strctr *)0)->__fld)))
109 #endif
110 
111 #ifndef CLK_TCK
112 #define CLK_TCK         60
113 #endif
114 #ifndef SEEK_SET
115 #define SEEK_SET        0
116 #define SEEK_CUR        1
117 #define SEEK_END        2
118 #endif
119 #ifndef FILENAME_MAX
120 #define FILENAME_MAX 1024
121 #endif
122 
123 /*----------------------------------------------------------------------*/
124 /*      Aliased Logicals, Datatypes                                     */
125 /*----------------------------------------------------------------------*/
126 
127 /*----------------------------------------------------------------------*/
128 /*      Misc Macros                                                     */
129 /*----------------------------------------------------------------------*/
130 #define PROTO(x)        x
131 #define VPROTO(x)       x       /* Prototype for variable argument list */
132 #define DIRDELIMCHR     '/'
133 #define DIRDELIMSTR     "/"
134 #define CWDSTR  "."
135 
136 #define KBYTE   (1024)
137 #define MBYTE   (1048576)
138 
139 #define IS_BIG_ENDIAN
140 #define TEMPNAM_AVAIL
141 
142 #define INLINE inline
143 
144 /*----------------------------------------------------------------------*/
145 /*      For importing MS_DOS code                                       */
146 /*----------------------------------------------------------------------*/
147 #define near
148 #define far
149 #define huge
150 #define cdecl
151 #define pascal
152 #define _pascal
153 #define _near
154 #define _far
155 #define _huge
156 #define _cdecl
157 
158 /*----------------------------------------------------------------------*/
159 /*      Macros for Floating Point                                       */
160 /*----------------------------------------------------------------------*/
161 #define EXP2(x) exp2(x)
162 #define LOG2(x) log2(x)
163 #define EXP10(x) exp10(x)
164 #define LOG10(x) log10(x)
165 
166 /*----------------------------------------------------------------------*/
167 /*      Macros Defining Limits                                          */
168 /*----------------------------------------------------------------------*/
169 #define MAXALLOC        0x40000000 /* Largest permissible memory request */
170 
171 #endif

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.