2
* ===========================================================================
5
* National Center for Biotechnology Information
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.
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
22
* Please cite the author in any work or product based on this material.
24
* ===========================================================================
26
* File Name: ncbilcl.h
28
* Author: Gish, Kans, Ostell, Schuler, Epstein, Vakatov
29
* Contributed by Howard Feldman <feldman@mshri.on.ca>
31
* Version Creation Date: 16/05/02
36
* system dependent header
40
* --------------------------------------------------------------------------
41
* $Log: ncbilcl.qnx,v $
42
* Revision 6.1 2002/05/17 14:45:28 ivanov
45
* ==========================================================================
50
/* PLATFORM DEFINITION FOR QNX */
59
/*----------------------------------------------------------------------*/
60
/* Desired or available feature list */
61
/*----------------------------------------------------------------------*/
62
#define SYSV_IPC_AVAIL /* System V Interprocess Communication available */
64
#undef _POSIX_C_SOURCE
66
#define _POSIX_SOURCE 1
67
#define _POSIX_C_SOURCE 199309L
68
#define _XOPEN_SOURCE 500
74
/* good for the EGCS C/C++ compiler on Linux(e.g. putenv(), tempnam() proto) */
75
#define _SVID_SOURCE 1
79
/*----------------------------------------------------------------------*/
81
/*----------------------------------------------------------------------*/
82
#include <sys/types.h>
97
/* Check if there are POSIX threads available */
99
#define POSIX_THREADS_AVAIL
103
/*----------------------------------------------------------------------*/
104
/* Missing ANSI-isms */
105
/*----------------------------------------------------------------------*/
109
#define SEEK_SET 0 /* Set file pointer to offset */
110
#define SEEK_CUR 1 /* Set file pointer to current plus offset */
111
#define SEEK_END 2 /* Set file pointer to EOF plus offset */
114
#define FILENAME_MAX 1024
117
/*----------------------------------------------------------------------*/
118
/* Aliased Logicals, Datatypes */
119
/*----------------------------------------------------------------------*/
121
/*----------------------------------------------------------------------*/
123
/*----------------------------------------------------------------------*/
124
#define PROTO(x) x /* Prototypes are acceptable */
125
#define VPROTO(x) x /* Prototype for variable argument list */
126
#define DIRDELIMCHR '/'
127
#define DIRDELIMSTR "/"
131
#define MBYTE (1048576)
133
#define IS_LITTLE_ENDIAN
134
#define TEMPNAM_AVAIL
136
/*----------------------------------------------------------------------*/
137
/* For importing MS_DOS code */
138
/*----------------------------------------------------------------------*/
150
/*----------------------------------------------------------------------*/
151
/* Macros for Floating Point */
152
/*----------------------------------------------------------------------*/
153
#define EXP2(x) exp((x)*LN2)
154
#define LOG2(x) (log(x)*(1./LN2))
155
#define EXP10(x) exp((x)*LN10)
156
#define LOG10(x) log10(x)
158
/*----------------------------------------------------------------------*/
159
/* Macros Defining Limits */
160
/*----------------------------------------------------------------------*/
161
#define MAXALLOC 0x40000000 /* Largest permissible memory request */