From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F00BC001DB for ; Thu, 3 Aug 2023 16:07:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbjHCQHm convert rfc822-to-8bit (ORCPT ); Thu, 3 Aug 2023 12:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234311AbjHCQHl (ORCPT ); Thu, 3 Aug 2023 12:07:41 -0400 Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 166263A93 for ; Thu, 3 Aug 2023 09:07:36 -0700 (PDT) References: User-agent: mu4e 1.10.4; emacs 30.0.50 From: Sam James To: =?utf-8?B?0L3QsNCx?= Cc: "Alejandro Colomar (man-pages)" , linux-man@vger.kernel.org Subject: Re: [PATCH] fsync.2: no writability requirements, must operate on directories Date: Thu, 03 Aug 2023 17:07:00 +0100 Organization: Gentoo In-reply-to: Message-ID: <87y1isnm7w.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org наб writes: > [[PGP Signed Part:Undecided]] > POSIX has for a long time implied that directories are fsyncable, > and since Issue 8 explicitly specifies directory syncing semantics: > https://www.austingroupbugs.net/view.php?id=672 > > Simultaneously, directories being unopenable for writing is a > Longest-Standing UNIX Semantic, present in the UNIX Programmer's Manual > under directory (V), and has always been enshrined in the standards. > > Kill the FUD that says that some UNIXes require the fd to be writable: > they /must not/ and this confuses users: > https://101010.pl/@eater@cijber.social/110824211348995583 Must not, or need not be? > > Signed-off-by: Ahelenia Ziemiańska > --- > man2/fsync.2 | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/man2/fsync.2 b/man2/fsync.2 > index 1043e6a1b..9ced40b28 100644 > --- a/man2/fsync.2 > +++ b/man2/fsync.2 > @@ -155,12 +155,6 @@ .SH VERSIONS > .\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L. > .\" -1: unavailable, 0: ask using sysconf(). > .\" glibc defines them to 1. > -.PP > -On some UNIX systems (but not Linux), > -.I fd > -must be a > -.I writable > -file descriptor. > .SH STANDARDS > POSIX.1-2008. > .SH HISTORY