Message ID | 20210228004817.122463-5-alx.manpages@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=e3o1P8D5; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4Dp4Y507mJz9sRR for <incoming@patchwork.ozlabs.org>; Sun, 28 Feb 2021 11:49:45 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 89F0638930DB; Sun, 28 Feb 2021 00:49:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89F0638930DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614473365; bh=FixLbOhgK5wIJDgk/4Q+2cv9wagoAqhe2NOAOg5XQ7s=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=e3o1P8D5LWOXGNG4k8TA6HzB6IgDTPpE9J05vei88yrMit0jHoiwc0GJg5pqQhopD 4UKIDoDbI23uolQOYyiSwGCMq5ZVCy30YCsIJTTN3xJwfg7dOSwPuPt/yPltFxYKRQ tSRXroZ1uokZH6/dYILLNEpL/8jvDD4CEjqMpqFA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 4AFA1388C027 for <libc-alpha@sourceware.org>; Sun, 28 Feb 2021 00:49:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4AFA1388C027 Received: by mail-wm1-x32a.google.com with SMTP id w7so10339787wmb.5 for <libc-alpha@sourceware.org>; Sat, 27 Feb 2021 16:49:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FixLbOhgK5wIJDgk/4Q+2cv9wagoAqhe2NOAOg5XQ7s=; b=DXl06o0XXmWX2zZxY3w405Mvf59RGis2O6PPBqw46XiUvUV8JYHcQ1Vhg0aczMrdqw l8MIxHPVTUDYKRHg8Hp3D5Qet0hEEaEQEh4ByzX1A7SduHaOMjmEFGIcQDgl0J9/aASS fZu5g/FQdBwKMxz+hR1YJg1KbpcW0gI27zce8FK88wF4wKk2SwgFx9t785PxMPXDXjGu GVD+vWW8cn3YUh2PrSz27cXFjtOsb8hI24mnbSJ+aMcH4RzYz4eHsIkeuL2J2X4lwFoC zAaYEcrt/fQcWbfjmdH1OwbolM7pZF1DV06KiyWuuZa2eePWjrOosr6PiPVqrXlSANCA CUfA== X-Gm-Message-State: AOAM533DZxQvRLdJUUPSUgnBeMkH0K5lQlSI27xTCdVaQa7S9oO/2JZq mSCBQ8vsAvYYgW1fIBeSmefZt3gx4509cw== X-Google-Smtp-Source: ABdhPJwidQwhlNrr0ppsgs4y3J3gPKb7f6XFX9gggeJsbjw3Lzas9DYKHvFtilvtbzud2kOZTBBxdg== X-Received: by 2002:a7b:c5d0:: with SMTP id n16mr9075013wmk.27.1614473361533; Sat, 27 Feb 2021 16:49:21 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id o14sm18212145wri.48.2021.02.27.16.49.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Feb 2021 16:49:21 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 04/14] getdirentries.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sun, 28 Feb 2021 01:48:08 +0100 Message-Id: <20210228004817.122463-5-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 In-Reply-To: <20210228004817.122463-1-alx.manpages@gmail.com> References: <20210228004817.122463-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Alejandro Colomar via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Alejandro Colomar <alx.manpages@gmail.com> Cc: Alejandro Colomar <alx.manpages@gmail.com>, linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
man3: SYNOPSIS: Use 'restrict' in prototypes (batch 2)
|
expand
|
diff --git a/man3/getdirentries.3 b/man3/getdirentries.3 index 0deff6371..9bba3cc4b 100644 --- a/man3/getdirentries.3 +++ b/man3/getdirentries.3 @@ -31,8 +31,8 @@ getdirentries \- get directory entries in a filesystem-independent format .nf .B #include <dirent.h> .PP -.BI "ssize_t getdirentries(int " fd ", char *" buf ", size_t " nbytes , -.BI " off_t *" basep ); +.BI "ssize_t getdirentries(int " fd ", char *restrict " buf ", size_t " nbytes , +.BI " off_t *restrict " basep ); .fi .PP .RS -4
glibc uses 'restrict' in getdirentries(). Let's use it here too. .../glibc$ grep_glibc_prototype getdirentries dirent/dirent.h:353: extern __ssize_t getdirentries (int __fd, char *__restrict __buf, size_t __nbytes, __off_t *__restrict __basep) __THROW __nonnull ((2, 4)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/getdirentries.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)