From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 8A1E53858D38 for ; Sat, 11 May 2024 09:23:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A1E53858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8A1E53858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715419387; cv=none; b=GHKPYCZlsScLU1YAcHuNfuNSqkUjNWjqxiAVPLd1W2ab01SZVuDgn/x4sdyMUDRmne8aa/+otdWTys64B7d373FRCKtOqAZbiVpqU1N+/uQMlJVNEVCUO4jBPWmH22wG7Ss2DrfqCWJaY9nUOceWHwp+a4S6aYvbQn/bPrBGArI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715419387; c=relaxed/simple; bh=Nh3fg8CpvbSw8lzqNo70z2V+Bpk3Hz+7jKMIygefvdQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dMrk9uWmtd4BcANndGQGgz6YBcYSid6KgT6IZ+/jeSJiIOXkNiU2pTGzjzJDxRhWmEMSPo6XzTzp8W2It5yjzsQxaZk06bdOZ0I4LnPBUg0SgEqJzhYI3A5CoTz35hfvMoD4rl+fAbOScmixVo543C3gG6VVuRssOKxoHPiHUQw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715419385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MfmGP055lcPM3/LwV8wgXynXS5QRn6YrAXedC1QZTfQ=; b=Eq9ry+5f1w7JSptlVPWixZq2cPDa4Cn85Ud8cURIdYLtyaasgsQAa65KBK5lc2BtK8dkqc 4p3wN1Al81P4W9bTnIBH3BYKHQ8/c3yluo7xzdqg53E+nEXpiqAKX4Ze2vlhNmNaCfV0FC PkTRRrjYNjDv4/E7FP3UBN8sh91eZcA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-274-AiHrlFKTO3aP5GwaZ6qT5Q-1; Sat, 11 May 2024 05:23:03 -0400 X-MC-Unique: AiHrlFKTO3aP5GwaZ6qT5Q-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4D56581227E for ; Sat, 11 May 2024 09:23:03 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7548440004D; Sat, 11 May 2024 09:23:02 +0000 (UTC) From: Florian Weimer To: DJ Delorie Cc: libc-alpha@sourceware.org Subject: Re: manual: add dup3 In-Reply-To: (DJ Delorie's message of "Fri, 10 May 2024 17:35:28 -0400") References: Date: Sat, 11 May 2024 11:23:00 +0200 Message-ID: <87msowem8b.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * DJ Delorie: > diff --git a/manual/llio.texi b/manual/llio.texi > index 2086e04afd..675d30ba2b 100644 > --- a/manual/llio.texi > +++ b/manual/llio.texi > @@ -3520,6 +3520,14 @@ middle of calling @code{dup2} at which @var{new} is closed and not yet a > duplicate of @var{old}. > @end deftypefun > > +@deftypefun int dup3 (int @var{old}, int @var{new}, int @var{flags}) > +@standards{Linux, unistd.h} > +@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} I think you can drop the @prelim{} if you want. > +This function is the same as @code{dup2} but creates the new > +descriptor as if it had been opened with flags @var{flags}. The only > +allowed flag is @code{O_CLOEXEC}. > +@end deftypefun Looks good. Reviewed-by: Florian Weimer Thanks, Florian