From patchwork Mon May 10 17:55:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476633 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=il1k2SPg; 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 4Ff80F2w7Kz9sWp for ; Tue, 11 May 2021 03:57:33 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2FF2C3987C1A; Mon, 10 May 2021 17:56:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FF2C3987C1A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669405; bh=bWna9DkZKtvjtUgHC5+aDclHxQnDt/WptwevwThFHGI=; 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=il1k2SPgPSrXUSAKmX68gwn51pkLaZ+rufaNoXZDRlCZR0+TK2RyirFqDUQ6hgLWt AWr1Ni9MZ6sLKQHp6gwrxvss66DtVMZtk45PR9qYby3AwPq+2hCsiJZaCSaremDVxg 73snzwxiMrcf62XdJkhbgU+X+Ooh2OztrcU3mmno= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 75DD1398206A for ; Mon, 10 May 2021 17:56:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 75DD1398206A Received: by mail-wm1-x32e.google.com with SMTP id j3-20020a05600c4843b02901484662c4ebso11670231wmo.0 for ; Mon, 10 May 2021 10:56:42 -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=bWna9DkZKtvjtUgHC5+aDclHxQnDt/WptwevwThFHGI=; b=tD51mYRGWLdiVL2ZSM1gaQUjN9Ipv807bQ0joNYYbTQERmA9hmPMsJtPV8TVPp31aX eppSgvqwbG/6KT6AiSWM01BIU0+NTfj6kuM6LWSRfbfh6SwSoYXqj9fpvfZHaIqRN07S bY6evDY+mb+BS9Pdc6OGS9W2yVeqZfXmH0oDOqamoM0D7zooL6dJF1jpjBtjzo9MJPsN ZwmKk3HumoXmqcLNbvLw+IkQGuW2Y7/sJRfUEFb4F8PwKus16JoGzwHucPM4dFiFzrvI crJHRP4U2k7ug99ov3EXdXS8AGprnYN4t0BHEI69f60GRAWQ7/sl3waRDZMAIHC4Ggap zrlA== X-Gm-Message-State: AOAM533sBL3yR/n7jh7rPV1Mi3ZkmvU2PM3GpX7ikBhcSJ4IkSL/x3G4 Clvc797f0PXxBgXCTNycWaI= X-Google-Smtp-Source: ABdhPJztNgPh6EnEKcbCajgtI+950P1BI5Y+lC5Zz6BOOqZqixsArhg8s+C8Qbt82ZtZ7QeGK3X8ww== X-Received: by 2002:a7b:c252:: with SMTP id b18mr27919096wmj.32.1620669401642; Mon, 10 May 2021 10:56:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:41 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 17/39] llseek.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:26 +0200 Message-Id: <20210510175546.28445-18-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/llseek.2 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/man2/llseek.2 b/man2/llseek.2 index 6a36fb6ea..87f45f219 100644 --- a/man2/llseek.2 +++ b/man2/llseek.2 @@ -31,15 +31,19 @@ _llseek \- reposition read/write file offset .SH SYNOPSIS .nf +.BR "#include " " /* Definition of " SYS_* " constants */" .B #include .PP -.BI "int _llseek(unsigned int " fd ", unsigned long " offset_high , +.BI "int syscall(SYS__llseek, unsigned int " fd ", unsigned long " offset_high , .BI " unsigned long " offset_low ", loff_t *" result , .BI " unsigned int " whence ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR _llseek (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION Note: for information about the .BR llseek (3) @@ -97,10 +101,7 @@ is invalid. This function is Linux-specific, and should not be used in programs intended to be portable. .SH NOTES -Glibc does not provide a wrapper for this system call. -To invoke it directly, use -.BR syscall (2). -However, you probably want to use the +You probably want to use the .BR lseek (2) wrapper function instead. .SH SEE ALSO