1/* ncbilcl.h - AXP/OpenVMS version 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, Gilbert 29* 30* Version Creation Date: 1/1/91 31* 32* $Revision: 6.1 $ 33* 34* File Description: 35* system dependent header 36* AXP/OpenVMS version 37* 38* Modifications: 39* -------------------------------------------------------------------------- 40* Date Name Description of modification 41* ------- ------------------ --------------------------------------------- 42* 43* 26-FEB-1991 L. Yarbrough VAX/VMS Version 44* 24-DEC-1992 W. Gilbert AXP/OpenVMS Version 45* 46* $Log: ncbilcl.aov,v $ 47* Revision 6.1 1999/03/17 15:37:21 vakatov 48* Set the default(<ncbistd.h>) "Nlm_Int4" to "int" rather tnan "long"; 49* the same for "Nlm_Uint4"; modifyed the concerned "ncbilcl.*" files 50* accordingly. 51* 52* Revision 6.0 1997/08/25 18:15:44 madden 53* Revision changed to 6.0 54* 55* Revision 5.0 1996/05/28 13:18:57 ostell 56* Set to revision 5.0 57* 58Revision 4.1 1996/05/21 13:58:49 epstein 59processes.h is needed for execl(), etc 60 61Revision 4.0 1995/07/26 13:46:50 ostell 62force revision to 4.0 63 64Revision 1.6 1995/05/15 18:45:58 ostell 65added Log line 66 67* 68* 69* ========================================================================== 70*/ 71#ifndef _NCBILCL_ 72#define _NCBILCL_ 73 74/* PLATFORM DEFINITION FOR VAX under VMS */ 75 76#define COMP_BSD 77#define OS_VMS 78#define OS_AXP_VMS 79#define PROC_ALPHA 80#define WIN_DUMB 81 82/*----------------------------------------------------------------------*/ 83/* #includes */ 84/*----------------------------------------------------------------------*/ 85#include <types.h> 86#include <limits.h> 87#include <stat.h> 88#include <stddef.h> 89#include <stdio.h> 90#include <ctype.h> 91#include <string.h> 92/* #include <malloc.h> */ /*WAG*/ 93/* #include <memory.h> */ /*WAG*/ 94#include <stdlib.h> 95#include <math.h> 96#include <errno.h> 97#include <float.h> 98#include <processes.h> 99 100/*----------------------------------------------------------------------*/ 101/* Missing ANSI-isms */ 102/*----------------------------------------------------------------------*/ 103#define noalias /* "noalias" keyword not accepted */ 104 105#ifndef SEEK_SET 106#define SEEK_SET 0 /* Set file pointer to offset */ 107#define SEEK_CUR 1 /* Set file pointer to current plus offset */ 108#define SEEK_END 2 /* Set file pointer to EOF plus offset */ 109#endif 110 111#ifndef FILENAME_MAX 112#define FILENAME_MAX 32 113#endif 114 115/*----------------------------------------------------------------------*/ 116/* Aliased Logicals, Datatypes */ 117/*----------------------------------------------------------------------*/ 118typedef long Nlm_Int8, *Nlm_Int8Ptr; 119typedef unsigned long Nlm_Uint8, *Nlm_Uint8Ptr; 120 121#define Int8 Nlm_Int8 122#define Int8Ptr Nlm_Int8Ptr 123#define Uint8 Nlm_Uint8 124#define Uint8Ptr Nlm_Uint8Ptr 125 126/*----------------------------------------------------------------------*/ 127/* Misc Macros */ 128/*----------------------------------------------------------------------*/ 129#define PROTO(x) x /* Prototypes are acceptable */ 130#define VPROTO(x) x /* Prototype for variable argument list */ 131#define DIRDELIMCHR ']' 132#define DIRDELIMSTR "." 133#define CWDSTR "." 134 135#define KBYTE (1024) 136#define MBYTE (1048576) 137 138#define IS_LITTLE_ENDIAN /* AXP architecture */ 139 140#ifndef PATH_MAX 141#define PATH_MAX 1024 142#endif 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) exp((x)*LN2) 162#define LOG2(x) (log(x)*(1./LN2)) 163#define EXP10(x) exp((x)*LN10) 164#define LOG10(x) (log(x)*(1./LN10)) 165 166/*----------------------------------------------------------------------*/ 167/* Macros Defining Limits */ 168/*----------------------------------------------------------------------*/ 169#define INT8_MIN LONG_MIN 170#define INT8_MAX LONG_MAX 171#define UINT8_MAX ULONG_MAX 172 173#define MAXALLOC 0x40000000 /* Largest permissible memory request */ 174 175#endif 176