From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B11801F4B4 for ; Wed, 6 Jan 2021 11:15:39 +0000 (UTC) Received: from localhost ([::1]:44362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx6mw-0007G6-EQ for normalperson@yhbt.net; Wed, 06 Jan 2021 06:15:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx6mp-0007Fm-Pw for bug-gnulib@gnu.org; Wed, 06 Jan 2021 06:15:33 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.25]:24288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx6mn-0003RY-Kd for bug-gnulib@gnu.org; Wed, 06 Jan 2021 06:15:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1609931726; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:From:Subject:Sender; bh=R1DWn5yqa8l1TEVXmaBfUPpgH3BaqPGwIYn8FKxZOWQ=; b=ZztqE81/Dw5j3I5EoPTLuNqrprB5TlUNhFHtiTMMUY6ipArTtjwofBOIkZ8pT2nmho I+ucA4q/tkWwwDb2X9Q7ncNmyjdnV/Ovoftm4afn6jgxKv/Wf4tSdVv9x/gkFoWskx0I /zphn2x39iu0k786xlkqEzJCS3j5vKZ9TzC5Y929hK2nXfQuP1A8LkDlTQQ1f1jMpbZV 1RGLysw2tv4fh119WxmfrJcEs2bGOR+xmMP0FQSXTQ2dKr95yvDhjLmANxXe0gf7mHf7 fzoXmm3USup6I/oPIRgwtJYu1PCWHy1k6Ml0aNIP3/NKUQon3PAFers7gsrbS83l+Ji5 c55g== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqf3yZdW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.12.1 DYNA|AUTH) with ESMTPSA id u0aa20x06BFQ0dl (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 6 Jan 2021 12:15:26 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: flock: Update documentation Date: Wed, 06 Jan 2021 12:15:25 +0100 Message-ID: <1687029.t975fB1UCM@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.25; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" The documentation of the Gnulib module 'flock' says that no replacement is provided on AIX, HP-UX, Solaris. This is wrong: The lib/flock.c file _does_ provide a replacement in this case, based on fcntl. However, I see a unit test failure for it on Solaris 11.3 and AIX 7.1. I don't know if this is due to different semantics of locking facilities, as described in http://www.perkin.org.uk/posts/solaris-portability-flock.html https://gavv.github.io/articles/file-locks/ https://unix.stackexchange.com/questions/1777/flock2-versus-fcntl2-over-a-nfs 2021-01-06 Bruno Haible flock: Update documentation. * doc/glibc-functions/flock.texi: Document what to expect on AIX and Solaris. diff --git a/doc/glibc-functions/flock.texi b/doc/glibc-functions/flock.texi index 41cca4c..bc93a67 100644 --- a/doc/glibc-functions/flock.texi +++ b/doc/glibc-functions/flock.texi @@ -13,11 +13,12 @@ Portability problems fixed by Gnulib: @item This function is missing on some platforms: mingw, MSVC 14 +@item +This function is missing on some platforms: +AIX 7.1, HP-UX 11.23, Solaris 11.4. +But the replacement function does not really work; it exhibits test failures. @end itemize Portability problems not fixed by Gnulib: @itemize -@item -This function is missing on some platforms: -AIX 5.1, HP-UX 11.23, Solaris 11.4. @end itemize