xref: /openbsd-src/sys/arch/m88k/include/limits.h (revision 39ef54bd3c88f782799e8263a3c3a00d355071fb)
1*39ef54bdSmillert /*	$OpenBSD: limits.h,v 1.7 2015/04/30 13:42:08 millert Exp $ */
23180e169Smiod /*
33180e169Smiod  * Copyright (c) 1988, 1993
43180e169Smiod  *	The Regents of the University of California.  All rights reserved.
53180e169Smiod  *
63180e169Smiod  * Redistribution and use in source and binary forms, with or without
73180e169Smiod  * modification, are permitted provided that the following conditions
83180e169Smiod  * are met:
93180e169Smiod  * 1. Redistributions of source code must retain the above copyright
103180e169Smiod  *    notice, this list of conditions and the following disclaimer.
113180e169Smiod  * 2. Redistributions in binary form must reproduce the above copyright
123180e169Smiod  *    notice, this list of conditions and the following disclaimer in the
133180e169Smiod  *    documentation and/or other materials provided with the distribution.
143180e169Smiod  * 3. Neither the name of the University nor the names of its contributors
153180e169Smiod  *    may be used to endorse or promote products derived from this software
163180e169Smiod  *    without specific prior written permission.
173180e169Smiod  *
183180e169Smiod  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
193180e169Smiod  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
203180e169Smiod  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
213180e169Smiod  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
223180e169Smiod  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
233180e169Smiod  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
243180e169Smiod  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
253180e169Smiod  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
263180e169Smiod  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
273180e169Smiod  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
283180e169Smiod  * SUCH DAMAGE.
293180e169Smiod  *
303180e169Smiod  *	from: @(#)limits.h	8.3 (Berkeley) 1/4/94
313180e169Smiod  */
323180e169Smiod 
332fa72412Spirofti #ifndef _M88K_LIMITS_H_
342fa72412Spirofti #define _M88K_LIMITS_H_
353180e169Smiod 
367c2ef5d9Smillert #include <sys/cdefs.h>
377c2ef5d9Smillert 
387c2ef5d9Smillert #if __POSIX_VISIBLE || __XPG_VISIBLE
398bc47e72Skettenis #define	SSIZE_MAX	LONG_MAX	/* max value for a ssize_t */
407c2ef5d9Smillert #endif
413180e169Smiod 
427c2ef5d9Smillert #if __BSD_VISIBLE
438bc47e72Skettenis #define	SIZE_T_MAX	ULONG_MAX	/* max value for a size_t (historic) */
443180e169Smiod 
453180e169Smiod /* GCC requires that quad constants be written as expressions. */
463180e169Smiod #define	UQUAD_MAX	((u_quad_t)0-1)	/* max value for a uquad_t */
473180e169Smiod 					/* max value for a quad_t */
483180e169Smiod #define	QUAD_MAX	((quad_t)(UQUAD_MAX >> 1))
493180e169Smiod #define	QUAD_MIN	(-QUAD_MAX-1)	/* min value for a quad_t */
507c2ef5d9Smillert #endif /* __BSD_VISIBLE */
513180e169Smiod 
522fa72412Spirofti #endif /* _M88K_LIMITS_H_ */
53