From patchwork Fri Mar 5 23:50:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1448295 Return-Path: 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=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) 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=m6VA0eE3; dkim-atps=neutral Received: from sourceware.org (unknown [8.43.85.97]) (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 4Dskyy6V2Hz9sVt for ; Sat, 6 Mar 2021 10:51:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C1546384A01D; Fri, 5 Mar 2021 23:51:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1546384A01D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614988277; bh=KzSqTTh1AEi4UgtdPe6yOO/bHgAaiMTwJedd1yqDn4k=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=m6VA0eE3hqNzKsrr4k03+/+F/Uw+i18JXCi+t3jK9w597SpIPC6FbklRcIdJCyt1R 2wBU5rdznzHbs/JcUc8zYJHBamNZTRL3IigNthQGhoWC96XsdVLdel317THnJ6uXAP gmqfvTUN3+y2AsR97aQcDLq66u2Tb08vhpAh+s3Q= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 397213857C40 for ; Fri, 5 Mar 2021 23:51:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 397213857C40 Received: by mail-wr1-x431.google.com with SMTP id e10so3881818wro.12 for ; Fri, 05 Mar 2021 15:51:15 -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=KzSqTTh1AEi4UgtdPe6yOO/bHgAaiMTwJedd1yqDn4k=; b=rA4pcIPYllKtwQZe5cvczXAFBjZoMBI9KAdxClij2LIK+FBrVZOnti7uwS0dzwUOGk hfrGNpzIk4XUqpgaXOk1RIas2gP645OPulq6eIcmd+Sa7yE3ilsDAIYnWfoXbGR0WozO 1EBK0V7dUqBvITj0JrUcHl5oTDPOgmgbKMr+kQkwLONFUjQkf7+RCffjE6tlxN2jdRDT BREMJaKU4KA1t0n29tz49X/cPmslCfynv3fhGvogvr2vUabUiziEalTWRUZVGG+O5a0b F0PQWKq+KYfrlGH1gxltUC/mx0lmGsmqq9rwp1xTUbspQOx1hYqYL0O8qPWCzuYB5KMd FS9w== X-Gm-Message-State: AOAM5315hAE85FSZZy81Gi/7S9oul85dws60IL+EwYaS7mlDdwU0fMvP N2nsIOUiTN/yoF/8mnNQBs4= X-Google-Smtp-Source: ABdhPJwFgD5e9G058wW1yA/eOFlWTucD5WkvZvFxnHlKXI7NjIFJiRgHAGQa4xTShxbisBNU1VepXw== X-Received: by 2002:a05:6000:147:: with SMTP id r7mr11843775wrx.25.1614988274192; Fri, 05 Mar 2021 15:51:14 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id f7sm7219835wrm.36.2021.03.05.15.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 15:51:13 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 00/22] man3: SYNOPSIS: Use 'restrict' in prototypes (batch 3) Date: Sat, 6 Mar 2021 00:50:44 +0100 Message-Id: <20210305235105.177359-1-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 MIME-Version: 1.0 X-Spam-Status: No, score=-6.2 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org, Heinrich Schuchardt Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Hi Michael, This fixes up to pthread_attr_setguardsize.3 to use 'restrict'. Please have a special look at printf.3, because of the ffix. Also, I included in this patchset one patch about 'volatile': malloc_hook.3. I introduced it by accident into this patch set, and I'm too lazy to remove it :P I have no other patches related to 'volatile' pending. If you think it's likely that there are more cases, please tell me, and I'll try to have a look (I'd have to create a list of man[23] variables for that, similar to man_lsfunc()). Cheers, Alex Alejandro Colomar (22): getservent_r.3: SYNOPSIS: Use 'restrict' in prototypes getsubopt.3: SYNOPSIS: Use 'restrict' in prototypes glob.3: SYNOPSIS: Use 'restrict' in prototypes iconv.3: SYNOPSIS: Use 'restrict' in prototypes inet_ntop.3: SYNOPSIS: Use 'restrict' in prototypes inet_pton.3: SYNOPSIS: Use 'restrict' in prototypes lio_listio.3: SYNOPSIS: Use 'restrict' in prototypes makecontext.3: SYNOPSIS: Use 'restrict' in prototypes malloc_hook.3: SYNOPSIS: Use 'volatile' in prototypes mbrlen.3: SYNOPSIS: Use 'restrict' in prototypes mbrtowc.3: SYNOPSIS: Use 'restrict' in prototypes mbsnrtowcs.3: SYNOPSIS: Use 'restrict' in prototypes mbsrtowcs.3: SYNOPSIS: Use 'restrict' in prototypes mbstowcs.3: SYNOPSIS: Use 'restrict' in prototypes mbtowc.3: SYNOPSIS: Use 'restrict' in prototypes mempcpy.3: SYNOPSIS: Use 'restrict' in prototypes mq_getattr.3: SYNOPSIS: Use 'restrict' in prototypes mq_receive.3: SYNOPSIS: Use 'restrict' in prototypes posix_spawn.3: SYNOPSIS: Use 'restrict' in prototypes posix_spawn.3: SYNOPSIS: Use 'restrict' in prototypes printf.3: SYNOPSIS: Use 'restrict' in prototypes; ffix too pthread_attr_setguardsize.3: SYNOPSIS: Use 'restrict' in prototypes man3/getservent_r.3 | 21 +++++++++++++-------- man3/getsubopt.3 | 4 ++-- man3/glob.3 | 4 ++-- man3/iconv.3 | 4 ++-- man3/inet_ntop.3 | 4 ++-- man3/inet_pton.3 | 3 ++- man3/lio_listio.3 | 4 ++-- man3/makecontext.3 | 6 ++++-- man3/malloc_hook.3 | 10 +++++----- man3/mbrlen.3 | 3 ++- man3/mbrtowc.3 | 5 +++-- man3/mbsnrtowcs.3 | 5 +++-- man3/mbsrtowcs.3 | 4 ++-- man3/mbstowcs.3 | 3 ++- man3/mbtowc.3 | 3 ++- man3/mempcpy.3 | 7 +++++-- man3/mq_getattr.3 | 4 ++-- man3/mq_receive.3 | 6 +++--- man3/posix_spawn.3 | 18 ++++++++++-------- man3/printf.3 | 29 ++++++++++++++++++----------- man3/pthread_attr_setguardsize.3 | 4 ++-- 21 files changed, 88 insertions(+), 63 deletions(-)