106 lines
2.7 KiB
C
106 lines
2.7 KiB
C
/****************************************************************************
|
|
|
|
|
| (C) Copyright 1985, 1991, 1993, 1996 Novell, Inc.
|
|
| All Rights Reserved.
|
|
|
|
|
| This program is free software; you can redistribute it and/or
|
|
| modify it under the terms of version 2 of the GNU General Public
|
|
| License as published by the Free Software Foundation.
|
|
|
|
|
| This program is distributed in the hope that it will be useful,
|
|
| but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| GNU General Public License for more details.
|
|
|
|
|
| You should have received a copy of the GNU General Public License
|
|
| along with this program; if not, contact Novell, Inc.
|
|
|
|
|
| To contact Novell about this file by physical or electronic mail,
|
|
| you may find current contact information at www.novell.com
|
|
|
|
|
|***************************************************************************
|
|
|
|
|
| NetWare Advance File Services (NSS) module
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
|
|
|
| $Author: taysom $
|
|
| $Date: 2004-12-31 01:10:58 +0530 (Fri, 31 Dec 2004) $
|
|
|
|
|
| $RCSfile$
|
|
| $Revision: 465 $
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
| This module is used to:
|
|
| NSS Library Routine
|
|
|
|
|
| WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
|
|
|
|
|
| This header file should ONLY be used for NSS internal development.
|
|
| This includes Semantic Agents (SA) and Loadable Storage Services (LSS).
|
|
| Any other use may cause conflicts which NSS will NOT fix.
|
|
+-------------------------------------------------------------------------*/
|
|
#ifndef _XLIMITS_H_
|
|
#define _XLIMITS_H_
|
|
|
|
#ifndef _OMNI_H_
|
|
# include <omni.h>
|
|
#endif
|
|
|
|
#if zNETWARE
|
|
#ifndef _LIMITS_H_INCLUDED
|
|
# include <limits.h>
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define MIN_SBYTE SCHAR_MIN
|
|
#define MAX_SBYTE SCHAR_MAX
|
|
#define MIN_BYTE 0U
|
|
#define MAX_BYTE UCHAR_MAX
|
|
|
|
#define MIN_SWORD SHRT_MIN
|
|
#define MAX_SWORD SHRT_MAX
|
|
#define MIN_WORD 0U
|
|
#define MAX_WORD USHR_MAX
|
|
|
|
#define MIN_SLONG LONG_MIN
|
|
#define MAX_SLONG LONG_MAX
|
|
#define MIN_LONG 0U
|
|
#define MAX_LONG ULONG_MAX
|
|
|
|
#ifdef Linux
|
|
|
|
#define MAX_SQUAD I64_CONST(9223372036854775807)
|
|
#define MIN_SQUAD (-MAX_SQUAD - I64_CONST(1))
|
|
|
|
#define MAX_QUAD UI64_CONST(18446744073709551615)
|
|
#define MIN_QUAD UI64_CONST(0)
|
|
|
|
#else
|
|
|
|
#define MAX_SQUAD LONGLONG_MAX
|
|
#define MIN_SQUAD LONGLONG_MIN
|
|
|
|
#ifdef _MSDEVC_
|
|
#define MAX_QUAD _UI64_MAX
|
|
#else
|
|
#define MAX_QUAD ULONGLONG_MAX
|
|
#endif
|
|
#define MIN_QUAD 0U
|
|
|
|
#endif
|
|
|
|
#define MIN_SNINT LONG_MIN
|
|
#define MAX_SNINT LONG_MAX
|
|
#define MIN_NINT 0U
|
|
#define MAX_NINT ULONG_MAX
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* _XLIMITS_H_ */
|