This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] update sysconf, confstr, limits
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 18 Jul 2011 18:58:12 -0400
- Subject: Re: [PATCH] update sysconf, confstr, limits
- References: <1311028013.7348.5.camel@YAAKOV04>
- Reply-to: cygwin-patches at cygwin dot com
On Mon, Jul 18, 2011 at 05:26:51PM -0500, Yaakov (Cygwin/X) wrote:
>This patch adds return values for recent additions to sysconf() and
>confstr(), and adds a couple of missing <limits.h> defines required by
>POSIX.
>
>This patch, plus the one just posted to newlib@, are required for my
>next patch, a getconf(1) implementation.
>
>
>Yaakov
>Cygwin/X
>
>2011-07-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
>
> * sysconf.cc (sca): Return -1 for _SC_THREAD_ROBUST_PRIO_INHERIT,
> _SC_THREAD_ROBUST_PRIO_PROTECT, and _SC_XOPEN_UUCP.
> (SC_MAX): Redefine accordingly.
> (csa): Return strings for _CS_POSIX_V7_THREADS_CFLAGS,
> _CS_POSIX_V7_THREADS_LDFLAGS, and _CS_V7_ENV.
> (CS_MAX): Redefine accordingly.
> * include/limits.h (LONG_BIT): Define.
> (WORD_BIT): Define.
Looks good. Please check in.
Thanks.
cgf