From patchwork Mon May 10 17:55:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476634 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=BOFZEwGr; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [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 4Ff80K2JV0z9sX3 for ; Tue, 11 May 2021 03:57:37 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B60823987C20; Mon, 10 May 2021 17:56:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B60823987C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669406; bh=AsqpkoZ/SkOKckaFhcO4bnODTkOBOXr+VJ2I/uLLJVM=; 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=BOFZEwGrtm8pSimo4RQjeexVnHQ5vMx16CxPo32NDl80dmjZHbneiphLW9f9GgWMy d298amogzDuOwokW5VrgsaOenP73yyJ+csFveUadSqR3z7tBJe7ACxLnpPZ4x7YgWM UPD4E+UDUkd/ev+E+Lg/TalTDhvTw2nfCRQijXJQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id EA4F03987C19 for ; Mon, 10 May 2021 17:56:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EA4F03987C19 Received: by mail-wm1-x334.google.com with SMTP id o26-20020a1c4d1a0000b0290146e1feccdaso10139615wmh.0 for ; Mon, 10 May 2021 10:56:43 -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=AsqpkoZ/SkOKckaFhcO4bnODTkOBOXr+VJ2I/uLLJVM=; b=mnsa+QrCYhgNmbXp3lLnbEd41ltIr0AGbGiy2UChmMydLQw2zOCmJ5dO6YZ7tOcgsj SEgmaDfe8zO1uSBj6OAYVi4xmoSgBLVcqJGviTW0uSLzcJYsI9CZUIekOA7RBZn3aCgZ BIHEaW1U1DYnmj7NtEddtpASgSJOvfXl3U6iucA/x08uMWQQYuUeFlVhaBtgFQMVmJbF sdO0y8/+jtSxbWtEGOx84XdpCq9E5SVxi/QIUM9Bpdo54twKqJ/slulUerAmzic2ibpb yLHauv5gekmKWYQGqNBS36rVflHuurBOTzHrjvSlHxUsxM4ednHGKYH4YmLi9PC0MTW+ pRiA== X-Gm-Message-State: AOAM531QweQWGcqBaFlBMG45yopT2NN3aJKojfBOzUBfJBBoeMfjcwM9 c6b3j/9ze5JLNODR0Yc2zFM= X-Google-Smtp-Source: ABdhPJxJ3i6FXPdOWbwY9TtBzSQF2PsLK9u2GzIe37cpHHL0FJejjG62h0DYCOrD0PKtSEPDIu6FdA== X-Received: by 2002:a7b:c0c4:: with SMTP id s4mr373997wmh.174.1620669403079; Mon, 10 May 2021 10:56:43 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:42 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 18/39] lookup_dcookie.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:27 +0200 Message-Id: <20210510175546.28445-19-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/lookup_dcookie.2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/man2/lookup_dcookie.2 b/man2/lookup_dcookie.2 index 2f0559707..6c178e367 100644 --- a/man2/lookup_dcookie.2 +++ b/man2/lookup_dcookie.2 @@ -29,11 +29,18 @@ lookup_dcookie \- return a directory entry's path .SH SYNOPSIS .nf -.BI "int lookup_dcookie(uint64_t " cookie ", char *" buffer ", size_t " len ); +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_lookup_dcookie, uint64_t " cookie ", char *" buffer , +.BI " size_t " len ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR lookup_dcookie (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION Look up the full path of the directory entry specified by the value .IR cookie . @@ -92,8 +99,5 @@ It relies on a kernel driver to register cookies for directory entries. .PP The path returned may be suffixed by the string " (deleted)" if the directory entry has been removed. -.PP -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). .SH SEE ALSO .BR oprofile (1)