From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] posix1_lim.h little tweak
Date: Mon, 30 Aug 2004 10:37:00 -0000 [thread overview]
Message-ID: <20040830081926.GC30497@sunsite.ms.mff.cuni.cz> (raw)
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
next reply other threads:[~2004-08-30 10:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-30 10:37 Jakub Jelinek [this message]
2004-08-30 16:55 ` Ulrich Drepper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040830081926.GC30497@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).