This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
remaining posix for RTEMS
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "newlib at sources dot redhat dot com" <newlib at sources dot redhat dot com>
- Date: Wed, 5 Nov 2008 16:15:41 -0600
- Subject: remaining posix for RTEMS
Hi Jeff,
Attached is the remaining remnants of
my local changes to use the newlib posix
directory for RTEMS.
_POSIX2_RE_DUP_MAX is referenced by ./libc/posix/utils.h
and used in regcomp.c. So it has to be defined in limits.h
just like in the Linux version.
The other change is just to remove an unneeded include file.
2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/limits.h, sys/rtems/include/limits.h:
Add _POSIX2_RE_DUP_MAX.
* sys/rtems/sys/param.h: sys/rtprio.h not needed.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
Index: libc/include/limits.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/limits.h,v
retrieving revision 1.3
diff -u -r1.3 limits.h
--- libc/include/limits.h 31 Oct 2008 21:03:41 -0000 1.3
+++ libc/include/limits.h 5 Nov 2008 22:11:14 -0000
@@ -9,6 +9,10 @@
# define MB_LEN_MAX 1
# endif
+/* The maximum number of repeated occurrences of a regular expression
+ * permitted when using the interval notation `\{M,N\}'. */
+#define _POSIX2_RE_DUP_MAX 255
+
/* Maximum number of positional arguments, if _WANT_IO_POS_ARGS. */
# ifndef NL_ARGMAX
# define NL_ARGMAX 32
Index: libc/sys/rtems/include/limits.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/rtems/include/limits.h,v
retrieving revision 1.2
diff -u -r1.2 limits.h
--- libc/sys/rtems/include/limits.h 16 Jan 2003 22:37:53 -0000 1.2
+++ libc/sys/rtems/include/limits.h 5 Nov 2008 22:11:14 -0000
@@ -42,6 +42,9 @@
#define _POSIX_OPEN_MAX 16
#define _POSIX_PATH_MAX 255
#define _POSIX_PIPE_BUF 512
+/* The maximum number of repeated occurrences of a regular expression
+ * * permitted when using the interval notation `\{M,N\}'. */
+#define _POSIX2_RE_DUP_MAX 255
#define _POSIX_RTSIG_MAX 8
#define _POSIX_SEM_NSEMS_MAX 256
#define _POSIX_SEM_VALUE_MAX 32767
Index: libc/sys/rtems/sys/param.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/rtems/sys/param.h,v
retrieving revision 1.3
diff -u -r1.3 param.h
--- libc/sys/rtems/sys/param.h 7 May 2004 20:29:24 -0000 1.3
+++ libc/sys/rtems/sys/param.h 5 Nov 2008 22:11:14 -0000
@@ -93,7 +93,6 @@
#include <sys/resource.h>
#include <sys/ucred.h>
#include <sys/uio.h>
-#include <sys/rtprio.h>
#ifndef FALSE
#define FALSE 0