From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23524 invoked by alias); 30 Aug 2004 10:37:20 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 23503 invoked from network); 30 Aug 2004 10:37:19 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.15.26) by sourceware.org with SMTP; 30 Aug 2004 10:37:19 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id i7U8JQ3j013796; Mon, 30 Aug 2004 10:19:26 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id i7U8JQhL013794; Mon, 30 Aug 2004 10:19:26 +0200 Date: Mon, 30 Aug 2004 10:37:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] posix1_lim.h little tweak Message-ID: <20040830081926.GC30497@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2004-08/txt/msg00082.txt.bz2 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 * 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