public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] posix1_lim.h little tweak
@ 2004-08-30 10:37 Jakub Jelinek
  2004-08-30 16:55 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2004-08-30 10:37 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

A month ago these 2 defines were changed from the values required by
Unix98 to POSIX 2001 mandated values, but IMHO in order to comply to
Unix98 we need to keep the old values too.

2004-08-30  Jakub Jelinek  <jakub@redhat.com>

	* posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
	not __USE_XOPEN2K, use the Unix98 mandated values.

--- libc/posix/bits/posix1_lim.h.jj	2004-08-04 14:16:14.000000000 +0200
+++ libc/posix/bits/posix1_lim.h	2004-08-04 14:16:14.000000000 +0200
@@ -38,7 +38,11 @@
 #define	_POSIX_ARG_MAX		4096
 
 /* Maximum simultaneous processes per real user ID.  */
-#define	_POSIX_CHILD_MAX	25
+#ifdef __USE_XOPEN2K
+# define _POSIX_CHILD_MAX	25
+#else
+# define _POSIX_CHILD_MAX	6
+#endif
 
 /* Minimal number of timer expiration overruns.  */
 #define _POSIX_DELAYTIMER_MAX	32
@@ -77,7 +81,11 @@
 #endif
 
 /* Number of files one process can have open at once.  */
-#define	_POSIX_OPEN_MAX		20
+#ifdef __USE_XOPEN2K
+# define _POSIX_OPEN_MAX	20
+#else
+# define _POSIX_OPEN_MAX	16
+#endif
 
 /* Number of descriptors that a process may examine with `pselect' or
    `select'.  */

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] posix1_lim.h little tweak
  2004-08-30 10:37 [PATCH] posix1_lim.h little tweak Jakub Jelinek
@ 2004-08-30 16:55 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2004-08-30 16:55 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Glibc hackers

Applied.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-30 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-30 10:37 [PATCH] posix1_lim.h little tweak Jakub Jelinek
2004-08-30 16:55 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).