From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6636 invoked from network); 13 Sep 2020 16:10:28 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 13 Sep 2020 16:10:28 -0000 Received: (qmail 1475 invoked by uid 550); 13 Sep 2020 16:10:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 27899 invoked from network); 13 Sep 2020 15:50:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/E7cx5L8JtvOfQMgPCP65sK6s7G0QiBQXi3QJz+yIPg=; b=cAmbgfG1EZBnQ8vO8VmD9tSi6HyPz0KdTiYYRZYzRP9V26gQL2r8VnDnZtgHZjp72F VkHOm5ZBquuvKEntffBxiFmH33Ar4tMExlPkEnPiEqWH+sE7GLgjzB3SRniEL9Da7bVj STkttcw8ZTUjQFWJG+TY0T4tBgijasp4XZ7ltQ+lF97n6a8H/KtJx+RoLOsp3r8g1bWE bLWPSF6LBtfyXBMNOrNEBS1t/7O7VBYId0Y3zNRu6vfBqH4/zg0LqroBVp58GmRZ57Oo 3m0+i6viG2VUynhTrsXrmu+4o/UsS9YUdM48zslDSlCPROH7kmqAq1x7qS/vQXaOssLo Dkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/E7cx5L8JtvOfQMgPCP65sK6s7G0QiBQXi3QJz+yIPg=; b=tBaExpc8n+kCFpSCe+pirN9k6EJC9qVCDhkZde7Dbgo5gW3grtC0Hd12Itown+0tFG 9zFY7mLX4H20SJtCQbOueNBgYKzJldMlfxZsN3ZM90IZ6CTNYtWqGsVIham6XizTz84s uYbfm6njYCwpHvXpl/uX3EEtCpmLqMfyQ7pVMSlOLYDhx5FgYn/PBt58bGVuNB5QbeL2 e6Ezvf62K9+K0X7meoYko5J36aYDHUdYg6DeXdhmZcIGiKq1PEThenNBKu25wVitlOA0 bAAIfLoI4TGl7D5K8kxZtTRau7Fw3FNyfsHXzirLwQ8cjbmSJmedUkmZc4Zus/ljPoHC 4+8g== X-Gm-Message-State: AOAM5315jW9g5LNCXwn261eJABBL740Fp78tcJuUF5orF3M1LlJ586nw Fpn4fu9Pah1r/6XqZPkEY70lR1u4Ep6nVBu1hao= X-Google-Smtp-Source: ABdhPJzr2EzmsKgzz/b7dEzGgGM0X2pw+SUDYEdx1pgK+TB5YWmcegu/nNq7HRY/Y8f6wHAknf7dUwY5uX1k9D+MCWI= X-Received: by 2002:a17:902:7606:: with SMTP id k6mr10444556pll.171.1600012199357; Sun, 13 Sep 2020 08:49:59 -0700 (PDT) MIME-Version: 1.0 References: <20200913141808.GM3265@brightrain.aerifal.cx> In-Reply-To: <20200913141808.GM3265@brightrain.aerifal.cx> From: =?UTF-8?B?w4lyaWNvIFJvbGlt?= Date: Sun, 13 Sep 2020 12:49:48 -0300 Message-ID: To: mtk.manpages@gmail.com Cc: linux-man@vger.kernel.org, musl@lists.openwall.com, ericonr@disroot.org Content-Type: text/plain; charset="UTF-8" Subject: [musl] [PATCH v2] posix_fallocate.3: add EOPNOTSUPP error code. As can be seen in https://git.musl-libc.org/cgit/musl/tree/src/fcntl/posix_fallocate.c?id=73cc775bee53300c7cf759f37580220b18ac13d3 musl libc returns the syscall's errors directly, which means it doesn't perform the same emulation as glibc, and can return EOPNOTSUPP to an application, which isnt't listed in ERRORS. --- This patch replaces "[patch] posix_fallocate.3: add note about error codes for musl." from https://lore.kernel.org/linux-man/CAFDeuWPmWWHatxnZ9HsYN2fp3gagHOKCsKmVDj0F6us9XWKwFQ@mail.gmail.com/T/#t posix_fallocate(3p) doesn't list EOPNOTSUPP as an error that can be returned to applications. Should it be noted in the man page that this is something added/required by Linux? (I might be mistaken regarding this assumption). man3/posix_fallocate.3 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man3/posix_fallocate.3 b/man3/posix_fallocate.3 index 58338d673..125bcc12b 100644 --- a/man3/posix_fallocate.3 +++ b/man3/posix_fallocate.3 @@ -98,6 +98,13 @@ There is not enough space left on the device containing the file referred to by .IR fd . .TP +.B EOPNOTSUPP +The filesystem containing the file referred to by +.IR fd +does not support this operation. +This error code can be returned by libc's that don't perform the +emulation shown in NOTES, such as musl libc. +.TP .B ESPIPE .I fd refers to a pipe. -- 2.28.0