From patchwork Mon May 10 17:55:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 43348 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 BE0B33988892; Mon, 10 May 2021 17:57:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE0B33988892 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669420; bh=ZnGiNPpnl4zTiZh46oCJ46cAdiY6iB3b5ES3yuphXmw=; 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=nZA1ongIHsd00pjaCJc1Wns0k2xmpB7SVpJ+D3hhp9FxYhXWXrfFk19RoyCNxuMYy Izpe6CyDpHf8KeN0g3SUs2UlGE/+txj5jZsfdQH3Snm05q+w4T5OxMBr/KZxFRnVIF 3577oxWebPBzNlzmhv/G3MOitj8WprMuu96A1l7Y= 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 54EE93988888 for ; Mon, 10 May 2021 17:56:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 54EE93988888 Received: by mail-wr1-x430.google.com with SMTP id d11so17520779wrw.8 for ; Mon, 10 May 2021 10:56:57 -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=ZnGiNPpnl4zTiZh46oCJ46cAdiY6iB3b5ES3yuphXmw=; b=rZNg8yVXnViPZf22HUkK7p+9rD0g5olvd6+C9PPlFfedx1nR36aUHxv5zv8fUTfAbC 3SfaAdZK5+3IKv6OR0IVYBKpxlq5EwNnxpm61tfyi0xbPvRhBGfDmVSYNBFeqH/Wm32c oVewwZBeW/tXdOHHdMg/qjldE3RGaevNX0Is58ZMPOV6AH51jvotINVOZV3VSTmzTSQG nWCiRFAQiyr5M0yHlrlI6FIEBQEtIVGIEQcMMAgpUubgz1ZDk9fSjLDe+MiDTUjNhVVD HmKWBx1LM3n2EckEhPd1XSbpesW625iLYgmukMhtDMlcFC9I7l3S+5xf35M41/5OaB4Y vMSg== X-Gm-Message-State: AOAM533LVoYvFehUKObwtkAxZtiFoUllC6ugeNJhshdy0jr6yYrvx5YQ 2tnZGjRRHQtV9QBIW0bcKBk= X-Google-Smtp-Source: ABdhPJwyGr7OyzsFfX/JK8zc2alJi0004ZSOOG0pjjwxF/13irhXX+HI78z2K4MjDBA+u1nyByDiGw== X-Received: by 2002:adf:ec82:: with SMTP id z2mr31890967wrn.214.1620669416525; Mon, 10 May 2021 10:56:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:56 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 27/39] openat2.2: Use syscall(SYS_...); for system calls without a wrapper; fix includes too Date: Mon, 10 May 2021 19:55:36 +0200 Message-Id: <20210510175546.28445-28-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/openat2.2 | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/man2/openat2.2 b/man2/openat2.2 index 1662bd066..efa840206 100644 --- a/man2/openat2.2 +++ b/man2/openat2.2 @@ -26,16 +26,21 @@ openat2 \- open and possibly create a file (extended) .SH SYNOPSIS .nf -.B #include -.B #include -.B #include +.BR "#include " \ +" /* Definition of " O_* " and " S_* " constants */" +.BR "#include " " /* Definition of " RESOLVE_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "long openat2(int " dirfd ", const char *" pathname , -.BI " struct open_how *" how ", size_t " size ); +.BI "long syscall(SYS_openat2, int " dirfd ", const char *" pathname , +.BI " struct open_how *" how ", size_t " size ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR openat2 (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR openat2 () @@ -494,9 +499,6 @@ The semantics of were modeled after FreeBSD's .BR O_BENEATH . .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.\" .SS Extensibility In order to allow for future extensibility, .BR openat2 ()