Subversion Repositories shark

Rev

Rev 510 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42 pj 1
/* Project:     OSLib
2
 * Description: The OS Construction Kit
3
 * Date:                1.6.2000
4
 * Idea by:             Luca Abeni & Gerardo Lamastra
5
 *
6
 * OSLib is an SO project aimed at developing a common, easy-to-use
7
 * low-level infrastructure for developing OS kernels and Embedded
8
 * Applications; it partially derives from the HARTIK project but it
9
 * currently is independently developed.
10
 *
11
 * OSLib is distributed under GPL License, and some of its code has
12
 * been derived from the Linux kernel source; also some important
13
 * ideas come from studying the DJGPP go32 extender.
14
 *
15
 * We acknowledge the Linux Community, Free Software Foundation,
16
 * D.J. Delorie and all the other developers who believe in the
17
 * freedom of software and ideas.
18
 *
19
 * For legalese, check out the included GPL license.
20
 */
21
 
22
/*	Some POSIX compliance stuff	*/
23
 
24
#ifndef __LL_I386_LIMITS_H__
25
#define __LL_I386_LIMITS_H__
26
 
27
/* Number limits */
28
 
29
#define CHAR_BIT	8
30
#define CHAR_MAX	255
31
#define CHAR_MIN	0
32
#define SCHAR_MAX	127
33
#define SCHAR_MIN	-128
510 giacomo 34
#define UCHAR_MAX	255
42 pj 35
 
36
#define INT_MAX    	2147483647
37
#define INT_MIN		(-INT_MAX - 1)
38
#define UINT_MAX  	4294967295U
39
 
507 giacomo 40
#define SHRT_MIN        (-32768)
41
#define SHRT_MAX        32767
42
#define USHRT_MAX       65535
43
 
42 pj 44
#define LONG_MAX	2147483647L
45
#define LONG_MIN	(-LONG_MAX - 1)
46
#define ULONG_MAX	4294967295UL
47
 
48
#endif