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 17648 invoked from network); 27 Oct 2020 07:02:47 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 27 Oct 2020 07:02:47 -0000 Received: (qmail 22032 invoked by uid 550); 27 Oct 2020 07:02:45 -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 21999 invoked from network); 27 Oct 2020 07:02:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dIeWlTWThJfHgpEG3vO9AT5C+NsCbTXNqMtmoYstENE=; b=Xr40A1Nu7qc9dztQVLlIxDNZUtKfub09+jRl4oLOq4k9MtaaxeCh6yazlNXkYmx52G MAlBzgv/3WaYsqQNO4jZ6OBRQG4JGg2CtMiS7Y2S4P79U1F7idnsZbogBnJIz9b75TP8 MLsv9n50Q2Ho5o5wr+Xn6VZO+SXwGPhof3FVYutIvcEjsm4c21UhDvdsDaY4ZDeDVrnb oP/tByxQgKaet8epAX/UlZhtyOSzImnvG95Wwco/YvS262CbqBuHA09kcWZPamuEYXMe EbIpk0Kvm5A6MbhUtreLFrYSJiYmO/ATO8aoi91o0wajFkA6Q3VSW8Z6UeQ+EDUOMUhd X7dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dIeWlTWThJfHgpEG3vO9AT5C+NsCbTXNqMtmoYstENE=; b=ng/AZUHE0MlpOlhpbZw1r37XdIN65RJ2jGWlupePMVIc003qD13AbSj6YOdRprnHBf VMzGVrg6yF9/yw+D3m9dW7t2xWtg2fJ16EdqI81HZI4XeeQW6Q2KWV9v8lUQwWFSzua9 mgP118iSMB7zevDEMdVzZJeIPyt9c4MT5bZlSVzFWFwJ/KmQ/uMMHWttXfoVBfTRbL37 jf93+h7kKQYKULCAz5hpiOY4NvbE5U8yt9dqSzVPJ1VtBiNDyW386iDjWs/zdxNskNlN VL8c/cldWvBaUtaG+OapikjNI+jBj9QT4GYiME5YUEuNJ207AymrEZpTG1ye3zWuyokC 5fAQ== X-Gm-Message-State: AOAM532humkihjBWcIeM5/4NZcJvkyoPj0oGHbh5aGpdiaWwYXuAR9Az jtje57YSEaFMlBfwPD05cGQ= X-Google-Smtp-Source: ABdhPJyCpu7dkYc7DTDlSEAvT+pCMp0yGSg6JZAGMQdSZguJuTYpKrZ2nGBz5dcH4f6qvepD0NetEw== X-Received: by 2002:adf:eac6:: with SMTP id o6mr1020680wrn.117.1603782153354; Tue, 27 Oct 2020 00:02:33 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, musl@lists.openwall.com, ericonr@disroot.org To: =?UTF-8?Q?=c3=89rico_Rolim?= References: <20200913141808.GM3265@brightrain.aerifal.cx> From: "Michael Kerrisk (man-pages)" Message-ID: <7f4ad844-7552-64e4-0206-432f2bc938f6@gmail.com> Date: Tue, 27 Oct 2020 08:02:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: [musl] Re: [PATCH v3] posix_fallocate.3: add EOPNOTSUPP error code. Hello Éric, On 10/27/20 12:21 AM, Érico Rolim wrote: > 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. Thanks. Patch applied. (By the way, your mailer is wrapping text in the patch; I manually fixed.) Thanks, Michael > --- > > Made a small correction to the formatting for fd. > > man3/posix_fallocate.3 | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/man3/posix_fallocate.3 b/man3/posix_fallocate.3 > index 3152dd54f..8ea37261a 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 > +.I 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. > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/