Message ID | 20210308185331.242176-24-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=r284Axvu; 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 4DvSGS5xXTz9sWR for <incoming@patchwork.ozlabs.org>; Tue, 9 Mar 2021 05:55:44 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 71CAF3955698; Mon, 8 Mar 2021 18:54:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71CAF3955698 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229675; bh=rLsFjN+Exl2DzKNvjDznri6PodD6CUlqyITRugu7FhQ=; 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=r284AxvuHCZXST+y0PQIOEwnGVHQyJ63BlbKMGRQOWpb0wl8L3ufra73spsZ5lorX vZjBRCERZkt+GWtnk6nFwPwafUCQuvN2SAxdDIQi5MyMv8biEGBesYHuMxvMcm0Mzd CAP1ZdQ6zWIeNW3d2iAsK7SIQlJU8CGdg7Q0f038= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 726653955434 for <libc-alpha@sourceware.org>; Mon, 8 Mar 2021 18:54:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 726653955434 Received: by mail-wr1-x42e.google.com with SMTP id j2so12575534wrx.9 for <libc-alpha@sourceware.org>; Mon, 08 Mar 2021 10:54:32 -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=rLsFjN+Exl2DzKNvjDznri6PodD6CUlqyITRugu7FhQ=; b=hhyngxY0TQe3m/22Jb1MmPcHf5qex5GpTrCxcdctdsdG1GphC/q+43+bDNWodlmkrn xv3bn+TL+vQbqiFcewXk9L1aoPh4wPy+ToA/mDRS9ZawWiOLvSJ1W3u/ob0svu9RO6n4 CbsLOF90QeJFdwz5RmmyZFsjZR2T7ajTWYdhzL8YzaXXOn1r8+tF+PCf2+sv1wzFoVEO Eb5HeTvaetjyXzE97M31Xo5bJzUiIs/V7qeGEyGKBUtkYYTCCvtKbMc9WNif2biPeUd2 RurgkqpeChCbo943wtFnb/wq8n0peGgruO3LFlbg4NbvOlVWV3rh5TgSczuQIZwcE0Np YwzQ== X-Gm-Message-State: AOAM530jLJtnv8G86s8r8iimNil4ZPmqI8Ma7Hd6KZJWcLaWGG7AmWug Y77mqlTjWWLtnwzmsQE/Q/M= X-Google-Smtp-Source: ABdhPJwi5TvjyKbjwo9BCxUvNTaD8ZXvGlAm25Iq4figH8+q21NRCgiCXdczFYyfLkwenfPaWb+6kw== X-Received: by 2002:adf:e481:: with SMTP id i1mr8968275wrm.63.1615229671709; Mon, 08 Mar 2021 10:54:31 -0800 (PST) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id i11sm19889921wro.53.2021.03.08.10.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:31 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 23/23] scandir.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:32 +0100 Message-Id: <20210308185331.242176-24-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308185331.242176-1-alx.manpages@gmail.com> References: <20210308185331.242176-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 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 4)
|
expand
|
diff --git a/man3/scandir.3 b/man3/scandir.3 index 262e125c1..50328130f 100644 --- a/man3/scandir.3 +++ b/man3/scandir.3 @@ -78,7 +78,7 @@ a directory for matching entries .BR "#include <fcntl.h>" " /* Definition of AT_* constants */" .B #include <dirent.h> .PP -.BI "int scandirat(int " dirfd ", const char *" dirp ", struct dirent ***" namelist , +.BI "int scandirat(int " dirfd ", const char *restrict " dirp ", struct dirent ***restrict " namelist , .BI " int (*" filter ")(const struct dirent *)," .BI " int (*" compar ")(const struct dirent **," .BI " const struct dirent **));"
glibc uses 'restrict' in scandirat(). Let's use it here too. .../glibc$ grep_glibc_prototype scandirat dirent/dirent.h:293: extern int scandirat (int __dfd, const char *__restrict __dir, struct dirent ***__restrict __namelist, int (*__selector) (const struct dirent *), int (*__cmp) (const struct dirent **, const struct dirent **)) __nonnull ((2, 3)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/scandir.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)