Message ID | 20210228004817.122463-1-alx.manpages@gmail.com |
---|---|
Headers |
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8252389042B; Sun, 28 Feb 2021 00:49:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8252389042B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614473361; bh=WqcYx/s1vAHztnCVbnt9y1PGCOuanq4tuyyTN3W9zCw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=v4uPyrkOoK9R+sU5M8tWCdzLHyYKeqnMp/GF0t4ZiGtjR/Lm7go5AUrvvvgjGXGMc NhimPSRCl+RC5+I+KslzPPb/YaqyQJpBlxNGCPwJ+8wRJua8x9DvBo+bEhx0tqWqQl Eb7DAJU/5c9uxSRVELGPRxr38a/KqbqDeUh5V2J8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 91416385141F for <libc-alpha@sourceware.org>; Sun, 28 Feb 2021 00:49:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 91416385141F Received: by mail-wr1-x432.google.com with SMTP id n4so12295058wrx.1 for <libc-alpha@sourceware.org>; Sat, 27 Feb 2021 16:49:19 -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:mime-version :content-transfer-encoding; bh=WqcYx/s1vAHztnCVbnt9y1PGCOuanq4tuyyTN3W9zCw=; b=KmabZc67sBQKWBvU0r0ErQVxgmjkshwUg+Cgmi1A3s3VOlX87B0zi8Qx3KM4Qnq8Yu kMm/Caj6JNU2CqhTD6rHJ/HT9LnzEfh647A1AR0QMyCqyQUBXltR/TSEXFkmVvzVokhP IL1VOZO2kqOX3BcuLxNC5a0pNw0naXs/p9bl6ldR5yDS901ZwwPrnfqYLl13sr4oD+cm O4F4Ulk270DWk9d5kQb0z2ocxbs2cUurp/z9550jxNVp8YSr6tWmon1whn2mgtWRf26L vCpggvE+519r6Dy02YdpeRbX/vsfM947PtJKrEhyZ3FaXQbGwPl5r1/hOExEGOf1Uq+X Vl0g== X-Gm-Message-State: AOAM532V19+A8wJ7BZp9Pspko/VJnS4AXwcireUd72rSXbnN/P6sUgkS F9pul+0nwiDIgJOoapobfrw= X-Google-Smtp-Source: ABdhPJwRicqO2J5YcpOGyEyNYcxh1Qj4ZuikgRKTzMXwLW4obH4bRhXl1GdTyqloPLLQBhBspvl33g== X-Received: by 2002:adf:c14a:: with SMTP id w10mr9840699wre.282.1614473358761; Sat, 27 Feb 2021 16:49:18 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id o14sm18212145wri.48.2021.02.27.16.49.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Feb 2021 16:49:18 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 00/14] man3: SYNOPSIS: Use 'restrict' in prototypes (batch 2) Date: Sun, 28 Feb 2021 01:48:04 +0100 Message-Id: <20210228004817.122463-1-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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, Heinrich Schuchardt <xypron.glpk@gmx.de> Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
man3: SYNOPSIS: Use 'restrict' in prototypes (batch 2)
|
|
Message
Alejandro Colomar
Feb. 28, 2021, 12:48 a.m. UTC
Hey Michael, This is the second batch of pages in man3 that use 'restrict'. I have already checked until getrpcport.3. --- A few functions to automate the commit messages: For functions that are restrict in POSIX and glibc: function gitcommit_rp() { local commafuncs="$(echo $@ |sed -e 's/\> \</(), /g' -e 's/$/()/')"; local msg="\ $(man_gitstaged): SYNOPSIS: Use 'restrict' in prototypes Both POSIX and glibc use 'restrict' in ${commafuncs}. Let's use it here too. $(echo "$@" \ |xargs -n1 bash -c \ 'echo ".../glibc$ grep_glibc_prototype $@"; \ echo "$(cd ~/src/gnu/glibc && grep_glibc_prototype $@)"' _) .../glibc$"; git commit -sm "$msg"; } For functions that are restrict in glibc: function gitcommit_rg() { local commafuncs="$(echo $@ |sed -e 's/\> \</(), /g' -e 's/$/()/')"; local msg="\ $(man_gitstaged): SYNOPSIS: Use 'restrict' in prototypes glibc uses 'restrict' in ${commafuncs}. Let's use it here too. $(echo "$@" \ |xargs -n1 bash -c \ 'echo ".../glibc$ grep_glibc_prototype $@"; \ echo "$(cd ~/src/gnu/glibc && grep_glibc_prototype $@)"' _) .../glibc$"; git commit -sm "$msg"; } --- Alejandro Colomar (14): getaddrinfo.3: SYNOPSIS: Use 'restrict' in prototypes getaddrinfo_a.3: SYNOPSIS: Use 'restrict' in prototypes getdate.3: SYNOPSIS: Use 'restrict' in prototypes getdirentries.3: SYNOPSIS: Use 'restrict' in prototypes getgrent_r.3: SYNOPSIS: Use 'restrict' in prototypes getgrnam.3: SYNOPSIS: Use 'restrict' in prototypes gethostbyname.3: SYNOPSIS: Use 'restrict' in prototypes getline.3: SYNOPSIS: Use 'restrict' in prototypes getmntent.3: SYNOPSIS: Use 'restrict' in prototypes getnameinfo.3: SYNOPSIS: Use 'restrict' in prototypes getnetent_r.3: SYNOPSIS: Use 'restrict' in prototypes getprotoent_r.3: SYNOPSIS: Use 'restrict' in prototypes getpwent_r.3: SYNOPSIS: Use 'restrict' in prototypes getpwnam.3: SYNOPSIS: Use 'restrict' in prototypes man3/getaddrinfo.3 | 11 ++++++----- man3/getaddrinfo_a.3 | 12 ++++++------ man3/getdate.3 | 2 +- man3/getdirentries.3 | 4 ++-- man3/getgrent_r.3 | 10 ++++++---- man3/getgrnam.3 | 11 +++++++---- man3/gethostbyname.3 | 31 ++++++++++++++++++++----------- man3/getline.3 | 7 ++++--- man3/getmntent.3 | 8 +++++--- man3/getnameinfo.3 | 8 +++++--- man3/getnetent_r.3 | 23 +++++++++++++---------- man3/getprotoent_r.3 | 17 ++++++++++------- man3/getpwent_r.3 | 11 +++++++---- man3/getpwnam.3 | 11 +++++++---- 14 files changed, 99 insertions(+), 67 deletions(-)
Comments
Hi Alex, On 2/28/21 1:48 AM, Alejandro Colomar wrote: > Hey Michael, > > This is the second batch of pages in man3 that use 'restrict'. > > I have already checked until getrpcport.3. Thanks for doing all of this work! I've applied all of these patches. Cheers, Michael > > --- > > A few functions to automate the commit messages: > > For functions that are restrict in POSIX and glibc: > > function gitcommit_rp() > { > local commafuncs="$(echo $@ |sed -e 's/\> \</(), /g' -e 's/$/()/')"; > local msg="\ > $(man_gitstaged): SYNOPSIS: Use 'restrict' in prototypes > > Both POSIX and glibc use 'restrict' in ${commafuncs}. > Let's use it here too. > > $(echo "$@" \ > |xargs -n1 bash -c \ > 'echo ".../glibc$ grep_glibc_prototype $@"; \ > echo "$(cd ~/src/gnu/glibc && grep_glibc_prototype $@)"' _) > .../glibc$"; > > git commit -sm "$msg"; > } > > For functions that are restrict in glibc: > > function gitcommit_rg() > { > local commafuncs="$(echo $@ |sed -e 's/\> \</(), /g' -e 's/$/()/')"; > local msg="\ > $(man_gitstaged): SYNOPSIS: Use 'restrict' in prototypes > > glibc uses 'restrict' in ${commafuncs}. > Let's use it here too. > > $(echo "$@" \ > |xargs -n1 bash -c \ > 'echo ".../glibc$ grep_glibc_prototype $@"; \ > echo "$(cd ~/src/gnu/glibc && grep_glibc_prototype $@)"' _) > .../glibc$"; > > git commit -sm "$msg"; > } > > --- > Alejandro Colomar (14): > getaddrinfo.3: SYNOPSIS: Use 'restrict' in prototypes > getaddrinfo_a.3: SYNOPSIS: Use 'restrict' in prototypes > getdate.3: SYNOPSIS: Use 'restrict' in prototypes > getdirentries.3: SYNOPSIS: Use 'restrict' in prototypes > getgrent_r.3: SYNOPSIS: Use 'restrict' in prototypes > getgrnam.3: SYNOPSIS: Use 'restrict' in prototypes > gethostbyname.3: SYNOPSIS: Use 'restrict' in prototypes > getline.3: SYNOPSIS: Use 'restrict' in prototypes > getmntent.3: SYNOPSIS: Use 'restrict' in prototypes > getnameinfo.3: SYNOPSIS: Use 'restrict' in prototypes > getnetent_r.3: SYNOPSIS: Use 'restrict' in prototypes > getprotoent_r.3: SYNOPSIS: Use 'restrict' in prototypes > getpwent_r.3: SYNOPSIS: Use 'restrict' in prototypes > getpwnam.3: SYNOPSIS: Use 'restrict' in prototypes > > man3/getaddrinfo.3 | 11 ++++++----- > man3/getaddrinfo_a.3 | 12 ++++++------ > man3/getdate.3 | 2 +- > man3/getdirentries.3 | 4 ++-- > man3/getgrent_r.3 | 10 ++++++---- > man3/getgrnam.3 | 11 +++++++---- > man3/gethostbyname.3 | 31 ++++++++++++++++++++----------- > man3/getline.3 | 7 ++++--- > man3/getmntent.3 | 8 +++++--- > man3/getnameinfo.3 | 8 +++++--- > man3/getnetent_r.3 | 23 +++++++++++++---------- > man3/getprotoent_r.3 | 17 ++++++++++------- > man3/getpwent_r.3 | 11 +++++++---- > man3/getpwnam.3 | 11 +++++++---- > 14 files changed, 99 insertions(+), 67 deletions(-) >