GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GsTypes.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
21 #ifndef GWS_TYPES_H
22 #define GWS_TYPES_H
23 
25 
30 #include <sys/types.h>
31 typedef mode_t mode_gw; // permission for files Read, write or execute
32 typedef off_t off_gw; // offset type
33 typedef size_t size_gw; // size type - something like unsigned int or long
34 
35 // Maximum length for any multibyte character for standard 32-bit words.
36 
37 /* Minimum and maximum values a `signed 8 bits' can hold. */
38 #define GWS_SCHAR_MIN (-128)
39 #define GWS_SCHAR_MAX 127
40 
41 /* Maximum value an `unsigned 8 bits' can hold. */
42 #define GWS_UCHAR_MIN 0
43 #define GWS_UCHAR_MAX 255
44 
45 /* Minimum and maximum values a `signed 16 bits' can hold. */
46 #define GWS_SINT16_MIN (-32768)
47 #define GWS_SINT16_MAX 32767
48 
49 /* Maximum value an `unsigned 16 bits' can hold. */
50 #define GWS_UINT16_MIN 0
51 #define GWS_UINT16_MAX 65535
52 
53 /* Minimum and maximum values a `signed 32 bits' can hold. */
54 #define GWS_SINT32_MAX 2147483647
55 #define GWS_SINT32_MIN (-GS_SINT32_MAX - 1)
56 
57 /* Maximum value an `unsigned 32 bits' can hold. */
58 #define GWS_UINT32_MIN 0
59 #define GWS_UINT32_MAX 4294967295U
60 
61 /* Minimum and maximum values a `signed 64 bits' can hold. */
62 #define GWS_SINT64_MAX 2147483647L
63 #define GWS_SINT64_MIN (-GS_SINT64_MAX - 1L)
64 
65 /* Maximum value an `unsigned 64 bits' can hold. */
66 #define GWS_UINT64_MIN 0
67 #define GWS_UINT64_MAX 4294967295UL
68 
69 #endif
off_t off_gw
Definition: GsTypes.h:32
size_t size_gw
Definition: GsTypes.h:33
mode_t mode_gw
redefinition of some system types
Definition: GsTypes.h:31