From patchwork Mon May 10 17:55:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 43343 Return-Path: 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 82B163987C37; Mon, 10 May 2021 17:56:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82B163987C37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669413; bh=VOvnkfvqobjkJ/yFT9Ru9ZutAmQOD6w5LaM3IZOTU3s=; 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=M4/Vh3xl5fwsMEkvTgkrf42egApjWOyqScbHdY3Ho73ED03JBmfCUe3lS05lA/R+Q 75pWw/VvoHAaJWs/09PSScFsElEvszVU5rYO0JpMtGdjyforwtbz02FmDnBr9N/SCf n6rI7iUm+36x7FfX5xLhYegspPJWHzaRDRgl54U4= 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 83E033987C31 for ; Mon, 10 May 2021 17:56:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 83E033987C31 Received: by mail-wm1-x331.google.com with SMTP id y124-20020a1c32820000b029010c93864955so11657772wmy.5 for ; Mon, 10 May 2021 10:56:50 -0700 (PDT) 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=VOvnkfvqobjkJ/yFT9Ru9ZutAmQOD6w5LaM3IZOTU3s=; b=Pj2h82nBFPj0UA6QP8X4aBUVGQB7wZKuL+ecVhW2lq4auqIImMD0Oh/R70/YNmsjh5 j72bgLa6KofWu8c9PihIUK+1cJ2YLaWN6mRypPkUj+leNgPxqQ7yLpSmlrHVCb3r7vAq bwmogTtwRK3lCNkg5OCCF454MKIlHO7ox/YjDWZNAbxdFdv7BZc0ayTzHcCyVWS6LA42 7eXRxBCT2GhYyLPymwYiohZQ4iHtG8F5oUCilL/u6kGQY+rwxwiQ3TRpZ5MxdJf3Abz+ hW1OPHGPygmypPMJHdADBsJidUWPARRar4JXTQlIT5/3lLVzUXClLPImvpx9pHl8LDBB lMDw== X-Gm-Message-State: AOAM532CNu1hhVMpuBQ91mKcqa4n+lU/Qy/p8H9kKtmGA/+ggBxvCAB9 79Sy9QtfRnuUyO2o3qVqPao= X-Google-Smtp-Source: ABdhPJwa4jQwccBTa7z74FaAh+g2aLTb4oEfQhpIDlpGxFhkJVtbUGma1Oax9+P+ilrHSdGDRCYqHw== X-Received: by 2002:a05:600c:4ca9:: with SMTP id g41mr396022wmp.70.1620669409734; Mon, 10 May 2021 10:56:49 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id m13sm24318830wrw.86.2021.05.10.10.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:49 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 22/39] mmap2.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:31 +0200 Message-Id: <20210510175546.28445-23-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510175546.28445-1-alx.manpages@gmail.com> References: <20210510175546.28445-1-alx.manpages@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 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: Florian Weimer , Jakub Wilk , Alejandro Colomar , libc-alpha@sourceware.org, linux-man@vger.kernel.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Signed-off-by: Alejandro Colomar --- man2/mmap2.2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/man2/mmap2.2 b/man2/mmap2.2 index 6545a8f52..d579a285d 100644 --- a/man2/mmap2.2 +++ b/man2/mmap2.2 @@ -31,11 +31,13 @@ mmap2 \- map files or devices into memory .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " MAP_* " and " PROT_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.BR "#include .PP -.BI "void *mmap2(unsigned long " addr ", unsigned long " length , -.BI " unsigned long " prot ", unsigned long " flags , -.BI " unsigned long " fd ", unsigned long " pgoffset ); +.BI "void *syscall(SYS_mmap2, unsigned long " addr ", unsigned long " length , +.BI " unsigned long " prot ", unsigned long " flags , +.BI " unsigned long " fd ", unsigned long " pgoffset ); .fi .SH DESCRIPTION This is probably not the system call that you are interested in; instead, see