/usr/include/ncbi/ncbiopt.h is in libncbi6-dev 6.1.20110713-3ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 | #ifndef _NCBIOPT_
#define _NCBIOPT_
/* $Id: ncbiopt.h,v 6.16 2005/11/16 16:36:11 kans Exp $
* ==========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act. It was written as part of
* the author's official duties as a United States Government employee and
* thus cannot be copyrighted. This software/database is freely available
* to the public for use. The National Library of Medicine and the U.S.
* Government have not placed any restriction on its use or reproduction.
*
* Although all reasonable efforts have been taken to ensure the accuracy
* and reliability of the software and data, the NLM and the U.S.
* Government do not and cannot warrant the performance or results that
* may be obtained by using this software or data. The NLM and the U.S.
* Government disclaim all warranties, express or implied, including
* warranties of performance, merchantability or fitness for any particular
* purpose.
*
* Please cite the author in any work or product based on this material.
*
* ==========================================================================
*
* Authors: Denis Vakatov, Hugues Sicotte
*
* File Description:
* Miscellaneous platform-dependent types etc. that are probably not
* available or not exactly in-sync for different platforms
*
* --------------------------------------------------------------------------
* $Log: ncbiopt.h,v $
* Revision 6.16 2005/11/16 16:36:11 kans
* support for PowerPC and Intel chips for Macintosh
*
* Revision 6.15 2004/07/15 15:11:45 ucko
* Disable workaround for Linux distributions (RH7?) that misdefine LONG_BIT.
*
* Revision 6.14 2004/03/25 17:10:57 lebedev
* Include stdint.h for Darwin, so undef will work for UINT8_MAX
*
* Revision 6.13 2004/03/11 18:53:48 rsmith
* turn on long long support on UNIX_DARWIN (Mac)
*
* Revision 6.12 2003/05/05 11:55:22 rsmith
* Codewarrior compiling for Win32 already has definitions for INT8 min and max.
*
* Revision 6.11 2002/12/18 22:11:27 kans
* a couple more C++ comments slipped by, changed to C style
*
* Revision 6.10 2002/12/17 23:00:48 kans
* support for OS_UNIX_DARWIN for Mach-O executables (RGS)
*
* Revision 6.9 2001/08/09 19:21:29 juran
* Wrap the inclusion of <stdint.h> in #ifdef __MWERKS__.
*
* Revision 6.8 2001/08/09 18:55:28 juran
* Include <stdint.h> to avoid macro redefinition errors.
*
* Revision 6.7 2001/03/15 21:23:12 vakatov
* [OS_UNIX_AIX] #define Int8 long long (was just "long").
* Fix by the Ruth Isserlin & Christopher Hogue, chogue@mdsproteomics.com
*
* Revision 6.6 2001/03/14 21:11:27 vakatov
* Int8 is "long long" for OS_UNIX::PROC_HPPA (M.Dumontier, micheld@mshri.on.ca)
*
* Revision 6.5 2000/12/21 15:52:22 vakatov
* [__GNUC__, OS_LINUX] Force Int8 be "long long"
*
* Revision 6.4 2000/12/20 19:02:49 vakatov
* [__GNUC__] Use "long long", do not rely on LONG_BIT (RedHat Linux 7.0)
*
* Revision 6.3 2000/03/20 16:04:38 vakatov
* [__GNUC__] Fixed for absent #LONG_LONG_***
*
* Revision 6.2 1999/08/25 18:21:36 vakatov
* Int8 for OS_UNIX_AIX
*
* Revision 6.1 1998/08/11 22:09:08 vakatov
* Initial revision
*
* ==========================================================================
*/
/********************************************************
*
* Int8, Uint8, INT8_MIN, INT8_MAX, UINT8_MAX
*
* NOTE: define it as Int4 for the platforms with no 8-byte integers
*
* TESTED WITH:
* SunOS peony 5.6 Generic_105181-04 sun4u sparc SUNW,Ultra-1
* cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2
* CC: WorkShop Compilers 4.2 18 Sep 1997 C++ 4.2 patch 104631-04
* gcc, g++: gcc version 2.7.2.3
*
* SunOS oldies 4.1.3_U1 22 sun4m
* CC: SC3.0.1 07 Jul 1995
* gcc, g++: gcc version 2.7.2.3
*
* IRIX64 muncher 6.4 02121744 IP27
* cc: ???
*
* IRIX leo 5.3 08031226 IP22 mips
* cc: ???
*
* OSF1 annie V4.0 564 alpha
* gcc, g++: gcc version 2.8.0
* cc: ???
*
* 16-bit MS-Windows applications built with:
* Visual C++ 1.52 (Int8 is not supported, so gets substituted by Int4)
*
* 32-bit MS-Windows applications built with:
* Visual C++ 4.2
* Visual C++ 5.0
* Borland C++ 4.5 (Int8 is not supported, so gets substituted by Int4)
*/
/*
Avoid errors when stdint.h tries to 'redefine' standard macros that we've corrupted,
by including it first.
*/
#if defined(__MWERKS__) || defined(OS_UNIX_DARWIN)
#include <stdint.h>
#endif
#if !defined(Int8) || !defined(Uint8) || !defined(Int8Ptr) || !defined(Uint8Ptr)
# if defined(Int8) || defined(Uint8) || defined(Int8Ptr) || defined(Uint8Ptr)
/* aut Caesar aut nihil... */
;;;!!!PARTIALLY DEFINED 8-BYTE INTEGER TYPES!!!;;;
# endif
/* on 64-bit operating systems, the long data type is already 8 bytes */
# if LONG_BIT==64 /* && !defined(OS_UNIX_LINUX) */
# define Int8 long
# define Uint8 unsigned long
/* GNU compiler defines "long long" data type */
# elif defined(__GNUC__)
# define Int8 long long
# define Uint8 unsigned long long
/* use the compiler-dependent internal data types */
# elif defined(OS_NT) && _INTEGRAL_MAX_BITS >= 64
# define Int8 __int64
# define Uint8 unsigned __int64
# elif defined(OS_UNIX)
/* (signed) */
# if defined(OS_UNIX_LINUX) || defined(OS_UNIX_SOL) || \
defined(OS_UNIX_IRIX) || defined(PROC_HPPA) || defined(OS_UNIX_AIX) || defined(OS_UNIX_DARWIN)
# define Int8 long long
# elif defined(PROC_ALPHA)
# define Int8 long
# endif
/* (unsigned) */
# if defined(Int8)
# define Uint8 unsigned Int8
# endif
# elif defined(OS_MAC)
# if defined(PROC_PPC)
# define Int8 long long
# define Uint8 unsigned long long
# elif defined(PROC_I80X86)
# define Int8 long long
# define Uint8 unsigned long long
# elif defined(PROC_MC680X0)
# define Int8 long long
# define Uint8 unsigned long long
# endif
# elif defined(PROC_ALPHA)
# define Uint8 unsigned long
# define Int8 long
# endif /* #definitions of Int8,Uint8 for known platforms and compilers */
/* Have to undefine Int8 limits if already defined, as on some platforms
* INT8_MAX, etc. exist but refer to 8-bit(not 8-byte!) integers
RGS no need to worry about partially Defined stuff if we do them individually
*/
# if defined(INT8_MIN)
# undef INT8_MIN
# endif
# if defined(INT8_MAX)
# undef INT8_MAX
# endif
# if defined(UINT8_MAX)
# undef UINT8_MAX
# endif
# if defined(Int8) || defined(Uint8)
# if !defined(Int8) || !defined(Uint8)
;;;!!!PARTIALLY DEFINED 8-BYTE INTEGER TYPES!!!;;;
# endif
typedef Int8 Nlm_Int8;
typedef Int8* Nlm_Int8Ptr;
typedef Uint8 Nlm_Uint8;
typedef Uint8* Nlm_Uint8Ptr;
/* RGS
# if defined(INT8_MIN) || defined(INT8_MAX) || defined(UINT8_MAX)
# if !defined(INT8_MIN) || !defined(INT8_MAX) || !defined(UINT8_MAX)
;;;!!!PARTIALLY DEFINED 8-BYTE INTEGER LIMITS!!!;;;
# endif
# undef INT8_MIN
# undef INT8_MAX
# undef UINT8_MAX
# endif
*/
# if LONG_BIT==64
# define INT8_MIN LONG_MIN
# define INT8_MAX LONG_MAX
# define UINT8_MAX ULONG_MAX
# elif defined(__GNUC__) && defined(LONG_LONG_MIN)
# define INT8_MIN LONG_LONG_MIN
# define INT8_MAX LONG_LONG_MAX
# define UINT8_MAX ULONG_LONG_MAX
# elif defined(OS_NT) && ! defined(COMP_METRO)
# define INT8_MIN _I64_MIN
# define INT8_MAX _I64_MAX
# define UINT8_MAX _UI64_MAX
# else /* def GNUC, LONG_BIT==64 */
# ifdef LLONG_MIN
# define INT8_MIN LLONG_MIN
# else
# define INT8_MIN (-9223372036854775807LL-1LL)
# endif
# ifdef LLONG_MAX
# define INT8_MAX LLONG_MAX
# else
# define INT8_MAX 9223372036854775807LL
# endif
# ifdef ULLONG_MAX
# define UINT8_MAX ULLONG_MAX
# else
# define UINT8_MAX 18446744073709551615ULL
# endif
# endif /* else def GNUC, LONG_BIT==64 */
/* will be (re)defined after this #if */
# undef Int8
# undef Uint8
# else
/* Until we migrate to C++, and we can overload operations and
* specify type conversions, we cannot simply define the Int8 datatype
* as a structure...
* Type the Int8 as Int4 so we can compile the tools.
*/
# define Nlm_Int8 Nlm_Int4
# define Nlm_Int8Ptr Nlm_Int4Ptr
# define Nlm_Uint8 Nlm_Uint4
# define Nlm_Uint8Ptr Nlm_Uint4Ptr
# define INT8_MIN INT4_MIN
# define INT8_MAX INT4_MAX
# define UINT8_MAX UINT4_MAX
# endif /* else def Int8,Uint8 */
/* The final type definitions
*/
# define Int8 Nlm_Int8
# define Uint8 Nlm_Uint8
# define Int8Ptr Nlm_Int8Ptr
# define Uint8Ptr Nlm_Uint8Ptr
#endif /* ndef Int8, ndef Uint8, ndef Int8Ptr, ndef Uint8Ptr */
#endif /* _NCBIOPT_ */
|