xref: /openbsd-src/sys/arch/powerpc/include/limits.h (revision 39ef54bd3c88f782799e8263a3c3a00d355071fb)
1*39ef54bdSmillert /*	$OpenBSD: limits.h,v 1.18 2015/04/30 13:42:08 millert Exp $	*/
247bc79e1Srahnds /*	$NetBSD: limits.h,v 1.1 1996/09/30 16:34:28 ws Exp $	*/
347bc79e1Srahnds 
447bc79e1Srahnds /*-
547bc79e1Srahnds  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
647bc79e1Srahnds  * Copyright (C) 1995, 1996 TooLs GmbH.
747bc79e1Srahnds  * All rights reserved.
847bc79e1Srahnds  *
947bc79e1Srahnds  * Redistribution and use in source and binary forms, with or without
1047bc79e1Srahnds  * modification, are permitted provided that the following conditions
1147bc79e1Srahnds  * are met:
1247bc79e1Srahnds  * 1. Redistributions of source code must retain the above copyright
1347bc79e1Srahnds  *    notice, this list of conditions and the following disclaimer.
1447bc79e1Srahnds  * 2. Redistributions in binary form must reproduce the above copyright
1547bc79e1Srahnds  *    notice, this list of conditions and the following disclaimer in the
1647bc79e1Srahnds  *    documentation and/or other materials provided with the distribution.
1747bc79e1Srahnds  * 3. All advertising materials mentioning features or use of this software
1847bc79e1Srahnds  *    must display the following acknowledgement:
1947bc79e1Srahnds  *	This product includes software developed by TooLs GmbH.
2047bc79e1Srahnds  * 4. The name of TooLs GmbH may not be used to endorse or promote products
2147bc79e1Srahnds  *    derived from this software without specific prior written permission.
2247bc79e1Srahnds  *
2347bc79e1Srahnds  * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
2447bc79e1Srahnds  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2547bc79e1Srahnds  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2647bc79e1Srahnds  * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2747bc79e1Srahnds  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2847bc79e1Srahnds  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2947bc79e1Srahnds  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
3047bc79e1Srahnds  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
3147bc79e1Srahnds  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
3247bc79e1Srahnds  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3347bc79e1Srahnds  */
3447bc79e1Srahnds 
3552c13d20Sdrahn #ifndef _POWERPC_LIMITS_H_
3652c13d20Sdrahn #define _POWERPC_LIMITS_H_
377c39cecdSderaadt 
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
4347bc79e1Srahnds 
447c2ef5d9Smillert #if __BSD_VISIBLE
458bc47e72Skettenis #define	SIZE_T_MAX	ULONG_MAX	/* max value for a size_t (historic) */
4647bc79e1Srahnds 
4747bc79e1Srahnds #define	UQUAD_MAX	0xffffffffffffffffULL		/* max unsigned quad */
4847bc79e1Srahnds #define	QUAD_MAX	0x7fffffffffffffffLL		/* max signed quad */
4947bc79e1Srahnds #define	QUAD_MIN	(-0x7fffffffffffffffLL-1)	/* min signed quad */
507c2ef5d9Smillert #endif	/* __BSD_VISIBLE */
517c39cecdSderaadt 
5252c13d20Sdrahn #endif /* _POWERPC_LIMITS_H_ */
53