~ubuntu-branches/ubuntu/warty/ncbi-tools6/warty

« back to all changes in this revision

Viewing changes to corelib/ncbilcl.scr

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2002-04-04 22:13:09 UTC
  • Revision ID: james.westby@ubuntu.com-20020404221309-vfze028rfnlrldct
Tags: upstream-6.1.20011220a
ImportĀ upstreamĀ versionĀ 6.1.20011220a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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, Epstein
 
29
*
 
30
* Version Creation Date:   8/3/94
 
31
*
 
32
* $Revision: 6.0 $
 
33
*
 
34
* File Description:
 
35
*               system dependent header
 
36
*               for CodeCenter with
 
37
*               for Solaris 2.2 on a SPARCstation
 
38
*
 
39
* Modifications:
 
40
* --------------------------------------------------------------------------
 
41
* Date     Name        Description of modification
 
42
* -------  ----------  -----------------------------------------------------
 
43
*
 
44
*
 
45
* $Log: ncbilcl.scr,v $
 
46
* Revision 6.0  1997/08/25 18:16:13  madden
 
47
* Revision changed to 6.0
 
48
*
 
49
* Revision 5.0  1996/05/28 13:18:57  ostell
 
50
* Set to revision 5.0
 
51
*
 
52
# Revision 4.0  1995/07/26  13:46:50  ostell
 
53
# force revision to 4.0
 
54
#
 
55
# Revision 1.4  1995/05/15  18:45:58  ostell
 
56
# added Log line
 
57
#
 
58
*
 
59
*
 
60
* ==========================================================================
 
61
*/
 
62
#ifndef _NCBILCL_
 
63
#define _NCBILCL_
 
64
 
 
65
/* PLATFORM DEFINITION FOR Solaris Unix on SparcStation */
 
66
 
 
67
#define COMP_SUNPRO
 
68
#define OS_UNIX
 
69
#define OS_UNIX_SYSV
 
70
#define PROC_SPARC
 
71
#define WIN_DUMB
 
72
 
 
73
/*----------------------------------------------------------------------*/
 
74
/*      Desired or available feature list                               */
 
75
/*----------------------------------------------------------------------*/
 
76
/*#define MPROC_AVAIL*/
 
77
#define SYSV_IPC_AVAIL  /* System V Interprocess Communication available */
 
78
#define SYSV_STREAMS_AVAIL      /* System V STREAMS module available */
 
79
 
 
80
#ifdef MPROC_AVAIL
 
81
/* For Solaris, _REENTRANT must be defined when compiling all modules or none */
 
82
#define _REENTRANT
 
83
#define SOLARIS_THREADS_AVAIL
 
84
#endif
 
85
 
 
86
/*----------------------------------------------------------------------*/
 
87
/*      #includes                                                       */
 
88
/*----------------------------------------------------------------------*/
 
89
#include <sys/types.h>
 
90
#include <limits.h>
 
91
#include <sys/stat.h>
 
92
#include <stddef.h>
 
93
#include <stdio.h>
 
94
#include <ctype.h>
 
95
#include <string.h>
 
96
#include <malloc.h>
 
97
#include <memory.h>
 
98
#include <stdlib.h>
 
99
#include <math.h>
 
100
#include <float.h>
 
101
#include <unistd.h>
 
102
#ifdef MPROC_AVAIL
 
103
#include <thread.h>
 
104
#include <synch.h>
 
105
#endif
 
106
#include <errno.h>
 
107
 
 
108
/*----------------------------------------------------------------------*/
 
109
/*      Missing ANSI-isms                                               */
 
110
/*----------------------------------------------------------------------*/
 
111
#define noalias /* "noalias" keyword not accepted by SunPro C */
 
112
#ifndef FILENAME_MAX
 
113
#define FILENAME_MAX    1024
 
114
#endif
 
115
 
 
116
/*----------------------------------------------------------------------*/
 
117
/*      Aliased Logicals, Datatypes                                     */
 
118
/*----------------------------------------------------------------------*/
 
119
/* for CodeCenter only */
 
120
 
 
121
#define signed
 
122
#define const
 
123
 
 
124
 
 
125
/*----------------------------------------------------------------------*/
 
126
/*      Misc Macros                                                     */
 
127
/*----------------------------------------------------------------------*/
 
128
#define PROTO(x)        x
 
129
#define VPROTO(x)       x
 
130
#define DIRDELIMCHR     '/'
 
131
#define DIRDELIMSTR     "/"
 
132
#define CWDSTR  "."
 
133
 
 
134
#define KBYTE   (1024)
 
135
#define MBYTE   (1048576)
 
136
 
 
137
#define IS_BIG_ENDIAN
 
138
#define TEMPNAM_AVAIL
 
139
 
 
140
/*----------------------------------------------------------------------*/
 
141
/*      For importing MS_DOS code                                       */
 
142
/*----------------------------------------------------------------------*/
 
143
#define near
 
144
#define far
 
145
#define huge
 
146
#define cdecl
 
147
#define pascal
 
148
#define _pascal
 
149
#define _near
 
150
#define _far
 
151
#define _huge
 
152
#define _cdecl
 
153
 
 
154
/*----------------------------------------------------------------------*/
 
155
/*      Macros for Floating Point                                       */
 
156
/*----------------------------------------------------------------------*/
 
157
#define EXP2(x) exp((x)*LN2)
 
158
#define LOG2(x) (log(x)*(1./LN2))
 
159
#define EXP10(x) exp((x)*LN10)
 
160
#define LOG10(x) log10(x)
 
161
 
 
162
/*----------------------------------------------------------------------*/
 
163
/*      Macros Defining Limits                                          */
 
164
/*----------------------------------------------------------------------*/
 
165
#define MAXALLOC        0x40000000 /* Largest permissible memory request */
 
166
 
 
167
#endif