public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowitz@sourceware.org> To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: define _POSIX_ASYNCHRONOUS_IO Date: Wed, 25 Jul 2018 18:00:00 -0000 [thread overview] Message-ID: <20180725180055.26066.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f6417be2aa98e9da0aca22fbbe2a2a7c39a6f45b commit f6417be2aa98e9da0aca22fbbe2a2a7c39a6f45b Author: Yaakov Selkowitz <yselkowi@redhat.com> Date: Wed Jul 25 10:48:55 2018 -0500 Cygwin: define _POSIX_ASYNCHRONOUS_IO This feature is now available as of the recent AIO commits. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com> Diff: --- newlib/libc/include/sys/features.h | 2 +- winsup/cygwin/sysconf.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h index 2900b33..f28dd07 100644 --- a/newlib/libc/include/sys/features.h +++ b/newlib/libc/include/sys/features.h @@ -425,7 +425,7 @@ extern "C" { #endif #define _POSIX_ADVISORY_INFO 200809L -/* #define _POSIX_ASYNCHRONOUS_IO -1 */ +#define _POSIX_ASYNCHRONOUS_IO 200809L #define _POSIX_BARRIERS 200809L #define _POSIX_CHOWN_RESTRICTED 1 #define _POSIX_CLOCK_SELECTION 200809L diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc index ff98f57..753febc 100644 --- a/winsup/cygwin/sysconf.cc +++ b/winsup/cygwin/sysconf.cc @@ -528,7 +528,7 @@ static struct {cons, {c:SIGQUEUE_MAX}}, /* 18, _SC_SIGQUEUE_MAX */ {cons, {c:TIMER_MAX}}, /* 19, _SC_TIMER_MAX */ {nsup, {c:0}}, /* 20, _SC_TZNAME_MAX */ - {cons, {c:-1L}}, /* 21, _SC_ASYNCHRONOUS_IO */ + {cons, {c:_POSIX_ASYNCHRONOUS_IO}}, /* 21, _SC_ASYNCHRONOUS_IO */ {cons, {c:_POSIX_FSYNC}}, /* 22, _SC_FSYNC */ {cons, {c:_POSIX_MAPPED_FILES}}, /* 23, _SC_MAPPED_FILES */ {cons, {c:-1L}}, /* 24, _SC_MEMLOCK */
reply other threads:[~2018-07-25 18:00 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=20180725180055.26066.qmail@sourceware.org \ --to=yselkowitz@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ --cc=newlib-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: linkBe 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).