_limits.h (621) | _limits.h (719) |
---|---|
1/* 2 * Copyright (c) 1988 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)limits.h 7.2 (Berkeley) 6/28/90 | 1/* 2 * Copyright (c) 1988 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)limits.h 7.2 (Berkeley) 6/28/90 |
34 * $Id$ | 34 * $Id: limits.h,v 1.2 1993/10/16 14:39:19 rgrimes Exp $ |
35 */ 36 | 35 */ 36 |
37#ifndef _MACHINE_LIMITS_H_ 38#define _MACHINE_LIMITS_H_ 1 39 |
|
37#define CHAR_BIT 8 /* number of bits in a char */ 38#define CLK_TCK 60 /* ticks per second */ 39#define MB_LEN_MAX 1 /* no multibyte characters */ 40 41#define SCHAR_MIN (-0x7f-1) /* max value for a signed char */ 42#define SCHAR_MAX 0x7f /* min value for a signed char */ 43 44#define UCHAR_MAX 0xff /* max value for an unsigned char */ --- 6 unchanged lines hidden (view full) --- 51 52#define UINT_MAX 0xffffffff /* max value for an unsigned int */ 53#define INT_MAX 0x7fffffff /* max value for an int */ 54#define INT_MIN (-0x7fffffff-1) /* min value for an int */ 55 56#define ULONG_MAX 0xffffffff /* max value for an unsigned long */ 57#define LONG_MAX 0x7fffffff /* max value for a long */ 58#define LONG_MIN (-0x7fffffff-1) /* min value for a long */ | 40#define CHAR_BIT 8 /* number of bits in a char */ 41#define CLK_TCK 60 /* ticks per second */ 42#define MB_LEN_MAX 1 /* no multibyte characters */ 43 44#define SCHAR_MIN (-0x7f-1) /* max value for a signed char */ 45#define SCHAR_MAX 0x7f /* min value for a signed char */ 46 47#define UCHAR_MAX 0xff /* max value for an unsigned char */ --- 6 unchanged lines hidden (view full) --- 54 55#define UINT_MAX 0xffffffff /* max value for an unsigned int */ 56#define INT_MAX 0x7fffffff /* max value for an int */ 57#define INT_MIN (-0x7fffffff-1) /* min value for an int */ 58 59#define ULONG_MAX 0xffffffff /* max value for an unsigned long */ 60#define LONG_MAX 0x7fffffff /* max value for a long */ 61#define LONG_MIN (-0x7fffffff-1) /* min value for a long */ |
62#endif /* _MACHINE_LIMITS_H_ */ |
|