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