Browse Source

Fixup redefinition of NL_ARGMAX

Eric Andersen 23 years ago
parent
commit
13b74a58c2

+ 1 - 1
libc/sysdeps/linux/common/bits/uClibc_stdio.h

@@ -104,7 +104,7 @@ typedef int __wchar_t;			/* TODO: temporary, as not currently uClibc */
 /**********************************************************************/
 /* TODO -- posix or gnu -- belongs in limits.h and >= 9 for sus */
 /* NOTE: for us it is currently _always_ 9 */
-#define NL_ARGMAX			9
+/*#define NL_ARGMAX			9*/
 
 /* TODO -- where should this go? */
 #ifndef O_LARGEFILE

+ 2 - 2
libc/sysdeps/linux/common/bits/xopen_lim.h

@@ -67,8 +67,8 @@
 
 
 /* Maximum value of `digit' in calls to the `printf' and `scanf'
-   functions.  We have no limit, so return a reasonable value.  */
-#define NL_ARGMAX	_POSIX_ARG_MAX
+   functions.  Posix dictates this should be a minimum of 9 */
+#define NL_ARGMAX	9
 
 /* Maximum number of bytes in a `LANG' name.  We have no limit.  */
 #define NL_LANGMAX	_POSIX2_LINE_MAX