From patchwork Wed Jul 25 15:49:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 142861 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp977767ljj; Wed, 25 Jul 2018 08:50:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd2qx7VEv7DokoouuQoDVLaS5BUOaHVlmbnvWuoajfNxWGTbtU/GnnayYkwBYGI3ZN+ePhX X-Received: by 2002:a63:4e5f:: with SMTP id o31-v6mr21357526pgl.256.1532533810532; Wed, 25 Jul 2018 08:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532533810; cv=none; d=google.com; s=arc-20160816; b=HrflX9L1DPOqydnRBki/xxgUJ74JMooB/XK4fuzIG7L7Onw3+2grkHhWyCECBc76fk heA1GOQQigxey6GowiXjW/SSbPtfsOmQbwJFWCmbi5HivXixJqLxinm+0K5DCCCwo6b4 tgxOzL88MJTNo39rK+UVsbiP7RPOK501faWehg7gTbrKy8cWCA0v62cQHtDW3gwRM7jl 49fGN+WEmWsU/hT/XTzFYLK8egqgLpZNm/weSCt6yVCQHyuO7UQLBLoToitAu4Q4BfAH txtxc/vKIdEimIPk0Y2xgOlAkFekXxdqL6hkXCFW7rHSjSO8P+U8INpnNXQD/PLJP/XC +eog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:delivered-to:sender:list-help :list-post:list-archive:list-subscribe:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=4kyPD532saKw3mD6LNYh87o8GxNX+U8rf6ICwhD30B0=; b=Oeg+VG3Iw8zyME+HdW32RXLESuoJiYjvC0PrI+yE3Q2ZYFYRGM/WXQjwuQfb7ClNdG vFdzkTUVCgll4yWvgMytqOWdCmRdZfoZxYtjjI00QZHwRUv78zOs6ZgwKmjWe0ihTnaW Ou7qCd0Jss/nKMfZ5tWEpO63EFgYqhHtmZCJ9gu8Z9Jkt+F7JFVTD0pOPKNOy1yEZOCq jx7kOu1p8wYX9dtX5G5SAiGKh/7J7YNW/RjxZ9d2EaUDHnJjMcKhCOYRAC1muqZeiaA4 OnCav7F9FsYrWvm4JQBq9atr8NHOmPP7tCpPZNoN1OjCZjKhlAz8uagzPWx8//BN43rO PutQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=W3dL23N+; spf=pass (google.com: domain of newlib-return-16114-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="newlib-return-16114-patch=linaro.org@sourceware.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id y23-v6si14076240pgl.132.2018.07.25.08.50.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 08:50:10 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-16114-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=W3dL23N+; spf=pass (google.com: domain of newlib-return-16114-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="newlib-return-16114-patch=linaro.org@sourceware.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=k1HpGUZGNZviX8KJJr0IuzMfbKq0VKlK2cLK8fw1q7Jv56dLvhB0A MRLonqoYPpeyCBPAUiFjFx5W7hn9BR2WVuZdKU3i5fiVXoW2XZnEoXeBwSUbXQ44 T36hDcS68Z79TAaezudQN8wqNOxbFhbPqVM2iiZPldFMqvZjc+in0k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=AgsalWHSZR7Jt7PgbnY0fUM2ZWc=; b=W3dL23N+nytA60mgxn3gs5JQaDU+ bOuXoJlSOMuR8Xw2qkCYVhI8NU13lu52joOaFSaCnrBOierRWnoq3JMbDGyM0qS4 M10DpGQRdU84kP09aZAvcWzGEOqBOFQkhkJpoCqSMk7+OgwuNx2x7MivcZF65JDs 8LK/omyntZvvDiY= Received: (qmail 124363 invoked by alias); 25 Jul 2018 15:50:02 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 123505 invoked by uid 89); 25 Jul 2018 15:50:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:newlib@ X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Jul 2018 15:50:00 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 90D23401DEA9 for ; Wed, 25 Jul 2018 15:49:59 +0000 (UTC) Received: from yselkowitz.redhat.com (ovpn-122-107.rdu2.redhat.com [10.10.122.107]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 536452142F20 for ; Wed, 25 Jul 2018 15:49:59 +0000 (UTC) From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH] Cygwin: define _POSIX_ASYNCHRONOUS_IO Date: Wed, 25 Jul 2018 10:49:54 -0500 Message-Id: <20180725154954.28700-1-yselkowi@redhat.com> This feature is now available as of the recent AIO commits. Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/sys/features.h | 2 +- winsup/cygwin/sysconf.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h index 2900b332f..f28dd071b 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 ff98f57a3..753febca4 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 */