Message ID | 20240629205907.16215-1-joel@rtems.org |
---|---|
State | New |
Headers |
Return-Path: <newlib-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 53DD2389F4FB for <patchwork@sourceware.org>; Sat, 29 Jun 2024 20:59:27 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) by sourceware.org (Postfix) with ESMTPS id 627FB389EC96 for <newlib@sourceware.org>; Sat, 29 Jun 2024 20:59:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 627FB389EC96 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 627FB389EC96 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.171 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719694753; cv=none; b=AHhop5Ua+JDQT2FRcCkWIW8p4ZRGS3qGxYtfKhkrFJt8Yq/MNqJ+HKiYCWfqsEVDBIpau6mVtQ2HEGT8SSFulDK9jQHVvyZYXYUHDxfA1RLUoljvuPCmpdGsI28ym/S//s1TYLZ6wRz1RqLuN1g4KqL9cLVEEoH3oNhxlwTDOaY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719694753; c=relaxed/simple; bh=YGuVTz/GvLuAnVmRHio4zwrif9JoQDz/nxBrtUEkO3M=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=mOfRAUMx9rb1BzeHe3CqnbjNRv1svlZzU9tuY0aTnCiNkzNVl82cGsao9DvoRTUPeADu86ooZt8ELm+0yeGlIhDAgJZznqlSYPRWzH7sQkSRhuhMiBCkDApZteOd00mQfVwiBC452q7PKOtNzfwYsRMcKN8GgsfoGbsYc4fQaro= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-64b101294c0so15376687b3.1 for <newlib@sourceware.org>; Sat, 29 Jun 2024 13:59:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719694750; x=1720299550; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vQame9P2pURos8UZ7bgggz+oePKzcl5hokNN78kzjsA=; b=b5HM1atjnfG9tIPKMkkI1W/wCwUG+G1U+ITeyiAnp6TZpQKIMZ8vq0+7dErGNwSxIM YVI9umkfzBecfm3mc4oLNInNstoqo350s+1OpJ0Kq4Gzqdv4Ju3cDGbQ7vLnLgXl0CyC XtMcQAU+kOYbjowFZqhoECHtxHslOyzhTq8AK0VH7CP7/0qQSmZInNPuUD5+KJb0HfCG BTK7/M3dFguK6CDD9ntbfpVz4SA0nQLccyAZOhL3t9G1KoqwcawpcWKjoScaHHU9HeRq JbypR8crElbvD0igVy8DbysOzjBHTiAss4OJGk3MxVS7+2TvdS6RIyH5N7Q0MN5HeWTI ytHQ== X-Gm-Message-State: AOJu0YySSS4vTOoo7ZmszJ3e27f00in/LCbdvtBndi+7JfbMzuOvh89k 3rBOAD0+zt5n7HBukrOZIUqviUYtusK++kaxs97PHewafAN44wpjT3WeRVcM X-Google-Smtp-Source: AGHT+IE2FAGVes9W1mtLOrIyqL5gPX0q0ilSUoR10UulDFdURRGqzgYvUUPj/afhh13H2HbAdmIipA== X-Received: by 2002:a81:431e:0:b0:62f:a250:632b with SMTP id 00721157ae682-64c7123bf6bmr17957747b3.8.1719694750254; Sat, 29 Jun 2024 13:59:10 -0700 (PDT) Received: from devel.oarcorp.com (d27-96-189-151.evv.wideopenwest.com. [96.27.151.189]) by smtp.gmail.com with ESMTPSA id 00721157ae682-64a9c4068c4sm7952337b3.134.2024.06.29.13.59.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2024 13:59:09 -0700 (PDT) From: Joel Sherrill <joel@rtems.org> To: newlib@sourceware.org Cc: Joel Sherrill <joel@rtems.org> Subject: [PATCH] libc/include/sys/_default_fcntl.h: O_RSYNC and O_DSYNC are POSIX Date: Sat, 29 Jun 2024 15:59:07 -0500 Message-Id: <20240629205907.16215-1-joel@rtems.org> X-Mailer: git-send-email 2.24.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3038.8 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces+patchwork=sourceware.org@sourceware.org |
Series |
libc/include/sys/_default_fcntl.h: O_RSYNC and O_DSYNC are POSIX
|
|
Commit Message
Joel Sherrill
June 29, 2024, 8:59 p.m. UTC
These should not be in a Cygewin conditional. --- newlib/libc/include/sys/_default_fcntl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Comments
On Jun 29 15:59, Joel Sherrill wrote: > These should not be in a Cygewin conditional. > --- > newlib/libc/include/sys/_default_fcntl.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h > index ce721fa23..148e97dd2 100644 > --- a/newlib/libc/include/sys/_default_fcntl.h > +++ b/newlib/libc/include/sys/_default_fcntl.h > @@ -71,11 +71,12 @@ extern "C" { > #define O_DIRECT _FDIRECT > #endif > > +#define O_DSYNC _FSYNC > +#define O_RSYNC _FSYNC > + > #if defined (__CYGWIN__) > #define O_BINARY _FBINARY > #define O_TEXT _FTEXT > -#define O_DSYNC _FSYNC > -#define O_RSYNC _FSYNC > > /* Linux-specific flags */ > #if __GNU_VISIBLE > -- > 2.24.4 LGTM, please push. Thanks, Corinna
Merged. Thanks. --joel On Wed, Jul 3, 2024 at 6:15 AM Corinna Vinschen <vinschen@redhat.com> wrote: > On Jun 29 15:59, Joel Sherrill wrote: > > These should not be in a Cygewin conditional. > > --- > > newlib/libc/include/sys/_default_fcntl.h | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/newlib/libc/include/sys/_default_fcntl.h > b/newlib/libc/include/sys/_default_fcntl.h > > index ce721fa23..148e97dd2 100644 > > --- a/newlib/libc/include/sys/_default_fcntl.h > > +++ b/newlib/libc/include/sys/_default_fcntl.h > > @@ -71,11 +71,12 @@ extern "C" { > > #define O_DIRECT _FDIRECT > > #endif > > > > +#define O_DSYNC _FSYNC > > +#define O_RSYNC _FSYNC > > + > > #if defined (__CYGWIN__) > > #define O_BINARY _FBINARY > > #define O_TEXT _FTEXT > > -#define O_DSYNC _FSYNC > > -#define O_RSYNC _FSYNC > > > > /* Linux-specific flags */ > > #if __GNU_VISIBLE > > -- > > 2.24.4 > > LGTM, please push. > > Thanks, > Corinna > >
diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h index ce721fa23..148e97dd2 100644 --- a/newlib/libc/include/sys/_default_fcntl.h +++ b/newlib/libc/include/sys/_default_fcntl.h @@ -71,11 +71,12 @@ extern "C" { #define O_DIRECT _FDIRECT #endif +#define O_DSYNC _FSYNC +#define O_RSYNC _FSYNC + #if defined (__CYGWIN__) #define O_BINARY _FBINARY #define O_TEXT _FTEXT -#define O_DSYNC _FSYNC -#define O_RSYNC _FSYNC /* Linux-specific flags */ #if __GNU_VISIBLE