Message ID | 20210510175546.28445-38-alx.manpages@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces@sourceware.org> 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=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=<UNKNOWN>) 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=aHoiAbKa; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4Ff81n1r20z9sWl for <incoming@patchwork.ozlabs.org>; Tue, 11 May 2021 03:58:53 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1E4D83987C2A; Mon, 10 May 2021 17:57:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E4D83987C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669433; bh=Fl+Q6C223/HkiDOCidfVoM736Uwnb2Wvr18IljRFf5A=; 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=aHoiAbKahtvnAPrdon5E8EJFafv4e53ZwJPZZO08TQSPZ8aCO3C9BhRT5X16VuFmI akyR78IsjjEbylNCvYA+NKTj6MZVoYaTj4aAtuWIItz+fZitcWEl21H/u4yNVd/Gu/ 9nvPRDEhuQXCIJ+o5qvgDuTf/j9c2X88lNclcfts= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 2DF8E39888B2 for <libc-alpha@sourceware.org>; Mon, 10 May 2021 17:57:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2DF8E39888B2 Received: by mail-wr1-x432.google.com with SMTP id d4so17522450wru.7 for <libc-alpha@sourceware.org>; Mon, 10 May 2021 10:57:11 -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=Fl+Q6C223/HkiDOCidfVoM736Uwnb2Wvr18IljRFf5A=; b=jOnRGZSDnnuWgyyuvNQhaO6YX3AX8SAoBt0VVTZhkuS7UUxQFRn9FRcduXVqd4hbCt hyS8tt8GfRkphgN8nWj1E3btU+ntBFPdXumvJQ4brLNlda5gpu1Z1v95IoWfd/6VGgFR UZgM80zxbM6DnEH6vEjNfbtU3hJKEcZJnEF3Xx+066+V0QQgofBSQ8MhIMrMgmVhLZhg 1og33e1WKQVMn/iZuy0+gOMrYvRrYan+4lrOKgZzAkAicUxJp7A80nt9CQa0gDiMkvJO MXgMxvCI+EVohyTQbebfWKwyKKegOpJWPykfFK8EpS9bZfBYAQkcjNFGDNYGJZVNoW9Y PSMg== X-Gm-Message-State: AOAM530Rm0HxDbOzErsBKSiddQ5JDZq0ERLNRPv0+9aLn3eAXqsAo1Zv DCvYsBo7gOSjfy/2MvLwtHY= X-Google-Smtp-Source: ABdhPJyzBOgZTsSZ3blxGY4qLWNjgaSkzqVKb/iOirQkgIcNq52Gbfd89MaKSVTIeSdTQh0YYMVcaQ== X-Received: by 2002:adf:f1d2:: with SMTP id z18mr32448484wro.245.1620669430319; Mon, 10 May 2021 10:57:10 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id m13sm24318830wrw.86.2021.05.10.10.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:10 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 37/39] readdir.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:46 +0200 Message-Id: <20210510175546.28445-38-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 Content-Transfer-Encoding: 8bit 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 <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Alejandro Colomar via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Alejandro Colomar <alx.manpages@gmail.com> Cc: Florian Weimer <fweimer@redhat.com>, Jakub Wilk <jwilk@jwilk.net>, Alejandro Colomar <alx.manpages@gmail.com>, libc-alpha@sourceware.org, linux-man@vger.kernel.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
man2: SYNOPSIS: Fix headers, use syscall(), and other fixes
|
expand
|
diff --git a/man2/readdir.2 b/man2/readdir.2 index f4bd5bdf7..fde142413 100644 --- a/man2/readdir.2 +++ b/man2/readdir.2 @@ -32,13 +32,17 @@ readdir \- read directory entry .SH SYNOPSIS .nf +.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" +.B #include <unistd.h> .PP -.BI "int readdir(unsigned int " fd ", struct old_linux_dirent *" dirp "," -.BI " unsigned int " count ); +.BI "int syscall(SYS_readdir, unsigned int " fd , +.BI " struct old_linux_dirent *" dirp ", unsigned int " count ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +There is no definition of +.BR "struct old_linux_dirent" ; +see NOTES. .SH DESCRIPTION This is not the function you are interested in. Look at @@ -116,8 +120,6 @@ File descriptor does not refer to a directory. .SH CONFORMING TO This system call is Linux-specific. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). You will need to define the .I old_linux_dirent structure yourself.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man2/readdir.2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)