From patchwork Sun Apr 4 11:58:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 42884 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 1330B3851C29; Sun, 4 Apr 2021 11:59:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1330B3851C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617537582; bh=05/KP7vJhvkE2Vr+ZV4ZGftwCp2ksqL5BUThcW4yjm8=; 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=EzZb7KkjM6yvq+aAjd6EiML5oWkiEa7uSryH2ost8cIJhgQ3Z9RdsLKv4VpzlG5ZO 61WMIixOKxMG07z3h+x92YE0E7hyg0efZRgaTOT3n9SkqXpl/UKdEQyGKVs83F7+MR zlCI1r6voKm/Z0Z8he8TqpHWcPd9+zcq6QCbeCxM= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 3E9AB385E83A for ; Sun, 4 Apr 2021 11:59:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3E9AB385E83A Received: by mail-wr1-x430.google.com with SMTP id f6so2514191wrv.12 for ; Sun, 04 Apr 2021 04:59:37 -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=05/KP7vJhvkE2Vr+ZV4ZGftwCp2ksqL5BUThcW4yjm8=; b=tyXh67FCDcLFSD1sf/1xcPXCSjOlZGKnpY/Ff5NTcLiM/b9AISSIyfNZJJdSlopm+H dQwWFztKobpLy+r4n4+byvJHwFmHlnnSyEE0iMKtosuhjdrvo8i9PYKkaThUn39rPPBQ g5UnLwloOMW2CyeAYtzQ/gPJwD9HqRj9hGYI1/vkjrlOILucpjxTJhna4uJsPYKYvFPP hL+mZyUjhSlWabb9wvqCkxq87sMuGoGlTs2x4yQHY5MC/NlAUMVmIFTmlARuzSky788G CgwoS7Qtp0r34NoS0ocnd5KF0embIP3KBVtcNgCbCPbU5C7q/kjVmkOgoD9KlKJoujws 5zSA== X-Gm-Message-State: AOAM5327H/vMyK6r68K+werOewvGcz8f+E27QvjJM+of5cedJhAXDoWO W6qa2MdRvKnQfB29N9VLMy0l9y3sK/M= X-Google-Smtp-Source: ABdhPJxy5rISy9sztUqf6n9fU87Z4VMV+h82xLJFBoIQwRTEIu27vfg3EaDM5XwW0sFXavfbiVIbsQ== X-Received: by 2002:a5d:6b50:: with SMTP id x16mr23941507wrw.379.1617537576460; Sun, 04 Apr 2021 04:59:36 -0700 (PDT) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id u2sm23786967wrp.12.2021.04.04.04.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 04:59:36 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v5 05/35] access.2: Use syscall(SYS_...); for system calls without a wrapper Date: Sun, 4 Apr 2021 13:58:18 +0200 Message-Id: <20210404115847.78166-6-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210403194026.102818-1-alx.manpages@gmail.com> References: <20210403194026.102818-1-alx.manpages@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 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" Signed-off-by: Alejandro Colomar --- man2/access.2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/man2/access.2 b/man2/access.2 index 4a6e28db3..f24a73161 100644 --- a/man2/access.2 +++ b/man2/access.2 @@ -49,15 +49,20 @@ access, faccessat, faccessat2 \- check user's permissions for a file .PP .BI "int access(const char *" pathname ", int " mode ); .PP -.BR "#include " "/* Definition of AT_* constants */" +.BR "#include " " /* Definition of " AT_* " constants */" .B #include .PP .BI "int faccessat(int " dirfd ", const char *" pathname ", int " \ mode ", int " flags ); /* But see C library/kernel differences, below */ .PP -.BI "int faccessat2(int " dirfd ", const char *" pathname ", int " \ -mode ", int " flags ); +.BR "#include " " /* Definition of " AT_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_faccessat2," +.BI " int " dirfd ", const char *" pathname ", int " mode \ +", int " flags ); .fi .PP .RS -4