From patchwork Thu Feb 4 11:17:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1435958 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=itCzwssY; 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 4DWbcq0JCkz9sW4 for ; Thu, 4 Feb 2021 22:17:47 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8D0DB38708FB; Thu, 4 Feb 2021 11:17:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D0DB38708FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1612437464; bh=m2Nh4wy6H4f7XsK8R15suGd+a8wv1BZ+LKt/hFuPwjc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=itCzwssYhoTI9HZCGMUMhwKYRvlYYiLFCAkVoashzQJQ0NliCMXbwj5Qo1471IsHZ Yj+dLm8HuIwKHOHmsY3+/mqzFsVejsqF7riy7hPEQ8KaCZ85nY7CNZSDl1LrrgdiCf CqJhEq4zqTWR2Vr+HypY+HYOq+VtJ6cRXUtRRN6M= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 9CE173846074 for ; Thu, 4 Feb 2021 11:17:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9CE173846074 Received: by mail-wm1-x331.google.com with SMTP id j11so2771778wmi.3 for ; Thu, 04 Feb 2021 03:17:41 -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=m2Nh4wy6H4f7XsK8R15suGd+a8wv1BZ+LKt/hFuPwjc=; b=mNbEoeeHIyNUzTjAXHFfAD760lIburhjqo10E3L7jcP7KzpKi/Wmovwr915UBNYgQ9 TXW1SYGZYqqzdya1IBgP0kKu3p6qfb6yXRLF3ak05hGs0KfVhphbYNdExeITQ5UG2FUs DSw90vJ1ipJIGwytA/qAp6kgLvT+yC6Q4KJaRJu31Y6aGioM0Pge2NRoVREUeU/MaHJF ChfHM8JJxWnqO+JmT/lPL/xHH8QijWyYTTkEWXSzVbxQ8im597pJeq+HRT5ozUwgEdHw V5MTwCsu+GPm+BfkY7hk/FEToZD+U43P5ZF4QZelgMyplNu7Y01pNqr5SXQPUkueNPk6 y+yA== X-Gm-Message-State: AOAM532/SrsfWLN8a7bNWRCvcjDX6B9WccDgrq1dn/XKFpVX33BA7wdl imtF99f+8yUmi90uJhfX+OM= X-Google-Smtp-Source: ABdhPJxvC6vwm9vTfIVqQ13zCRDqzMTIp7XCzkLyR+kTfNJEs1jhiXJIh8g0L0AZDLVkGdUFcS/4wA== X-Received: by 2002:a1c:b1c3:: with SMTP id a186mr7075117wmf.8.1612437460809; Thu, 04 Feb 2021 03:17:40 -0800 (PST) Received: from debian.vlc ([170.253.51.130]) by smtp.gmail.com with ESMTPSA id i6sm6999712wrs.71.2021.02.04.03.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 03:17:40 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH] mlock.2: mlock2(): Fix prototype parameter types Date: Thu, 4 Feb 2021 12:17:33 +0100 Message-Id: <20210204111732.194599-1-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 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 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 Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" .../glibc$ grep_syscall_wrapper mlock2 sysdeps/unix/sysv/linux/bits/mman-shared.h:55: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) __THROW; .../glibc$ function grep_syscall_wrapper() { if ! [ -v 1 ]; then >&2 echo "Usage: ${FUNCNAME[0]} "; return ${EX_USAGE}; fi find * -type f \ |grep '\.h$' \ |sort -V \ |xargs pcregrep -Mn \ "(?s)^[^\s#][\w\s]+\s+\**${1}\s*\([\w\s()[\]*,]*?(...)?\)[\w\s()]*;" \ |sed -E 's/^[^:]+:[0-9]+:/&\n/'; } Signed-off-by: Alejandro Colomar --- man2/mlock.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/mlock.2 b/man2/mlock.2 index 2822df7cf..f48d632c4 100644 --- a/man2/mlock.2 +++ b/man2/mlock.2 @@ -31,7 +31,7 @@ mlock, mlock2, munlock, mlockall, munlockall \- lock and unlock memory .B #include .PP .BI "int mlock(const void *" addr ", size_t " len ); -.BI "int mlock2(const void *" addr ", size_t " len ", int " flags ); +.BI "int mlock2(const void *" addr ", size_t " len ", unsigned int " flags ); .BI "int munlock(const void *" addr ", size_t " len ); .PP .BI "int mlockall(int " flags );