/usr/include/ncbi/ncbistd.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 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | /* ncbistd.h
* ===========================================================================
*
* 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.
*
* ===========================================================================
*
* File Name: ncbistd.h
*
* Author: Gish, Kans, Ostell, Schuler
*
* Version Creation Date: 1/1/91
*
* $Revision: 6.10 $
*
* File Description:
* This system-independent header supposedly works "as is"
* with the system-dependent header files available for these
* system/compiler combinations:
*
* SunOS
* BSD UNIX
* SGI IRIX
* IBM AIX
* Cray UNICOS
* MS-DOS and Microsoft C compiler
* Macintosh with Apple MPW C and Symantec THINK C
*
* Modifications:
* --------------------------------------------------------------------------
* $Log: ncbistd.h,v $
* Revision 6.10 2011/01/20 17:12:42 lavr
* Remove inclusion of <connect/ncbi_core.h>, replace with <stdint.h> everywhere but Windows NOJIRA
*
* Revision 6.9 2011/01/18 18:04:46 ivanov
* Include <ncbiopt.h> after <connect/ncbi_core.h>
*
* Revision 6.8 2001/09/27 21:38:57 vakatov
* Vice-versa fix to R6.7: define "NDEBUG" if "_DEBUG" is not defined
*
* Revision 6.7 2001/08/28 21:01:02 vakatov
* Define "_DEBUG" if "NDEBUG" is not defined
*
* Revision 6.6 2000/02/25 16:45:58 vakatov
* Redesigned to really share "ncbi_*.[ch]" etc. between the C and
* the C++ toolkits, and even to use them in a "standalone" fashion
*
* Revision 6.5 1999/10/14 18:44:35 vakatov
* For better consistency, include <ncbilcl.h> to <ncbistd.h>
*
* Revision 6.4 1999/04/14 20:04:47 vakatov
* For better consistency, moved <ncbiopt.h> from <ncbi.h> to <ncbistd.h>
*
* Revision 6.3 1999/03/17 15:37:24 vakatov
* Set the default(<ncbistd.h>) "Nlm_Int4" to "int" rather tnan "long";
* the same for "Nlm_Uint4"; modifyed the concerned "ncbilcl.*" files
* accordingly.
*
* Revision 6.2 1999/03/04 20:49:24 vakatov
* + "Nlm_STimeout" typedef
*
* Revision 6.1 1998/06/11 21:06:28 shavirin
* Fixed old style definition warning.
*
* Revision 4.2 1995/12/18 17:37:27 epstein
* add TIME_MAX
*
* Revision 4.1 1995/09/13 18:31:24 epstein
* Add BigScalar type for compatability with DEC Alpha
*
* 04-12-93 Schuler Misc. Windows-isms needed for DLL support
* 12-16-93 Schuler Added EXPORT to LIBCALL in _WINDLL case
* ==========================================================================
*/
#ifndef _NCBISTD_
#define _NCBISTD_
#if !defined(NDEBUG) && !defined(_DEBUG)
# define NDEBUG
#endif
#include <ncbilcl.h>
#ifndef _WIN32
# include <stdint.h>
#endif
#include <ncbiopt.h>
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
#define OTHER_ENDIAN 0
#endif
#ifndef BYTE_ORDER
#ifdef IS_LITTLE_ENDIAN
#define BYTE_ORDER LITTLE_ENDIAN
#else
#ifdef IS_BIG_ENDIAN
#define BYTE_ORDER BIG_ENDIAN
#else
#define BYTE_ORDER OTHER_ENDIAN
#endif
#endif
#endif
#ifndef INLINE
#ifdef __cplusplus
#define INLINE inline
#else
#define INLINE
#endif
#endif
/*----------------------------------------------------------------------*/
/* Aliased Logicals, Datatypes */
/*----------------------------------------------------------------------*/
#ifndef PNTR
#define PNTR *
#endif
#ifndef HNDL
#define HNDL *
#endif
#ifndef FnPtr
typedef int (*Nlm_FnPtr)(void);
#define FnPtr Nlm_FnPtr
#endif
#ifndef VoidPtr
typedef void PNTR Nlm_VoidPtr;
#define VoidPtr Nlm_VoidPtr
#endif
#ifndef Pointer
#define Pointer Nlm_VoidPtr
#endif
#ifndef Handle
typedef void HNDL Nlm_Handle;
#define Handle Nlm_Handle
#endif
#ifndef Char
typedef char Nlm_Char, PNTR Nlm_CharPtr;
#define Char Nlm_Char
#define CharPtr Nlm_CharPtr
#endif
#ifndef Uchar
typedef unsigned char Nlm_Uchar, PNTR Nlm_UcharPtr;
#define Uchar Nlm_Uchar
#define UcharPtr Nlm_UcharPtr
#endif
#ifndef Boolean
typedef unsigned char Nlm_Boolean, PNTR Nlm_BoolPtr;
#define Boolean Nlm_Boolean
#define BoolPtr Nlm_BoolPtr
#endif
#ifndef Byte
typedef unsigned char Nlm_Byte, PNTR Nlm_BytePtr;
#define Byte Nlm_Byte
#define BytePtr Nlm_BytePtr
#define BYTE_MAX UCHAR_MAX
#endif
#ifndef Int1
typedef signed char Nlm_Int1, PNTR Nlm_Int1Ptr;
#define Int1 Nlm_Int1
#define Int1Ptr Nlm_Int1Ptr
#define INT1_MIN SCHAR_MIN
#define INT1_MAX SCHAR_MAX
#endif
#ifndef Uint1
typedef unsigned char Nlm_Uint1, PNTR Nlm_Uint1Ptr;
#define Uint1 Nlm_Uint1
#define Uint1Ptr Nlm_Uint1Ptr
#define UINT1_MAX UCHAR_MAX
#endif
#ifndef Int2
typedef short Nlm_Int2, PNTR Nlm_Int2Ptr;
#define Int2 Nlm_Int2
#define Int2Ptr Nlm_Int2Ptr
#define INT2_MIN SHRT_MIN
#define INT2_MAX SHRT_MAX
#endif
#ifndef Uint2
typedef unsigned short Nlm_Uint2, PNTR Nlm_Uint2Ptr;
#define Uint2 Nlm_Uint2
#define Uint2Ptr Nlm_Uint2Ptr
#define UINT2_MAX USHRT_MAX
#endif
#ifndef Int4
typedef signed int Nlm_Int4, PNTR Nlm_Int4Ptr;
#define Int4 Nlm_Int4
#define Int4Ptr Nlm_Int4Ptr
#define INT4_MIN (-2147483647-1)
#define INT4_MAX 2147483647
#endif
#ifndef Uint4
typedef unsigned int Nlm_Uint4, PNTR Nlm_Uint4Ptr;
#define Uint4 Nlm_Uint4
#define Uint4Ptr Nlm_Uint4Ptr
#define UINT4_MAX 4294967295U
#endif
#ifndef TIME_MAX
#define TIME_MAX ULONG_MAX
#endif
#ifndef FloatLo
typedef float Nlm_FloatLo, PNTR Nlm_FloatLoPtr;
#define FloatLo Nlm_FloatLo
#define FloatLoPtr Nlm_FloatLoPtr
#endif
#ifndef FloatHi
typedef double Nlm_FloatHi, PNTR Nlm_FloatHiPtr;
#define FloatHi Nlm_FloatHi
#define FloatHiPtr Nlm_FloatHiPtr
#endif
#ifndef BigScalar
#define BigScalar long
#endif
/*----------------------------------------------------------------------*/
/* Misc Common Macros */
/*----------------------------------------------------------------------*/
#ifndef SIZE_MAX
#define SIZE_MAX MAXALLOC
#endif
#ifndef PATH_MAX
#define PATH_MAX FILENAME_MAX
#endif
#ifndef NULL
#define NULL ((void *)0)
#endif
#ifndef NULLB
#define NULLB '\0'
#endif
#ifndef TRUE
#define TRUE ((Nlm_Boolean)1)
#endif
#ifndef FALSE
#define FALSE ((Nlm_Boolean)0)
#endif
#ifndef MIN
#define MIN(a,b) ((a)>(b)?(b):(a))
#endif
#ifndef MAX
#define MAX(a,b) ((a)>=(b)?(a):(b))
#endif
#ifndef ABS
#define ABS(a) ((a)>=0?(a):-(a))
#endif
#ifndef SIGN
#define SIGN(a) ((a)>0?1:((a)<0?-1:0))
#endif
#ifndef ROUNDUP /* Round A up to the nearest multiple of B */
#define ROUNDUP(A,B) (((A)%(B)) != 0 ? (A)+(B)-((A)%(B)) : (A))
#endif
#ifndef DIM
#define DIM(A) (sizeof(A)/sizeof((A)[0]))
#endif
#ifndef LN2
#define LN2 (0.693147180559945)
#endif
#ifndef LN10
#define LN10 (2.302585092994046)
#endif
/*----------------------------------------------------------------------*/
/* Misc. MS-DOS-isms */
/*----------------------------------------------------------------------*/
#ifndef NEAR
#define NEAR
#endif
#ifndef FAR
#define FAR
#endif
#ifndef CDECL
#define CDECL
#endif
#ifndef PASCAL
#define PASCAL
#endif
#ifndef EXPORT
#define EXPORT
#endif
#ifndef LIBCALL
#ifdef _WINDLL
#define LIBCALL FAR PASCAL EXPORT
#else
#define LIBCALL FAR PASCAL
#endif
#endif
#ifndef LIBCALLBACK
#define LIBCALLBACK FAR PASCAL
#endif
#endif
|