From patchwork Mon May 10 17:55:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 43360 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 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 ; 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 ; 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 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/readdir.2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 " " /* Definition of " SYS_* " constants */" +.B #include .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.