public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: sysconf: belatedly add correct return value for _SC_DELAYTIMER_MAX
Date: Wed,  2 Mar 2022 21:03:31 +0000 (GMT)	[thread overview]
Message-ID: <20220302210331.9238D3858015@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cf00bba99a6170dd95b23b2f60cf3926d492b7df

commit cf00bba99a6170dd95b23b2f60cf3926d492b7df
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Mar 2 21:54:54 2022 +0100

    Cygwin: sysconf: belatedly add correct return value for _SC_DELAYTIMER_MAX
    
    When adding the timer_getoverrun function, DELAYTIMER_MAX was added
    to limits.h, but the return value of sysconf(_SC_DELAYTIMER_MAX) wasn't
    changed accordingly.  Fix that now.
    
    Fixes: 9e295a8d193e ("Cygwin: posix timers: implement timer_getoverrun")
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/sysconf.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc
index dfd8b33b1..0aa63dd14 100644
--- a/winsup/cygwin/sysconf.cc
+++ b/winsup/cygwin/sysconf.cc
@@ -522,7 +522,7 @@ static struct
   {cons, {c:AIO_LISTIO_MAX}},		/*  34, _SC_AIO_LISTIO_MAX */
   {cons, {c:AIO_MAX}},			/*  35, _SC_AIO_MAX */
   {cons, {c:AIO_PRIO_DELTA_MAX}},	/*  36, _SC_AIO_PRIO_DELTA_MAX */
-  {nsup, {c:0}},			/*  37, _SC_DELAYTIMER_MAX */
+  {cons, {c:DELAYTIMER_MAX}},		/*  37, _SC_DELAYTIMER_MAX */
   {cons, {c:PTHREAD_KEYS_MAX}},		/*  38, _SC_THREAD_KEYS_MAX */
   {cons, {c:PTHREAD_STACK_MIN}},	/*  39, _SC_THREAD_STACK_MIN */
   {cons, {c:-1L}},			/*  40, _SC_THREAD_THREADS_MAX */


                 reply	other threads:[~2022-03-02 21:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220302210331.9238D3858015@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /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).