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-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id DC8001F8C6 for ; Wed, 7 Jul 2021 10:40:22 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E397F394FC09 for ; Wed, 7 Jul 2021 10:40:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E397F394FC09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1625654421; bh=y7OVJcQjzJYN10ECDuLd726a5tuaG2rH243ZhrfNuWc=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xYnOUHMcGaMt/+DYJm/QGXcv8jynKLz2AjB+H643J7wrnCgZ+eQ6ve6mSl9gd7e4W F5VS38KwDYflF/gCKwxak6kpxxuOruqP3uO80MQlDk6WKeytCS40WQH4992W/c7i1z j5ajmgEMQUQ1HkyheHloVS66vp9QaJFrfvskuRus= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 6F395385702D for ; Wed, 7 Jul 2021 10:40:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6F395385702D Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-106-rUsFtYplPMOWHa1k5xBDSg-1; Wed, 07 Jul 2021 06:39:59 -0400 X-MC-Unique: rUsFtYplPMOWHa1k5xBDSg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 20389800C78; Wed, 7 Jul 2021 10:39:59 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-115-5.ams2.redhat.com [10.36.115.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 474795C1D5; Wed, 7 Jul 2021 10:39:58 +0000 (UTC) To: Adhemerval Zanella via Libc-alpha Subject: Re: [PATCH v7 3/4] io: Add closefrom [BZ #10353] References: <20210706145839.1658623-1-adhemerval.zanella@linaro.org> <20210706145839.1658623-4-adhemerval.zanella@linaro.org> Date: Wed, 07 Jul 2021 12:39:56 +0200 In-Reply-To: <20210706145839.1658623-4-adhemerval.zanella@linaro.org> (Adhemerval Zanella via Libc-alpha's message of "Tue, 6 Jul 2021 11:58:38 -0300") Message-ID: <87bl7e9zlv.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Florian Weimer via Libc-alpha Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" * Adhemerval Zanella via Libc-alpha: > diff --git a/manual/llio.texi b/manual/llio.texi > index ea6d34dd5a..d1ed9e6490 100644 > --- a/manual/llio.texi > +++ b/manual/llio.texi > @@ -332,6 +332,16 @@ The kernel does not implement the required functiona= lity. > @end table > @end deftypefun > =20 > +@deftypefun void closefrom (int @var{lowfd}) > +@standards{GNU, unistd.h} > +@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{@acsfd{}}} > + > +The function @code{closefrom} closes all file descriptors larger than or= equal > +to @var{lowfd} then @var{lowfd}. This function is similar to call > +@code{close} applied to the specified file descriptor range. > + > +Already closed file descriptors are ignored. > +@end deftypefun Suggest: =E2=80=9CThis function is similar to calling @code{close} for all= open file descriptors not less than @var{lowfd}.=E2=80=9D Code changes look okay to me. Thanks, Florian