xref: /openbsd-src/sys/arch/arm/include/limits.h (revision 39ef54bd3c88f782799e8263a3c3a00d355071fb)
1*39ef54bdSmillert /*	$OpenBSD: limits.h,v 1.7 2015/04/30 13:42:08 millert Exp $	*/
2e1e4f5b1Sdrahn /*	$NetBSD: limits.h,v 1.4 2003/04/28 23:16:18 bjh21 Exp $	*/
3e1e4f5b1Sdrahn 
4e1e4f5b1Sdrahn /*
5e1e4f5b1Sdrahn  * Copyright (c) 1988 The Regents of the University of California.
6e1e4f5b1Sdrahn  * All rights reserved.
7e1e4f5b1Sdrahn  *
8e1e4f5b1Sdrahn  * Redistribution and use in source and binary forms, with or without
9e1e4f5b1Sdrahn  * modification, are permitted provided that the following conditions
10e1e4f5b1Sdrahn  * are met:
11e1e4f5b1Sdrahn  * 1. Redistributions of source code must retain the above copyright
12e1e4f5b1Sdrahn  *    notice, this list of conditions and the following disclaimer.
13e1e4f5b1Sdrahn  * 2. Redistributions in binary form must reproduce the above copyright
14e1e4f5b1Sdrahn  *    notice, this list of conditions and the following disclaimer in the
15e1e4f5b1Sdrahn  *    documentation and/or other materials provided with the distribution.
16e1e4f5b1Sdrahn  * 3. Neither the name of the University nor the names of its contributors
17e1e4f5b1Sdrahn  *    may be used to endorse or promote products derived from this software
18e1e4f5b1Sdrahn  *    without specific prior written permission.
19e1e4f5b1Sdrahn  *
20e1e4f5b1Sdrahn  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21e1e4f5b1Sdrahn  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22e1e4f5b1Sdrahn  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23e1e4f5b1Sdrahn  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24e1e4f5b1Sdrahn  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25e1e4f5b1Sdrahn  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26e1e4f5b1Sdrahn  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27e1e4f5b1Sdrahn  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28e1e4f5b1Sdrahn  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29e1e4f5b1Sdrahn  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30e1e4f5b1Sdrahn  * SUCH DAMAGE.
31e1e4f5b1Sdrahn  *
32e1e4f5b1Sdrahn  *	from: @(#)limits.h	7.2 (Berkeley) 6/28/90
33e1e4f5b1Sdrahn  */
34e1e4f5b1Sdrahn 
352fa72412Spirofti #ifndef	_ARM_LIMITS_H_
362fa72412Spirofti #define	_ARM_LIMITS_H_
37e1e4f5b1Sdrahn 
387c2ef5d9Smillert #include <sys/cdefs.h>
397c2ef5d9Smillert 
407c2ef5d9Smillert #if __POSIX_VISIBLE || __XPG_VISIBLE
418bc47e72Skettenis #define	SSIZE_MAX	LONG_MAX	/* max value for a ssize_t */
427c2ef5d9Smillert #endif
43e1e4f5b1Sdrahn 
447c2ef5d9Smillert #if __BSD_VISIBLE
458bc47e72Skettenis #define	SIZE_T_MAX	ULONG_MAX	/* max value for a size_t (historic) */
46e1e4f5b1Sdrahn 
47e1e4f5b1Sdrahn #define	UQUAD_MAX	0xffffffffffffffffULL		/* max unsigned quad */
48e1e4f5b1Sdrahn #define	QUAD_MAX	0x7fffffffffffffffLL		/* max signed quad */
49e1e4f5b1Sdrahn #define	QUAD_MIN	(-0x7fffffffffffffffLL-1)	/* min signed quad */
50e1e4f5b1Sdrahn 
517c2ef5d9Smillert #endif /* __BSD_VISIBLE */
52e1e4f5b1Sdrahn 
532fa72412Spirofti #endif	/* _ARM_LIMITS_H_ */
54