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=-8.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22680 invoked from network); 18 Aug 2022 14:43:29 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 18 Aug 2022 14:43:29 -0000 Received: (qmail 31858 invoked by uid 550); 18 Aug 2022 14:43: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 31813 invoked from network); 18 Aug 2022 14:43:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc; bh=J+xxXMvb68cFhtyLoCJfoVoAupqM0SYbl1s4FiY2mNE=; b=KP8gmV341zsQovSX3CZ713q2kI/cp7P8qkX7qZeqoNkUCJuETMLQU8rNVDmDFBTDgL Jfbc8aNgfsRX+w+tK+LLDfPI7ruJUgCr6R/A9TI/HiTWxPR40sk0P/1PXm87NgisL30B X/T9874KRqVf7x+O+ZsV54oaxa4V3idX6BkXS8Dp6REo20QPzdskGCxPrcwdRuAoesFW tXfImdM7x1YIGvJ1kUI1x1zGI1HNYj77Tq5t0N6xXMrc4ESbw5Po0pPzyIJmXoFVQ8Lw vyTGMUfoosC2v7TCvbjN1ZfI8d/qt2xnDy/2C3JI92kTYWS/+0s8rDjcT65V1ftc1mf1 pedQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc; bh=J+xxXMvb68cFhtyLoCJfoVoAupqM0SYbl1s4FiY2mNE=; b=HLVHfhd/FtWRlQcMjMZDn/NN5ZxfsDMEP4H4k9aYIbVQLowRu2e+lz0F9QKfQUmBo/ jnIAQDYijocr4xkIqEkSQUj6TLyZP6a0UY6pKui8fWpw02X9OkQFnxLEd+pN2gFMnPOh HBxlbmn4rC7qMvdIMp+gEk1xpFPBMtj77qrC9jeXSectWvY72oXM+B83C76yC1pTFKrs pytNCiUUUKez2jekPw6BDEcYqXZ7YcuAlPDEcjeJ/a0yEyVx6bxjLtff5gFObDkS9t7Q 2TN/sEnO++RQMr+RXEWl6ICRcHLXIfowYD4XPUVoMMaD7rxda5W7Fn+GHSWYJCiDLsMe bvxg== X-Gm-Message-State: ACgBeo0divKx3YiWfvQ5WyB0lqhb/nGBtaFmxtom8QLH5cYhkkR/4Urs I+MeaLM9/12EapvrTYw9RgnQ51mIZlPxz+pjIwuo8TVW7bo= X-Google-Smtp-Source: AA6agR4DGR0kc49bbFOXZq4Yg1Z/3iPfibwcZgj43FLNbZf61H9AzvWz2Zdd8VFne3Wxm/ZYY//yLEWHDBz9JF80NkU= X-Received: by 2002:a05:6902:114d:b0:66d:9fa6:4bd4 with SMTP id p13-20020a056902114d00b0066d9fa64bd4mr3053151ybu.362.1660833792628; Thu, 18 Aug 2022 07:43:12 -0700 (PDT) MIME-Version: 1.0 References: <20220810130311.dwk7zxwkz32igrdm@yandex.com> <20220818003531.GG7074@brightrain.aerifal.cx> <85f359ccc0304862e92c39f58b08b770@ispras.ru> In-Reply-To: <85f359ccc0304862e92c39f58b08b770@ispras.ru> From: James Y Knight Date: Thu, 18 Aug 2022 10:42:46 -0400 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="0000000000003e186605e68500fb" Subject: Re: [musl] [PATCH] add close_range() syscall wrapper --0000000000003e186605e68500fb Content-Type: text/plain; charset="UTF-8" On Thu, Aug 18, 2022 at 6:40 AM Alexey Izbyshev wrote: > Glibc doesn't implement a fallback and explicitly says it in the manual. > Using a different implementation in musl seems undesirable. True. I would note, however, that glibc also implements another function "closefrom", which first calls close_range, and if it fails, falls back to iterating /proc/self/fd. --0000000000003e186605e68500fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Aug 18, 2022 at 6:40 AM Alexey Iz= byshev <izbyshev@ispras.ru>= wrote:
Glibc doesn't implement a fallback and explicitly sa= ys it in the manual.
Using a different implementation in musl seems undesirable.

True. I would note, however, that glibc also implements=C2= =A0another function "closefrom", which first calls close_range, a= nd if it fails,=C2=A0falls back=C2=A0to iterating /proc/self/fd.
--0000000000003e186605e68500fb--