[Midnightbsd-cvs] src [10979] trunk/include/limits.h: update limits
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Jun 15 16:31:07 EDT 2018
Revision: 10979
http://svnweb.midnightbsd.org/src/?rev=10979
Author: laffer1
Date: 2018-06-15 16:31:06 -0400 (Fri, 15 Jun 2018)
Log Message:
-----------
update limits
Modified Paths:
--------------
trunk/include/limits.h
Modified: trunk/include/limits.h
===================================================================
--- trunk/include/limits.h 2018-06-15 20:30:42 UTC (rev 10978)
+++ trunk/include/limits.h 2018-06-15 20:31:06 UTC (rev 10979)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -27,8 +28,7 @@
* SUCH DAMAGE.
*
* @(#)limits.h 8.2 (Berkeley) 1/4/94
- * $FreeBSD: src/include/limits.h,v 1.16 2003/04/29 13:35:58 kan Exp $
- * $MidnightBSD$
+ * $FreeBSD: stable/10/include/limits.h 293800 2016-01-13 01:32:04Z kevlo $
*/
#ifndef _LIMITS_H_
@@ -60,11 +60,13 @@
#define _POSIX_TZNAME_MAX 3
#endif
+#if __POSIX_VISIBLE >= 200112
#define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */
#define BC_DIM_MAX 2048 /* max array elements in bc(1) */
#define BC_SCALE_MAX 99 /* max scale value in bc(1) */
#define BC_STRING_MAX 1000 /* max const string length in bc(1) */
-#define COLL_WEIGHTS_MAX 0 /* max weights for order keyword */
+#define CHARCLASS_NAME_MAX 14 /* max character class name size */
+#define COLL_WEIGHTS_MAX 10 /* max weights for order keyword */
#define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */
#define LINE_MAX 2048 /* max bytes in an input line */
#define RE_DUP_MAX 255 /* max RE's in interval notation */
@@ -73,11 +75,14 @@
#define _POSIX2_BC_DIM_MAX 2048
#define _POSIX2_BC_SCALE_MAX 99
#define _POSIX2_BC_STRING_MAX 1000
+#define _POSIX2_CHARCLASS_NAME_MAX 14
+#define _POSIX2_COLL_WEIGHTS_MAX 2
#define _POSIX2_EQUIV_CLASS_MAX 2
#define _POSIX2_EXPR_NEST_MAX 32
#define _POSIX2_LINE_MAX 2048
#define _POSIX2_RE_DUP_MAX 255
#endif
+#endif
#if __POSIX_VISIBLE >= 199309
#define _POSIX_AIO_LISTIO_MAX 2
@@ -111,8 +116,6 @@
#define _POSIX_TRACE_SYS_MAX 8
#define _POSIX_TRACE_USER_EVENT_MAX 32
#define _POSIX_TTY_NAME_MAX 9
-#define _POSIX2_CHARCLASS_NAME_MAX 14
-#define _POSIX2_COLL_WEIGHTS_MAX 2
#define _POSIX_RE_DUP_MAX _POSIX2_RE_DUP_MAX
#endif
More information about the Midnightbsd-cvs
mailing list