From patchwork Mon May 10 17:55:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476617 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=wnz8VMf0; 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 4Ff7yv1Dxfz9sWp for ; Tue, 11 May 2021 03:56:23 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2898A396C812; Mon, 10 May 2021 17:56:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2898A396C812 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669381; bh=PyVoAYNT9D6Z7Sj/FgFphnsjcqRuTK3M36+LOKWAPbc=; 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=wnz8VMf0GAtzs+yeguFaV64f2a1CJVMAvG9b0sNqK6vaifeV1FyKqCFlFgurjUIcb +GP6OhryqJowxfu/rCQVa3euTYNu64yp8S5WQVA7s4Dk5GTYb96VC2KnWSlKjsQ+Mk 6s82HeboPSKvaPqzI7NqqCgbCfiVj3OJjFUdb6Ks= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 822343858039 for ; Mon, 10 May 2021 17:56:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 822343858039 Received: by mail-wm1-x32f.google.com with SMTP id j3-20020a05600c4843b02901484662c4ebso11669618wmo.0 for ; Mon, 10 May 2021 10:56:18 -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=PyVoAYNT9D6Z7Sj/FgFphnsjcqRuTK3M36+LOKWAPbc=; b=ZJoA5nXwtZOn6w+fvLlQX4C5aecHWHqukzBNGe5Ebs+tgrraegeHV04NbxGvPeXUwh o9hSj3zyxzetZxlMYtedtdC3vQlarjU9ydagrX1zbxl9c9XFpyBUyf5tDyIvxLyG3KS4 7T/Pjluif5GfdH2z2K0XNTD6K6yR9e3Z6Yk0t4G8/W904aFCCWZXSBQWZDjRWnD4y3r+ 0lyTrYItJO7WagI5uY3W2NjqhMi3albbNtu47LZvmaoNVb3sOx6qtcJNddhX3f+xCBKP PBZURajVO2ACNLbhvCW+jrrH3uIVYzCZj/HPZ5pyNMZblNOz7zGqjXsHYVReduDfLKr/ MV/w== X-Gm-Message-State: AOAM532cHbd/pb6DE24ZepC4Q0euXpr3aCPlQ5Y9OKIaZHQbyJB7/QAI bygM/C2n2bXlVHb2DZ49WPI= X-Google-Smtp-Source: ABdhPJyi3XnFvyZbL65mzsCyIu7SLEyCdz9QCGXgBm6kBOYoica4tGpMMlQNyI3rB0PbmuuDCeekNg== X-Received: by 2002:a1c:4382:: with SMTP id q124mr27331306wma.63.1620669377667; Mon, 10 May 2021 10:56:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:17 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 01/39] futex.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:10 +0200 Message-Id: <20210510175546.28445-2-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.2 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" At the same time, document only headers that are required for calling the function, or those that are specific to the function: is required for the syscall() prototype. is required for the syscall name SYS_xxx. is specific to this syscall. However, uint32_t is generic enough that it shouldn't be documented here. The system_data_types(7) page already documents it, and is more precise about it. The same goes for timespec. As a general rule a man[23] page should document the header that includes the prototype, and all of the headers that define macros that should be used with the call. However, the information about types should be restricted to system_data_types(7) (and that page should probably be improved by adding types), except for types that are very specific to the call. Otherwise, we're duplicating info and it's then harder to maintain, and probably outdated in the future. Signed-off-by: Alejandro Colomar --- man2/futex.2 | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/man2/futex.2 b/man2/futex.2 index 389c25224..ada96c517 100644 --- a/man2/futex.2 +++ b/man2/futex.2 @@ -25,18 +25,22 @@ futex \- fast user-space locking .SH SYNOPSIS .nf .PP -.B #include -.B #include -.B #include +.BR "#include " " /* Definition of " FUTEX_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "long futex(uint32_t *" uaddr ", int " futex_op ", uint32_t " val , -.BI " const struct timespec *" timeout , \ +.BI "long syscall(SYS_futex, uint32_t *" uaddr ", int " futex_op \ +", uint32_t " val , +.BI " const struct timespec *" timeout , \ " \fR /* or: \fBuint32_t \fIval2\fP */" -.BI " uint32_t *" uaddr2 ", uint32_t " val3 ); +.BI " uint32_t *" uaddr2 ", uint32_t " val3 ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR futex (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR futex () @@ -1695,9 +1699,6 @@ and a sixth argument was added in Linux 2.6.7. .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). -.PP Several higher-level programming abstractions are implemented via futexes, including POSIX semaphores and various POSIX threads synchronization mechanisms From patchwork Mon May 10 17:55:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476618 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=2620:52:3:1:0:246e:9693:128c; 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=LP4uAQEf; 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 4Ff7yz4j0dz9sX1 for ; Tue, 11 May 2021 03:56:27 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B9699396EC3F; Mon, 10 May 2021 17:56:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9699396EC3F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669382; bh=QU9rVUATvKWYj/3e/cPHtEoIV7RtNq1rNXSqjJsdDKU=; 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=LP4uAQEfDeKQwbMZrzMSSADEKPZMiD8UpqSnRYMt0gWiTOFg07S9qq/RDFJdjGC+L BTUVcmSGv6Aee5i6iUs+yctbCC3ZWr5rjECkP2Ah8qPaAxG6YYhFoPOWWAQmmenHoe tu9FYVyRJYkBFKISTcjKiQwqtgm+ys7eYDvJ39Ow= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 1AF133858039 for ; Mon, 10 May 2021 17:56:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1AF133858039 Received: by mail-wm1-x331.google.com with SMTP id b19-20020a05600c06d3b029014258a636e8so9396060wmn.2 for ; Mon, 10 May 2021 10:56:20 -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=QU9rVUATvKWYj/3e/cPHtEoIV7RtNq1rNXSqjJsdDKU=; b=CURHs04ww5XLhIWmSRBwTw50lvusEOb+Ni+DR69nHR4k9P0H4ye2IbGxtoYe3h7KVx 7FAyWfo3D/KNfZ3YjvxJhTvJjOmNxpcU0My0CzyRTW/dmE4Zl1WG14J3t/uP0E9hv4I3 VksDqO0qE//F5RMYGk/xkjoFWnxaQTeT+AVlyF4NewT8eZB68UwslJg5KXzaFO1fuCEx NypjSqBTA8DGAz9WJEh2KybDNc2za851yb5emQhp8A2vtPCIGxGMgWFJ5xagCetsP9ZH ssjAm+qBsUUe+OEZ4NBb0E7HBE7jNJifljLCuSJ4H4LOEzU8M/q5MTUtrS3r9n0ZrUkB gaqw== X-Gm-Message-State: AOAM531CWPFKYxBxcmk7iQM8kuB49OEPRbM/8fGgnIMitb52JZO8sJbp +G5dOw/RQd9Wwd0cSRCulyk= X-Google-Smtp-Source: ABdhPJwjVs893puVPmzA2u4vMrSp6behUZFi5EDZLqcYYG6GOThyO2AikJDtcleMi+fLO6vBfnPe+w== X-Received: by 2002:a1c:1f03:: with SMTP id f3mr337203wmf.175.1620669379222; Mon, 10 May 2021 10:56:19 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:18 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 02/39] getdents.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:11 +0200 Message-Id: <20210510175546.28445-3-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.2 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/getdents.2 | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/man2/getdents.2 b/man2/getdents.2 index ec00a73ba..df766b066 100644 --- a/man2/getdents.2 +++ b/man2/getdents.2 @@ -33,19 +33,29 @@ getdents, getdents64 \- get directory entries .SH SYNOPSIS .nf -.BI "long getdents(unsigned int " fd ", struct linux_dirent *" dirp , +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "long syscall(SYS_getdents, unsigned int " fd \ +", struct linux_dirent *" dirp , .BI " unsigned int " count ); .PP -.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .BR "#include " .PP .BI "ssize_t getdents64(int " fd ", void *" dirp ", size_t " count ); .fi .PP .IR Note : -There is no glibc wrapper for -.BR getdents (); -see NOTES. +glibc provides no wrapper for +.BR getdents (), +necessitating the use of +.BR syscall (2). +.PP +.IR Note : +There is no definition of +.B struct linux_dirent +in glibc; see NOTES. .SH DESCRIPTION These are not the interfaces you are interested in. Look at From patchwork Mon May 10 17:55:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476619 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=EC3CI4V/; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff7z31Xswz9sWp for ; Tue, 11 May 2021 03:56:31 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 518D0396E843; Mon, 10 May 2021 17:56:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 518D0396E843 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669384; bh=y1VLOq171M10g1rh5psGYSCTYnG4i566l1+++qkNDHY=; 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=EC3CI4V/hAc1WreFS0fzvyXDT3JJ6bvlKfhPFras5FaIoDQsMMLGJYe9FN+wVRYWG 3n5qNWcHa0gE8ZIv03C7Gd7oNqCc64h+9Rh6/hSfqanKlD0UStsu19bSw2E8T4ABwQ bojif/jN6srCFjFgoSEQ0CKdl73MGWwSsh6O2cnY= 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 C5297396D80C for ; Mon, 10 May 2021 17:56:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C5297396D80C Received: by mail-wr1-x430.google.com with SMTP id v12so17516681wrq.6 for ; Mon, 10 May 2021 10:56:21 -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=y1VLOq171M10g1rh5psGYSCTYnG4i566l1+++qkNDHY=; b=kUkP2RZnka9a3ct8HoKcSznMjQY6mym1Cue0zvrZ7j5h7AuTglOh/o7pF7xgI9eYsw lKLHcDTTAuHAFeVYJhkFCesgvVO2nvgU7akPUJ+q7F9A6WTj+xU9T8GAFviZ9bpd+Vep FhqQecNXU34jSEezXfOl9KV3mhe+33rfetkCfXBfUoQBsi+GFh92qGejKctc+mqbBwkU jz+Z4Lh4jv3neuYcKt0W3mFTStdcE1kr7/FBx1xknRBBCsQh2g85AcOyMo95aciUMIGp 4xrgfMkXFk8b5WAPetpeOEVPCBdqsclYtWLU7M+QtOJAQ/r5rXqQsbp9BIkZIFh1XfoB 1hog== X-Gm-Message-State: AOAM531nQFzAwLAI8j/X3AbBfgvF7CZ73uCkn7XFg5cihU2NkAzd2ZtW fBZOvMF//mTEvr3NwoU/Qp4= X-Google-Smtp-Source: ABdhPJyQAqAh13jO3r6w8/jJPe84a/3udOQtKkWPdGVpS6ndUcrL5242flEkHNgT1iUiAMAwW2sHxw== X-Received: by 2002:a5d:64e4:: with SMTP id g4mr31833026wri.366.1620669380968; Mon, 10 May 2021 10:56:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:20 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 03/39] ioctl_tty.2: Fix includes Date: Mon, 10 May 2021 19:55:12 +0200 Message-Id: <20210510175546.28445-4-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.2 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" is needed for the prototype of ioctl(). That header also provides most of the constants used by the function. Only a few of those constants are not provided by that header, and need ; clarify which constants do need that include. ...... $ --- man2/ioctl_tty.2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2 index badd58e50..c82690701 100644 --- a/man2/ioctl_tty.2 +++ b/man2/ioctl_tty.2 @@ -10,7 +10,9 @@ ioctl_tty \- ioctls for terminals and serial lines .SH SYNOPSIS .nf -.B "#include " +.B #include +.BR "#include " " /* Definition of " CLOCAL ", and" +.BR " TC*" { FLUSH , ON , OFF "} constants */" .PP .BI "int ioctl(int " fd ", int " cmd ", ...);" .fi @@ -119,8 +121,6 @@ Window sizes are kept in the kernel, but not used by the kernel update the window size when the size of the virtual console changes, for example, by loading a new font). .PP -The following constants and structure are defined in -.IR . .TP .B TIOCGWINSZ Argument: From patchwork Mon May 10 17:55:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476620 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=SjGKEgvh; 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 4Ff7z728FKz9sWp for ; Tue, 11 May 2021 03:56:35 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EBB83396D80C; Mon, 10 May 2021 17:56:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBB83396D80C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669386; bh=3zKKMYASUcVP4nPH+4KBOAeF2koIXkEiHM2YxnppnRo=; 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=SjGKEgvhirccdZwYR0+twZETjm1YW516cf9EcehpK2flXmks24S5LgOxeY4+MwGlE VFkGONuCpTdM5ZDipb1vxx6j5YbTubnaMwT9W8rLQmVFOro5Jhz0/L2Wqtf55PdTHN +Ob5QLZ+KwEoh8LaUuMIZBwMJi0P8/9EIH5lNZqg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 2004439730FE for ; Mon, 10 May 2021 17:56:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2004439730FE Received: by mail-wr1-x42a.google.com with SMTP id l14so17540689wrx.5 for ; Mon, 10 May 2021 10:56:23 -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=3zKKMYASUcVP4nPH+4KBOAeF2koIXkEiHM2YxnppnRo=; b=NMwo9jUjyQLzMzKvqN3Z3NtQVESVuCgL6y+5B0TBNfD0N3TdgHI0UBZCcSCmYZ/GxX XmbVsvtc9InObZlhUu/x12ZSkNlWZichDTPuhD3LVZP7C9PtcIot26vH31DK2admvWE3 oOidVlZfwspKQk5a4soxmj9ZWB960925vgiLA3UXdmn3NSlAol/5VEooVDeoU7ei1J6q eSf77baQXkbpKpFf9KuPvGGq00KeISrSBFMfq5p1I324k/QYCtbuqi9jrIX/6sXvy922 Ak7Eskr/y7L+0xrBy9itpBEpvIenzSphpiF+9CU6Oj+k2TUBLoNLwUVFy1THM9+gftBL uGfA== X-Gm-Message-State: AOAM533Mx5STefq7cM6EXl78EJvO/Pe276xLfAljEdevorVnvKe4nsQ7 HLy/3AVNUEt4uBw6iBwEoEQ= X-Google-Smtp-Source: ABdhPJxPpbonAxUmun27UjxOkBBCvwt1baKQ3b60yNiazwpNvHu9tfE0TptVvZp1nfyHj6xcmyD4Xg== X-Received: by 2002:adf:f1d2:: with SMTP id z18mr32444064wro.245.1620669382303; Mon, 10 May 2021 10:56:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:22 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 04/39] ioctl_userfaultfd.2: SYNOPSIS: Add Date: Mon, 10 May 2021 19:55:13 +0200 Message-Id: <20210510175546.28445-5-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.2 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/ioctl_userfaultfd.2 | 1 + 1 file changed, 1 insertion(+) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index a3b8f737d..504f61d4b 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_userfaultfd.2 @@ -31,6 +31,7 @@ ioctl_userfaultfd \- create a file descriptor for handling page faults in user space .SH SYNOPSIS .nf +.BR "#include " " /* Definition of " UFFD* " constants */" .B #include .PP .BI "int ioctl(int " fd ", int " cmd ", ...);" From patchwork Mon May 10 17:55:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476621 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=2620:52:3:1:0:246e:9693:128c; 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=yl2awRii; 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 4Ff7zC6L2yz9sWp for ; Tue, 11 May 2021 03:56:39 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 80C693982067; Mon, 10 May 2021 17:56:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80C693982067 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669387; bh=d3zHX7Dlp02I5BnX6mFdOXVUY5GkHLAIfSnGnLi6sLM=; 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=yl2awRiicspLWHPmg4BA5Oz6zegMF051EQSXQzgTezrBZNfwzorM/3Uv95OY9fFr0 xWeLRzZ/tvuOW3ysYkK80qmuEk5dnjpjYoRHu16KmSrs42VUtDvqvgEx99fK6MYFsZ YgI55JHAU+tSk8icr2uouILE3qY092jPxQSiO1rE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id BBDA3396E877 for ; Mon, 10 May 2021 17:56:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BBDA3396E877 Received: by mail-wr1-x434.google.com with SMTP id a4so17542787wrr.2 for ; Mon, 10 May 2021 10:56:24 -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=d3zHX7Dlp02I5BnX6mFdOXVUY5GkHLAIfSnGnLi6sLM=; b=aj1KDjT7WJzb3+rxxI0q61ShI4VT6pgkDnUc0QcHAcojYP59ccvTxqrEgd702W8pOa aPnc87K2e8p44joUw+ymJTAYkBkIvO2RHAMXglYvNFATgTwxljKw8Fm//cAP/7wTD0YI YKTy/AeXbjq2nE6TzCJbivWaxs4jbwPVJd2LLs76bTo9+pTmelS12nPJjvC2PlLhLezQ pdjJsg9FHfQO1w0sLO+FHqn0Mk891iN++jssAggfBVaNqjZU1i7wFDL/wCwIIDrueHm+ StUMiZLyX8JPgUrfrwiw7Lsj2XIbEFM2s4j5/GgCHR9nXHXnRAWHUlAv8/rSH3eNeZDZ UP5Q== X-Gm-Message-State: AOAM530O5tfTqsyiEMqIrGjz+lgXkE8XlTBw1juf9Wv9yo0ETDluT/ln xs+awAzPjxHHSZi6Zsl75+Y= X-Google-Smtp-Source: ABdhPJyW3xPlmH48LxB56tuI0zi6sScxLMoCpFesl/Fo/Rt+F7h4joPND+JyWU61Pkx0BCvavAgcrg== X-Received: by 2002:a5d:570e:: with SMTP id a14mr32480587wrv.254.1620669383917; Mon, 10 May 2021 10:56:23 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:23 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 05/39] io_destroy.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:14 +0200 Message-Id: <20210510175546.28445-6-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.2 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" In this case there's a wrapper provided by libaio, but this page documents the raw syscall. Signed-off-by: Alejandro Colomar --- man2/io_destroy.2 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/man2/io_destroy.2 b/man2/io_destroy.2 index b439f1184..c9418336f 100644 --- a/man2/io_destroy.2 +++ b/man2/io_destroy.2 @@ -9,13 +9,18 @@ io_destroy \- destroy an asynchronous I/O context .SH SYNOPSIS .nf -.BR "#include " " /* Defines needed types */" +.BR "#include " " /* Definition of " aio_context_t " */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int io_destroy(aio_context_t " ctx_id ); +.BI "int syscall(SYS_io_destroy, aio_context_t " ctx_id ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR io_destroy (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .IR Note : this page describes the raw Linux system call interface. @@ -57,10 +62,7 @@ The asynchronous I/O system calls first appeared in Linux 2.5. is Linux-specific and should not be used in programs that are intended to be portable. .SH NOTES -Glibc does not provide a wrapper for this system call. -You could invoke it using -.BR syscall (2). -But instead, you probably want to use the +You probably want to use the .BR io_destroy () wrapper function provided by .\" http://git.fedorahosted.org/git/?p=libaio.git From patchwork Mon May 10 17:55:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476622 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=dYhaYza9; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff7zJ0HYkz9sX1 for ; Tue, 11 May 2021 03:56:44 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85A0B3982074; Mon, 10 May 2021 17:56:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85A0B3982074 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669388; bh=R3yQ/6vYV/DqTQrt26JFGj8U/NpSE9wmxiu+INGL8i0=; 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=dYhaYza9rvT1Br9+RPEgUNKaoBSwDwAx9/w9iBNasyEpcIYIIyhllazvuCDK8LGLc M1TtMJj5T/3v7JcUbBz+WHPYXXwgKKbBqE51lTGBthm2ktLjTqPaGOTcxYhN/pGedb 2KmoEM0vaNBUAFIVKlReyJz9qGkAnNrfm/dnwO64= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 77740398205D for ; Mon, 10 May 2021 17:56:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 77740398205D Received: by mail-wm1-x332.google.com with SMTP id o26-20020a1c4d1a0000b0290146e1feccdaso10139207wmh.0 for ; Mon, 10 May 2021 10:56:26 -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=R3yQ/6vYV/DqTQrt26JFGj8U/NpSE9wmxiu+INGL8i0=; b=VTurWoXOKO8Y94823Gu1xJ+Zg/bNW4ArLNcQPmsRIXDUb4TKMAKEo2jwb+kUs4ezYW rU3dAGZkaR79VTzzDM/yZtbLHJL2okODwn17xFPgom5MpsqqLVlOYEhG1EceJK3tmqG6 TiIisSByvhudRWOt7iNP+cit7dD3ZKNQkUo2RubHYB7/s/SMNAxRNV1pOsdmqCyonxO9 G9OFgm+HxTXS4CTPtLEvvbr9YCTSVqJ/lcEDQYU/zPewXG3N3Pi8COdUrrF24t5F8t0e 22gHte0Gzm7gZ5SRoPzxlIqqmix9kjCTj/zBLiKmHpC5ylAJ8a8cP+KnnLQwQ97igIIX 05Qw== X-Gm-Message-State: AOAM531VFj++Gf9L2f86frSe/syuHjo2Sxiy9pGHHnujqVlOnc7vXFXD pmESLsn66YQiMJOX2D3yb2w= X-Google-Smtp-Source: ABdhPJztXA8ckbJE60dZWFpzZ5+z9fDi25XZHmIrFUUh5qS2ACSUb430n4J8+NcEWqieIKlYMMk9Zw== X-Received: by 2002:a7b:c195:: with SMTP id y21mr387745wmi.108.1620669385652; Mon, 10 May 2021 10:56:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:25 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 06/39] io_getevents.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:15 +0200 Message-Id: <20210510175546.28445-7-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.2 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" In this case there's a wrapper provided by libaio, but this page documents the raw syscall. Also remove from the includes: 'struct timespec' is already documented in system_data_types(7), where the information is more up to date. Signed-off-by: Alejandro Colomar --- man2/io_getevents.2 | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/man2/io_getevents.2 b/man2/io_getevents.2 index 87eefdd92..7c7e625bf 100644 --- a/man2/io_getevents.2 +++ b/man2/io_getevents.2 @@ -9,16 +9,20 @@ io_getevents \- read asynchronous I/O events from the completion queue .SH SYNOPSIS .nf -.BR "#include " " /* Defines needed types */" -.BR "#include " " /* Defines 'struct timespec' */" +.BR "#include " " /* Definition of " *io_* " types */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int io_getevents(aio_context_t " ctx_id ", long " min_nr ", long " nr , -.BI " struct io_event *" events \ -", struct timespec *" timeout ); +.BI "int syscall(SYS_io_getevents, aio_context_t " ctx_id , +.BI " long " min_nr ", long " nr ", struct io_event *" events , +.BI " struct timespec *" timeout ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR io_getevents (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .IR Note : this page describes the raw Linux system call interface. @@ -94,10 +98,7 @@ The asynchronous I/O system calls first appeared in Linux 2.5. is Linux-specific and should not be used in programs that are intended to be portable. .SH NOTES -Glibc does not provide a wrapper for this system call. -You could invoke it using -.BR syscall (2). -But instead, you probably want to use the +You probably want to use the .BR io_getevents () wrapper function provided by .\" http://git.fedorahosted.org/git/?p=libaio.git From patchwork Mon May 10 17:55:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476623 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=HhlNrAAa; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff7zN1BjQz9sWp for ; Tue, 11 May 2021 03:56:48 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 153CD3982078; Mon, 10 May 2021 17:56:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 153CD3982078 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669391; bh=Fd/It0aytrScBxMuxxCVjrWxtRKcHrxFkakeY8Wqheg=; 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=HhlNrAAaQ6vqedRk79AE9tvS7uxdVdDLW86qM2g1ENmoegsYl2G4OFME023l7yJx7 8ewSGP0308cHxdocepRK9Hm8MuMmudo0IclCSHfqWhA0o+RuljtegyUj00dZv0D2iM qVDZhrnPc9IS3g7jQUq+i+a/ewguTAVQvbCx2Qzo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id F19CB3982072 for ; Mon, 10 May 2021 17:56:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F19CB3982072 Received: by mail-wm1-x329.google.com with SMTP id a10-20020a05600c068ab029014dcda1971aso9539742wmn.3 for ; Mon, 10 May 2021 10:56:27 -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=Fd/It0aytrScBxMuxxCVjrWxtRKcHrxFkakeY8Wqheg=; b=TmhJ4aNTIK+m+ih4SaHWnoryFo4OtYE0AKzGVCDW4OTyzMoPAhb0B/ooWmMcJdPCms JTrvhBGjK0HKhaWF1gpX/wirvQi6/jR5tG27BfBoXFPK2HN1ay/NxL/kGKe/X62GDV8Y pP8yzadExJeEoYbnTBFCf+Uk6bFkv4afByNm3uDL8NWm4lVgC5nuOXU4Twh9v4OlfW0L UQKo7ugRFPXdGZGobw/LmckxyCv3OHBEoZMsZ/66AEeUHgYEVFY+pJvDtUdCaI3t9KMp pIQRQpa57pBKfVTVaLS9rJRYHlVbUvypW3EJrTMhSEjyv8QGCJgDl7BkvVeYdsMuBMsH /FuQ== X-Gm-Message-State: AOAM530yUGg8bSa91uAs10BYXwBWWPmXL/WHWZFpMAaiHoEbnZf+Dk6f 3nmMcVfXJbscx1pUCAPYfPI= X-Google-Smtp-Source: ABdhPJxP2OSJNhX3OKxpMUOddjbirjC3QpY1PpPi2Q7wGLv8IslMA8AUT0+8DKe6l2aP3MyeKrew0Q== X-Received: by 2002:a7b:c0c4:: with SMTP id s4mr372666wmh.174.1620669387147; Mon, 10 May 2021 10:56:27 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:26 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 07/39] ioperm.2: Remove obvious comment Date: Mon, 10 May 2021 19:55:16 +0200 Message-Id: <20210510175546.28445-8-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.2 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" Of course that is for the glibc wrapper. As all of the other pages that don't explicitly say otherwise. Signed-off-by: Alejandro Colomar --- man2/ioperm.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/ioperm.2 b/man2/ioperm.2 index b13a0129e..7d4a4690a 100644 --- a/man2/ioperm.2 +++ b/man2/ioperm.2 @@ -36,7 +36,7 @@ ioperm \- set port input/output permissions .SH SYNOPSIS .nf -.BR "#include " " /* for glibc */" +.B #include .PP .BI "int ioperm(unsigned long " from ", unsigned long " num ", int " turn_on ); .fi From patchwork Mon May 10 17:55:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476624 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=2620:52:3:1:0:246e:9693:128c; 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=L17l/rjk; 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 4Ff7zS4d0Qz9sWp for ; Tue, 11 May 2021 03:56:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BC9E739730FF; Mon, 10 May 2021 17:56:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC9E739730FF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669391; bh=1AJWufCrkVXWZOOZCDdsOIRBksNWYtEU13pLODmBf3U=; 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=L17l/rjky064JkPMEdRouPXkRylgKoqHxKPF7kl5Ny1Udn4tRPvx55A5ghOYdj1wI Vonlt7/sHryitBA41ZGUyDzPlP6eewDAVY+pFaEopFhMvPVLe9i+RtpFVhjsq5plzU jBWT9rfcywJ10mBRZ0XNu2c40pWOoCjW0wUYGvJo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 360403982072 for ; Mon, 10 May 2021 17:56:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 360403982072 Received: by mail-wm1-x32f.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso11643184wmh.4 for ; Mon, 10 May 2021 10:56:29 -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=1AJWufCrkVXWZOOZCDdsOIRBksNWYtEU13pLODmBf3U=; b=gxjAb2E+f8HjzSb/LkTLraFLizOuDrrYhckYUcZe1N71gaQCRBzyByroK7AU5Ye7zg /qv+JdEJktZHsWoizJ1HC2kj1tYLHS2k+eV3KhrqyYqhvqkx7ioBma5qXlrVB4OqWS++ vPTSpj9nkiPFZLSAOiG8FY+7t7mgUqqJtnz5ATdnWE1JJCc9jbkk7YhzZZ1M7ldHyz7+ ONMdOKswI0U/eClcdBcovkAOS19sRo6NS7vwxcZEmZW8dJ68P3nxh7ImQZ5Iugo1ya6W Q/2UABecI7bBjH8gThwdUdkUhf8tBDtVSLRdMMu83EfzNd9qHB+9Otl/jlOHB9g00hOE BQxQ== X-Gm-Message-State: AOAM530HycRIyoBpDh2oy3TvqTG9aIJIixFKfGjkQ2x13UxU1FD1EYTS jYAKRrTPdHz0pe3JKzg3/CA= X-Google-Smtp-Source: ABdhPJy0pT+FCZcCouB+LMY1ikpGqHgiaiT3R+knl33nNk+bKl0Gh0b4aTKWv4x5zLHufu+rPfXj3g== X-Received: by 2002:a1c:b783:: with SMTP id h125mr378168wmf.182.1620669388398; Mon, 10 May 2021 10:56:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:28 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 08/39] ioprio_set.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:17 +0200 Message-Id: <20210510175546.28445-9-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.2 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/ioprio_set.2 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/man2/ioprio_set.2 b/man2/ioprio_set.2 index 91ec03f3b..c110725f0 100644 --- a/man2/ioprio_set.2 +++ b/man2/ioprio_set.2 @@ -26,12 +26,18 @@ ioprio_get, ioprio_set \- get/set I/O scheduling class and priority .SH SYNOPSIS .nf -.BI "int ioprio_get(int " which ", int " who ); -.BI "int ioprio_set(int " which ", int " who ", int " ioprio ); +.BR "#include " "/* Definition of " IOPRIO_* " constants */" +.BR "#include " "/* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_ioprio_get, int " which ", int " who ); +.BI "int syscall(SYS_ioprio_set, int " which ", int " who ", int " ioprio ); .fi .PP .IR Note : -There are no glibc wrappers for these system calls; see NOTES. +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR ioprio_get () @@ -199,9 +205,6 @@ kernel 2.6.13. .SH CONFORMING TO These system calls are Linux-specific. .SH NOTES -Glibc does not provide a wrapper for these system calls; call them using -.BR syscall (2). -.PP Two or more processes or threads can share an I/O context. This will be the case when .BR clone (2) From patchwork Mon May 10 17:55:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476625 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=vpWeN6JE; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff7zX58xQz9sWl for ; Tue, 11 May 2021 03:56:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D7363982061; Mon, 10 May 2021 17:56:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D7363982061 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669394; bh=XKdpBKSMuiZJDGlYuAWIvkxYovN6rRDYr0Mh9rQWVBw=; 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=vpWeN6JEx9i9Qs6BpUX8oQ7RT1r3GMJoMTpzUbEj0WEryzwV7QAwbsMzX27rvlYTy W3ncRDtFAT83ynHMOj5aLbdDrdZRqXrAmlCE3Hyao8Tt6rBWca4mYpFx8qG91B9hWu 8EHjBFCr4wags7JnKsepz53izeU7Eo+A/DmaIS5Q= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 840633982061 for ; Mon, 10 May 2021 17:56:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 840633982061 Received: by mail-wm1-x32b.google.com with SMTP id g65so9694819wmg.2 for ; Mon, 10 May 2021 10:56:30 -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=XKdpBKSMuiZJDGlYuAWIvkxYovN6rRDYr0Mh9rQWVBw=; b=HPb0vd/MhdV25jf2E65SYPH3Bu3HB5eOYHXh1XRG5szchcP8D9HnQPSEfUkyFqGIts /hZiReZ3RxJzK0+ha4K0bfzZtVH7Qt+YYTW0DgtThg5nyF9cSbWmJfg9H3fNEMOyNgKP HM+7BWZRBo7mCDXUA2r9dqYRmOm4RWVAL7qzK0EIauHfEf0duYxHvCH7QuQ7MtxOEzis LeuoJ4g60YrUNMNvGsk4WkyfETgTEbwKYb4qZ57WaTDbi11zjn8kJ1cjINDDncfmiI5s vNoHXFroZ4u71N5W5v1nng9KfGxK4rodPDOgV83ry0/jUaJ69fuQBwP/wQbT+ZtVBhzm tO+w== X-Gm-Message-State: AOAM5300+U5IqO9kKP7dNWyEMeqgsI4q/HrKuDYECV1xkI7G5mXWPFQ5 pR92El+e/7lNG9yWt4a1L90= X-Google-Smtp-Source: ABdhPJyc6dFrnFU41NB7YSeoELCfSOH+MqnZyYftnsEo+xHQm4X71uf3a/kBk2k35sExJ8RRTD+Jbg== X-Received: by 2002:a05:600c:26c9:: with SMTP id 9mr376673wmv.176.1620669389657; Mon, 10 May 2021 10:56:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:29 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 09/39] ipc.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:18 +0200 Message-Id: <20210510175546.28445-10-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.2 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/ipc.2 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/man2/ipc.2 b/man2/ipc.2 index c0ba4651f..f505fa1c9 100644 --- a/man2/ipc.2 +++ b/man2/ipc.2 @@ -27,12 +27,20 @@ ipc \- System V IPC system calls .SH SYNOPSIS .nf -.BI "int ipc(unsigned int " call ", int " first ", unsigned long " second , -.BI " unsigned long " third ", void *" ptr ", long " fifth ); +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_ipc, unsigned int " call ", int " first , +.BI " unsigned long " second ", unsigned long " third \ +", void *" ptr , +.BI " long " fifth ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR ipc (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR ipc () is a common kernel entry point for the System\ V IPC calls @@ -56,10 +64,6 @@ system call; instead, .BR semctl (2), .BR shmctl (2), and so on really are implemented as separate system calls. -.PP -Glibc does not provide a wrapper for this system call; -in the unlikely event that you want to call it directly, you can do so using -.BR syscall (2). .SH SEE ALSO .BR msgctl (2), .BR msgget (2), From patchwork Mon May 10 17:55:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476626 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=2620:52:3:1:0:246e:9693:128c; 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=tF38oOEC; 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 4Ff7zd2kFTz9sWl for ; Tue, 11 May 2021 03:57:01 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5526F3982406; Mon, 10 May 2021 17:56:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5526F3982406 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669395; bh=tCTG34hdZboLuFGiSMahTg8ehQUvLx/up9jZ2mFNHYQ=; 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=tF38oOEC3O3FQ3FgyyIItdeF1tzuwuved5jJ78Y74Tcl3mY7+3UpP+pQOS8bHvEcv JWqJ8kzw2bFuNh1dQNkokDkVT3Td9MGEmR4SUKubnvHWf9kCinGnPOBn6rZnA/u6lv fFL5TxE9FA6HleSXxcBc6DU14OZeIs9MW7JloHL8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id DB445398207D for ; Mon, 10 May 2021 17:56:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DB445398207D Received: by mail-wr1-x42d.google.com with SMTP id l14so17541061wrx.5 for ; Mon, 10 May 2021 10:56:31 -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=tCTG34hdZboLuFGiSMahTg8ehQUvLx/up9jZ2mFNHYQ=; b=q+Vkuf/nfjLnsPZZy1OeCzCJvunOQR/g4QOhTZkXddxN8/zWead8sy0x3AAVlbnWsB JH9b3fsXW+GB7nXSgPQThFYQWodjipepbL3krRX4jyHXkGOCdFNhyZZ9PcOVhhUy5eRL B+ucY9nRq5pXzZgUy6ZzY8LSHgS8U7JddgUOvYq6933KcMgDFDX2685lZ08pYGX0s3Um hzgot9k6H8Y2nbq+cZ0DhXCf2EFbU1ndhrrhPrNn+RuC65oB5Im7e7WZ+8IUFSKfaIuy VN9LRmHXqNOZBjS3n0M381Eb83ru3+gKFrNFbL2st3m0C1ZgtBtMxFoS0kDmsFNXdWIb b2sg== X-Gm-Message-State: AOAM530V28iRT75pG7S729IAP3sdjxqNuIqgsZ6YLBopSKj+MqpKHgux UAhvtzrJvFEhfGva/cyZeNE= X-Google-Smtp-Source: ABdhPJxR7yEL96C7ouoKk4I4Xkjx4q+xdtiInk8plO8F/8RwwJL68qRovf4LPOsMsY8XkR9W90hnxg== X-Received: by 2002:adf:ec82:: with SMTP id z2mr31888681wrn.214.1620669391090; Mon, 10 May 2021 10:56:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:30 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 10/39] ipc.2: Add needed include Date: Mon, 10 May 2021 19:55:19 +0200 Message-Id: <20210510175546.28445-11-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.2 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" The constants needed for using this function are defined in . Add the include, even when those constants are not mentioned in this manual page. Signed-off-by: Alejandro Colomar --- man2/ipc.2 | 1 + 1 file changed, 1 insertion(+) diff --git a/man2/ipc.2 b/man2/ipc.2 index f505fa1c9..4ce29ca69 100644 --- a/man2/ipc.2 +++ b/man2/ipc.2 @@ -27,6 +27,7 @@ ipc \- System V IPC system calls .SH SYNOPSIS .nf +.BR "#include " " /* Definition of needed constants */" .BR "#include " " /* Definition of " SYS_* " constants */" .B #include .PP From patchwork Mon May 10 17:55:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476627 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=mrEI1zVi; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff7zk02Ncz9sWp for ; Tue, 11 May 2021 03:57:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 546F93982401; Mon, 10 May 2021 17:56:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 546F93982401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669397; bh=SnUiudXLqLGUXWxfTqP+91+DkoZGHPr6kchEeZQJTNs=; 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=mrEI1zVio/8EuDmsbXM/fTm68Bk4lQsDI+u3nWwmL52tmj0McTvF8MtQkGr8gGSDl gQXZk1gwMGMP1ku0tztsZ3jlJg4t8JLuU0V193r4RAbC7lJRNAGHTqsvN0QGUCVTYj XEBuaSB94ODc9T1RHbY8lbnDzaN4cL3qN2jjzayc= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id A165E398205A for ; Mon, 10 May 2021 17:56:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A165E398205A Received: by mail-wr1-x436.google.com with SMTP id z6so17534776wrm.4 for ; Mon, 10 May 2021 10:56:33 -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=SnUiudXLqLGUXWxfTqP+91+DkoZGHPr6kchEeZQJTNs=; b=aHbZUNSN3CR3P1+QeKlArwRloKMjvZ0n2YF3KnRN5X8VRWH9c2RLMPW3fl827Uh9Yk EqaUAyKJ8tMGPH+CrYsr+rF2n9viH2rMjbTv1DUGbtdZu08JzG/zQsyz6/vErP/1gPa9 VxUXb0wzwoFdsBX7dCcjRD4ah7KeQ24GQ1wYNPRTz6FNxvsczu36WJFLOKKqk3RvFywF aiJoDZkXkWvCNMS7jTo5OIkwGk+AZG7TElzX9MPGcgtpCMcp7UVD5z2+rsIUtZgsrVWX 3qCvI+OpNtMF9uSS2WP1k743wT1PNPBymtDR6RcXuLw4+BUGzFGLEKnJQ7HEERn9kKoi iqnw== X-Gm-Message-State: AOAM532HzuEAscnQN4TeII1wDoECgPxwFXFhPCIUc78H3uDMiTtp2CC/ 8yE2qp9ir49EOpj+tKqIF+g= X-Google-Smtp-Source: ABdhPJzclYY2wEsgT2IAwSBpHWtXuGO53l1sVL+jOMpSwTMmnhZUiRLdprTmzB5wJPgkmt6jjV7zXQ== X-Received: by 2002:a5d:5745:: with SMTP id q5mr33147642wrw.250.1620669392795; Mon, 10 May 2021 10:56:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:32 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 11/39] kcmp.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:20 +0200 Message-Id: <20210510175546.28445-12-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.2 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/kcmp.2 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/man2/kcmp.2 b/man2/kcmp.2 index 3cc7f7d6f..b0994758a 100644 --- a/man2/kcmp.2 +++ b/man2/kcmp.2 @@ -30,14 +30,19 @@ kcmp \- compare two processes to determine if they share a kernel resource .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " KCMP_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int kcmp(pid_t " pid1 ", pid_t " pid2 ", int " type , -.BI " unsigned long " idx1 ", unsigned long " idx2 ); +.BI "int syscall(SYS_kcmp, pid_t " pid1 ", pid_t " pid2 ", int " type , +.BI " unsigned long " idx1 ", unsigned long " idx2 ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR kcmp (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR kcmp () @@ -303,9 +308,6 @@ system call first appeared in Linux 3.5. .BR kcmp () 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; call it using -.BR syscall (2). -.PP Before Linux 5.12, this system call is available only if the kernel is configured with .BR CONFIG_CHECKPOINT_RESTORE , From patchwork Mon May 10 17:55:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476628 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=Uf7DUPos; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff7zp65B9z9sWl for ; Tue, 11 May 2021 03:57:10 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 509863982405; Mon, 10 May 2021 17:56:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 509863982405 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669399; bh=Qq0irmEffB4vawp0JmzGgnk2EAG3ohMDRLVj/nDI+wA=; 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=Uf7DUPosR+hdvBr5vW0FuMTPZ9SAmHWYBi3OpyKtZ8/sVtG/SzZnOx7i5JtFBKOVX u2PeO5ZbxxBVgnxWsqcH09wSU6J3jMMwwfNgkOzYyp+nOm+rNEPO0OFjPOoy0tKgej V5lvRLO/8ARJIKQRLcJNTnWTDQFiiXVcESIqJPoU= 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 E798C3982402 for ; Mon, 10 May 2021 17:56:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E798C3982402 Received: by mail-wr1-x430.google.com with SMTP id m9so17548230wrx.3 for ; Mon, 10 May 2021 10:56:34 -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=Qq0irmEffB4vawp0JmzGgnk2EAG3ohMDRLVj/nDI+wA=; b=B5eqkPTrGyXNJNlTqGVBl3jU1ra05ejOtFO0gfqHRuveNAd9sLCJGKD/VfoTLud618 FU+NFbRkOR1uKSel9i/c454t1OqsD4lxDsgeepFj+on3gb5Jxdvu1gkQqss6CZhnk4Cx FPooOoUrOYg/1Tw9kUZsH63zxTEBGfYKmZdJRDSeNYX3B033CV+UjzqwqeO6I5Lvy0YU z5otMIDchhktiUiCS1ZGzRVEYag/iwkDZ2v7z0/9+orRGaXZ7sAqlpy1977O03D6fbBa piV3Fx3Iw98ep+jyYi1GmXngVUULbYbysAKSQqOWgA7bqEPP4rKVuE1fc5Y6RQ3R5V6y rGTQ== X-Gm-Message-State: AOAM5302nyiHkggIpKBuvEx8OCwHhFomFcaunHlElSXM2zOyU2dBUT1s YMdrnWT7nKYr+b8jl7BZvGw= X-Google-Smtp-Source: ABdhPJyNI3GpnrF2mEISajXK3nDmZng1kmLRR4wNfvO24fA3S136e7KOMLQK5gHLNTJrxQAHwHFQ2g== X-Received: by 2002:adf:d091:: with SMTP id y17mr31490242wrh.107.1620669394138; Mon, 10 May 2021 10:56:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:33 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 12/39] kcmp.2: tfix Date: Mon, 10 May 2021 19:55:21 +0200 Message-Id: <20210510175546.28445-13-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.2 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/kcmp.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/kcmp.2 b/man2/kcmp.2 index b0994758a..7acfa8ef8 100644 --- a/man2/kcmp.2 +++ b/man2/kcmp.2 @@ -311,7 +311,7 @@ is Linux-specific and should not be used in programs intended to be portable. Before Linux 5.12, this system call is available only if the kernel is configured with .BR CONFIG_CHECKPOINT_RESTORE , -since the original pupose the system call was for the +since the original purpose of the system call was for the checkpoint/restore in user space (CRIU) feature. (The alternative to this system call would have been to expose suitable process information via the From patchwork Mon May 10 17:55:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476629 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=2620:52:3:1:0:246e:9693:128c; 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=o/qZRi+H; 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 4Ff7zv6Jmrz9sWl for ; Tue, 11 May 2021 03:57:15 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E1A0B3987C0C; Mon, 10 May 2021 17:56:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1A0B3987C0C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669400; bh=1C07pbVfBci82UwrAObKhnILR5DtdOchkev/ZB7utXg=; 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=o/qZRi+HTgFALsNRp5lu8/m3/AZM4o5WQbUmr0aAWB0nzZP+9c2E7Xvi7PV+sIcRE SAnCY1d5Nwu6mjRW9H0IV2q8qjpPfKj5Yp9CnmecYqd22cJ20BqLO8vi+8edTGdrjG x+zkT6Vk8bT82EYISeRjBFENv+43U6b4OuZ1Xhe4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 4FF8F3982046 for ; Mon, 10 May 2021 17:56:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4FF8F3982046 Received: by mail-wm1-x32d.google.com with SMTP id a10-20020a05600c068ab029014dcda1971aso9539935wmn.3 for ; Mon, 10 May 2021 10:56:36 -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=1C07pbVfBci82UwrAObKhnILR5DtdOchkev/ZB7utXg=; b=FKrhKu9FlZUmtacm+fhz70yv9H1CthJxnbgKMFOY1vKyqnOMV8xdc5cpp/IJIC632K 7C4I1g3HSfLPHrHe62YGgxz1dlfWy9OQPGLWJP12yEn0rFxm/oW67/r0apxnapJf8IUL H5zda9VXyK/cdFoX9qvzO7gX2Onf0Z4lIIcS6SkInsBpRL0XxkLXp0QSjZ6pIx3F8x91 DBdTUpTmmaFeJeuttWkkBCw6u1v9+MV/ISGmZdAipGLRE/+8Pckayb1aRQHqjKdGLNwY I87PmTUuooByICsAyNkgBW/EnWwPwvhhtiJw3NJazZQfWfqeWm0cVUdosyHgOBSVGJiL lW5w== X-Gm-Message-State: AOAM5308CPjf1HnfybIReN+YUcad3cDXBez6HtaZvud7++PBn26/8IwN 959XgrbPQeLYMoV7nWg/3nI= X-Google-Smtp-Source: ABdhPJz/sHuprn/NSrqA6hjwON4cmTD5ktxZbpMQdvPDL08v36+xQpW3B8tfMtxiqOS6cWlnjOzRBw== X-Received: by 2002:a05:600c:35d2:: with SMTP id r18mr16885113wmq.23.1620669395491; Mon, 10 May 2021 10:56:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:35 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 13/39] kexec_load.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:22 +0200 Message-Id: <20210510175546.28445-14-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.2 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/kexec_load.2 | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/man2/kexec_load.2 b/man2/kexec_load.2 index 62a3e2006..74f142355 100644 --- a/man2/kexec_load.2 +++ b/man2/kexec_load.2 @@ -29,18 +29,23 @@ kexec_load, kexec_file_load \- load a new kernel for later execution .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " KEXEC_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "long kexec_load(unsigned long " entry ", unsigned long " nr_segments , -.BI " struct kexec_segment *" segments , -.BI " unsigned long " flags ); -.BI "long kexec_file_load(int " kernel_fd ", int " initrd_fd , -.BI " unsigned long " cmdline_len ", const char *" cmdline , -.BI " unsigned long " flags ); +.BI "long syscall(SYS_kexec_load, unsigned long " entry , +.BI " unsigned long " nr_segments \ +", struct kexec_segment *" segments , +.BI " unsigned long " flags ); +.BI "long syscall(SYS_kexec_file_load, int " kernel_fd ", int " initrd_fd , +.BI " unsigned long " cmdline_len ", const char *" cmdline , +.BI " unsigned long " flags ); .fi .PP .IR Note : -There are no glibc wrappers for these system calls; see NOTES. +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR kexec_load () @@ -332,9 +337,6 @@ The system call first appeared in Linux 3.17. .SH CONFORMING TO These system calls are Linux-specific. -.SH NOTES -Glibc does not provide a wrapper for these system calls; call them using -.BR syscall (2). .SH SEE ALSO .BR reboot (2), .BR syscall (2), From patchwork Mon May 10 17:55:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476630 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=b3PhUa2m; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff8001sTkz9sWp for ; Tue, 11 May 2021 03:57:20 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 76F4B3987C0F; Mon, 10 May 2021 17:56:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76F4B3987C0F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669400; bh=q6SqwAQCYmMULxt8LPPcAncAaNBX03J1Z11J3WZfLSI=; 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=b3PhUa2mn9EJzkj5GEzNWImmWvu0A/hNzwmSI11VTNKurWMqOWrPp8J2SKkTMGoUF bXcW1gWocHRJI7KI62gF64otMAZkyWO30lZnG2dR6cBrF4kGGrcHSgM75eQPzWCb7W XGdYxdjC+8BC6E3PzxaJKlGSiuE2/0F5vJFD32Pg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id D18443982405 for ; Mon, 10 May 2021 17:56:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D18443982405 Received: by mail-wm1-x330.google.com with SMTP id 4-20020a05600c26c4b0290146e1feccd8so9381188wmv.1 for ; Mon, 10 May 2021 10:56:37 -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=q6SqwAQCYmMULxt8LPPcAncAaNBX03J1Z11J3WZfLSI=; b=nvkrntMDYhQi8KEbF71MeZ96xqUIt+bu5lohjoKRGLX49ao8RqgcWLXKQgpC/Wd/y1 p+kQ5JoOxyWK3ZbYyDB8Yc1X9roz89CmcKE8HrjM4cl9y7Dy5KsdjbX4pykbrQ0khvMZ 3yk0LxN1k0KjxvVuNv5G/Kac1FXyN4XTy/Hk2KZCiiSs0MtxKCSAaGmDia/gptVY28th Wyi74famINY67nW5AQ6xAhbFyuw0tsa75zmtxyStVwbQRwLjK80AhHq1aLCXVRXQOeBF FcTfmF8olyfRnPbAmTcXBSogEaOV7i9BaJ6bqQlsdUnYdNjSVimTf6uZMi257adznYAL KYaA== X-Gm-Message-State: AOAM530YN0j6N4wERRIGwB803b5Bm4IniXXhSRN+Fj4EhydZF89Zf1Xg mthTepx4scNSNhacNOfXeEc= X-Google-Smtp-Source: ABdhPJzY5hDNh4X7/Seh9B/fXxLHg55dsILR1o6l02A0spTvCF6QSVahq0a6leTpoT3yV4j9yIsPog== X-Received: by 2002:a05:600c:1909:: with SMTP id j9mr22170283wmq.100.1620669397036; Mon, 10 May 2021 10:56:37 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:36 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 14/39] scripts/bash_aliases: man_lsfunc(): Extract syscall name from syscall(SYS_...) Date: Mon, 10 May 2021 19:55:23 +0200 Message-Id: <20210510175546.28445-15-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.2 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 --- scripts/bash_aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/bash_aliases b/scripts/bash_aliases index 358e2f37a..102c458d7 100644 --- a/scripts/bash_aliases +++ b/scripts/bash_aliases @@ -136,6 +136,7 @@ function man_lsfunc() |sed_rm_ccomments \ |pcregrep -Mn '(?s)^ [\w ]+ \**\w+\([\w\s(,)[\]*]+?(...)?\s*\); *$' \ |grep '^[0-9]' \ + |sed 's/syscall(SYS_\(\w*\),/\1(/' \ |sed -E 's/^[^(]+ \**(\w+)\(.*/\1/' \ |uniq; } From patchwork Mon May 10 17:55:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476631 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=eEpPHO5Y; 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 4Ff8051SdSz9sWl for ; Tue, 11 May 2021 03:57:24 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0804F3987C14; Mon, 10 May 2021 17:56:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0804F3987C14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669402; bh=uCWxBpgSjSLQwTZcDJ0pb/KDZC8kbP4s5oy9KGsyTbI=; 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=eEpPHO5YCKpC4rvA/hzWl+nTklgc6V/RjVwxmIv96SIdK2C9uX48DU69y+90vO/Mz fgAVetIItk8oc4Scii9cl0uFzIJEog9ETQuvSTUP1ct4C0xBzaM9YEmkIxvOrAiAIB lGIKG2Og2egENZjAjTiDY+8Fdoj1jWlwMtyOH3rU= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 7C8233987C09 for ; Mon, 10 May 2021 17:56:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7C8233987C09 Received: by mail-wm1-x32a.google.com with SMTP id o6-20020a05600c4fc6b029015ec06d5269so3006418wmq.0 for ; Mon, 10 May 2021 10:56:39 -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=uCWxBpgSjSLQwTZcDJ0pb/KDZC8kbP4s5oy9KGsyTbI=; b=hx91TIg/3rWAfHij4ulMZm3Rs8VUJC+2KXttxWlwCISJ8/Hb8z8kYx4T3zMMfz8rpy vIQzaG4zixC9V4OZY6hXJIR6iuVshVlqkg9eGhLCKR8LgUtttuwY+0T1sV8DwKVmodHJ ENHozRYWbflU4My7a7zv8LuXJh80AaVwywdWzjcui/Tt+2nFCy52hckhVN3W+1mAXvtA tDivch2mKRJXXAVY8aKv9UUCZqBD4TWkndWhKdLrgbq6TKNdDSjB/qa1GVnsnHZZBoBf GnZyvPkXjF+gsKpAAQlgcUNxom/Vjp/RRWxNvNQUpGNaXV5PWeOw2rH1Wu7e/S/FsyRm 3ZCA== X-Gm-Message-State: AOAM531z/AjwPhkY8qMHIjWpAjtlyjA953G66GhWrccuBrZUR7RDEsCe RLhCTSXlMIfCn8X8Vn8jEF8/wBLiXC4= X-Google-Smtp-Source: ABdhPJxYG5HCupHySwhtZ3scJtTq9lB/7kuG/ciIpzvbi41bSVrOg/KU+jMVqbx+EwLgmVl7ODpoaA== X-Received: by 2002:a7b:c1c5:: with SMTP id a5mr360551wmj.63.1620669398616; Mon, 10 May 2021 10:56:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:38 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 15/39] keyctl.2: Use syscall(SYS_...); for system calls without a glibc wrapper Date: Mon, 10 May 2021 19:55:24 +0200 Message-Id: <20210510175546.28445-16-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.2 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" Remove the libkeyutils prototype from the synopsis, which isn't documented in the rest of the page, and as NOTES says, it's probably better to use the various library functions. Signed-off-by: Alejandro Colomar --- man2/keyctl.2 | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/man2/keyctl.2 b/man2/keyctl.2 index 690781eea..7f5fcb951 100644 --- a/man2/keyctl.2 +++ b/man2/keyctl.2 @@ -30,22 +30,20 @@ keyctl \- manipulate the kernel's key management facility .SH SYNOPSIS .nf -.B #include -.PP -.BI "long keyctl(int " operation ", ...);" -.PP -.B "/* For direct call via syscall(2): */" -.B #include -.B #include +.BR "#include " " /* Definition of " KEY* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" .B #include .PP -.BI "long syscall(__NR_keyctl, int " operation ", unsigned long " arg2 , +.BI "long syscall(SYS_keyctl, int " operation ", unsigned long " arg2 , .BI " unsigned long " arg3 ", unsigned long " arg4 , .BI " unsigned long " arg5 ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR keyctl (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR keyctl () allows user-space programs to perform key manipulation. @@ -1954,7 +1952,6 @@ This system call first appeared in Linux 2.6.10. .SH CONFORMING TO This system call is a nonstandard Linux extension. .SH NOTES -Glibc does not provide a wrapper for this system call. A wrapper is provided in the .IR libkeyutils library. From patchwork Mon May 10 17:55:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476632 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=RNqTAg+k; 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 4Ff8091nkVz9sWl for ; Tue, 11 May 2021 03:57:29 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8F1AC3987C16; Mon, 10 May 2021 17:56:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F1AC3987C16 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669403; bh=B5IRd+GOnsrTHGroosqjlik581peXK2q4py0kxgGaGE=; 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=RNqTAg+k9hOqs6ZwlRKXYHMlsHNiIx8xQjaS49vAoGPA3Kv2RQkNMTIqlXVu7ytSY zv45bQMVpTE+2HCklUZTjNmhSLtQVdlz8mezkV+SBZVYbV9c5G0//XVrJxKl1APJ5L im1vlSI3z6qiP6e151srFCUOTLCfY99U+AsGw0OE= 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 2F63A398206A for ; Mon, 10 May 2021 17:56:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2F63A398206A Received: by mail-wm1-x334.google.com with SMTP id a10-20020a05600c068ab029014dcda1971aso9540048wmn.3 for ; Mon, 10 May 2021 10:56:41 -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=B5IRd+GOnsrTHGroosqjlik581peXK2q4py0kxgGaGE=; b=MCyqow8YaUCSsZyXWuXyTdo1QTwFVun+/EPDpjJva8kK5RL+AC8cM13RKUk+KTRT7f xHd0iNML7/s41ioj3/3pdBhzf3c5KHh2F9N4LY7c3h0FzplPANO56dMIkWFEK2myTXmP Xo0WC72hdFVENZcY4yd441o+xff/OQwdciYIyZ3TQFfa2FKgO1bgYTLV/5jwzmYVLpWq YLH4rtLfXYoUq/9Uriz2eNxyL/ACF77X/cNKuJpk8JxVmFm72Uhy2jY1UWJvk7ZxFyQf ZapkBXD0ONmQ/Pxk+jKOQ5qc1AdI138d0Z27E2mle0DKXQdUYO5hIO/W+XWO7QXWIIo5 g8gw== X-Gm-Message-State: AOAM531V4zfArZre6iDGkZUFH6VYvqwEpdk9GLmKJpPxdXSMMbMSshpg 2LSrsGTNndhE4dGr9i/HakE= X-Google-Smtp-Source: ABdhPJzRyE7lpEMQcELIIS2VDpz6TegQ8mIaDDkQViSy3amAMjTLiVir3RkVgDuIJLFmI0vNC5YSoA== X-Received: by 2002:a1c:e409:: with SMTP id b9mr341419wmh.189.1620669400326; Mon, 10 May 2021 10:56:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:40 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 16/39] link.2: ffix Date: Mon, 10 May 2021 19:55:25 +0200 Message-Id: <20210510175546.28445-17-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/link.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/link.2 b/man2/link.2 index 611cd6c13..c285ae896 100644 --- a/man2/link.2 +++ b/man2/link.2 @@ -38,7 +38,7 @@ link, linkat \- make a new name for a file .PP .BI "int link(const char *" oldpath ", const char *" newpath ); .PP -.BR "#include " "/* Definition of AT_* constants */" +.BR "#include " "/* Definition of " AT_* " constants */" .B #include .PP .BI "int linkat(int " olddirfd ", const char *" oldpath , 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 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) From patchwork Mon May 10 17:55:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476635 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=2620:52:3:1:0:246e:9693:128c; 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=VjjW/TXs; 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 4Ff80P4CYDz9sX3 for ; Tue, 11 May 2021 03:57:41 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C625F3987C23; Mon, 10 May 2021 17:56:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C625F3987C23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669408; bh=QiQINs023DdxjUSHXw+cs3BjUww1InRNvyWHLtP6ZuI=; 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=VjjW/TXsOe94s5Vj/8YtMMTiT2J2y1H9rmY9GN0bVIeWBBslYbsRtMoHjLFxsaiDT WiwfTV7s4QQ0cdKkrOYHLyI1BIwECDIDHbXhqD8PYdPYnsWA9If/RkpxvnxZWi3GhS v/KFiQU88sHDBLK3g+8Q1g04sr6+ZoLhTpbndu2k= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 946C63987C1D for ; Mon, 10 May 2021 17:56:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 946C63987C1D Received: by mail-wm1-x32d.google.com with SMTP id n84so9721596wma.0 for ; Mon, 10 May 2021 10:56:45 -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=QiQINs023DdxjUSHXw+cs3BjUww1InRNvyWHLtP6ZuI=; b=LYtpQPpSf51DU93JKFsuOo8BjB+9IjaCb34LiuLKEqQQnY9Bu2Xw6+pIzuj0EhblpN 8XLZNe4aGoPxJTexToED1MuykHXC11fIVQ9Sh4t9MqXMStHWUBMnBNyQDpLkhSjDsW0p Cgo1rsocLn2UYTww2OGgD6bcN0KalTVeARernZMaSEElNxWAd3mzUiJswUrRsgIXsHgw z5rztqoa2H8DE9Ea75tNCvsuEBea9hX+uTpWQvuYbergOjhfsXcgYXHUENs/z/isHKR8 +quBWqkt1A8U6cxQV25J8vmy+0P0UJJogBNednhuXUxms5UQsOPBUA5nz4pozvDfpgHn gxLA== X-Gm-Message-State: AOAM5308X+gGddM+/RkHNd228LIdBJaQ/1sN94WrFFxy6x60YQ/cTX+A jJ+DoNZmESIJcbnmGnBByU8= X-Google-Smtp-Source: ABdhPJyPJ7hQIGHIWCwWx/MI5WHSbhtfdHgrn5mPMrCuuXO+QOq3mA9Mqt2WM8TfVhSTTHZk7qTQ3A== X-Received: by 2002:a05:600c:41d4:: with SMTP id t20mr412878wmh.46.1620669404722; Mon, 10 May 2021 10:56:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:44 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 19/39] membarrier.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:28 +0200 Message-Id: <20210510175546.28445-20-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/membarrier.2 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/man2/membarrier.2 b/man2/membarrier.2 index 851f5d59f..fec82f228 100644 --- a/man2/membarrier.2 +++ b/man2/membarrier.2 @@ -28,13 +28,20 @@ membarrier \- issue memory barriers on a set of threads .SH SYNOPSIS .nf .PP -.B #include +.BR "#include " \ +" /* Definition of " MEMBARRIER_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int membarrier(int " cmd ", unsigned int " flags ", int " cpu_id ); +.BI "int syscall(SYS_membarrier, int " cmd ", unsigned int " flags \ +", int " cpu_id ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR membarrier (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR membarrier () @@ -322,9 +329,6 @@ Examples where .BR membarrier () can be useful include implementations of Read-Copy-Update libraries and garbage collectors. -.PP -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). .SH EXAMPLES Assuming a multithreaded application where "fast_path()" is executed very frequently, and where "slow_path()" is executed infrequently, the From patchwork Mon May 10 17:55:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476636 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=n/EO1xfL; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff80V0KbGz9sWp for ; Tue, 11 May 2021 03:57:45 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5D88F3987C2D; Mon, 10 May 2021 17:56:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D88F3987C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669409; bh=GyUIwXdSyudN1G4d7iXB5z6xFgqxMhn6F97pZeGHJXY=; 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=n/EO1xfLY0VLmvDn56bMymKwvK5O7CGN4DpkAdWUM1KKyzPWcLXUtc1ZsZ8R4rLlp 4mveMfGyC7TNj4nKMlQ08PLI+6QTC2F0b12vuSg4klik2UCEWg6nFfJMjXXrfR1Jbj G0slbVom1o8oq56ymGvveMsW0YDYGUMkMdyNYn+4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id A12573987C23 for ; Mon, 10 May 2021 17:56:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A12573987C23 Received: by mail-wm1-x331.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso11643634wmh.4 for ; Mon, 10 May 2021 10:56:47 -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=GyUIwXdSyudN1G4d7iXB5z6xFgqxMhn6F97pZeGHJXY=; b=bP0gDRgFtPBhSTJoXA2bhO1R9eyhRcAVoJ4o3YuIPwkXugl++Y+UVPTUH50ThnORNc LV58wTt8966/5wbIauhcPXiIbmNTUYRvOeqlGo3yrCzurn091Ez3AGBGOIkDvMEJDTo4 I8QlWn2Mku9kfOiuOny/YzCu0VtubbnZ0GEgg9ERJWIDuqsesofFdJQW2R9cuuq2Kd6K pkh8ZkxSdsoLQ+1PlyXwyYYxI4yOmYGHFhzAQyKZ9Z9nmKNXhZncAcJETP9zeYv78Aw1 TNKX5bzNxddMKnDZTKMwEtg8qU0I35A+npQoqCD40AtgEcXga08LwjhEih6mcliSSUHV ct5g== X-Gm-Message-State: AOAM532MdcKydqOMcN4f0oNVR1gl/6WdvKb3ELNHoVn8RQSOwdDO2hNF 3jOz8iXKj6nVO+4GLYYrrLg= X-Google-Smtp-Source: ABdhPJzAz4NGAYbgBVWT9g2P/i1wQ+58R3U+vdQ+XXD6BIfh8d+HMZTCvSNtazh5juyg2CbGMdDcTw== X-Received: by 2002:a1c:9897:: with SMTP id a145mr378090wme.9.1620669406857; Mon, 10 May 2021 10:56:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:46 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 20/39] mincore.2: Remove unused include Date: Mon, 10 May 2021 19:55:29 +0200 Message-Id: <20210510175546.28445-21-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" AFAICS, there's no use for here. The prototype is declared in , and there are no constants needed. Signed-off-by: Alejandro Colomar --- man2/mincore.2 | 1 - 1 file changed, 1 deletion(-) diff --git a/man2/mincore.2 b/man2/mincore.2 index b816e10c6..38ee7d6fa 100644 --- a/man2/mincore.2 +++ b/man2/mincore.2 @@ -36,7 +36,6 @@ mincore \- determine whether pages are resident in memory .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int mincore(void *" addr ", size_t " length ", unsigned char *" vec ); From patchwork Mon May 10 17:55:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476637 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=ZhtK7P8g; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff80Z0b2Xz9sWl for ; Tue, 11 May 2021 03:57:50 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EC5D63987C2B; Mon, 10 May 2021 17:56:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC5D63987C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669411; bh=ETJ77+bejoPwoD6lkNuNZqttLCRQjA5SfjWzUUz/9BM=; 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=ZhtK7P8gMhtYp71AY13oVuX2aVf+wrtSwl2k5fFRx4vpHn1pfMOqWQ73s51XGFuK3 D1h9d0vik6fuKxdk3J7TqBLUNRIuAOhFOA5uxrO21I8CvnqQ4sD04byC7E7KzFCtbS fayXBSvIuvLwpc3uvhU/kudZpLTIXt4uf5E/sRZM= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 3A98E3987C2B for ; Mon, 10 May 2021 17:56:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3A98E3987C2B Received: by mail-wm1-x330.google.com with SMTP id y124-20020a1c32820000b029010c93864955so11657742wmy.5 for ; Mon, 10 May 2021 10:56:49 -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=ETJ77+bejoPwoD6lkNuNZqttLCRQjA5SfjWzUUz/9BM=; b=O3Zj0XpY9zLQXGr3uBG0ulNuRhacbGYQsOpZ2nGm6gchLu2FHJ/hRm9FMdwh3/6S7g nHhnAT8R+ke2t2//RH3nYjSZKSZHFDHTKeQKRsAkFDuen4K+F/aXLpKJiZMvMBIa8VQU noEkDzvZkBEm6CtkVvTsg+g3Y7ZbsOSntBvJKA7XrvAPhfxAF7/UIHZz/g6SwKLfnQ65 nK8MyWZRlFgBDDIS2GinjoUvkAAVI+fie02ci3R08caaSGppdntwUjgp4jB8AKnWajR7 GQNdZUNA07Bo7V/HdN8MyJcd2fDfaqLAuy5R3s3YGNloQVfupz88LuSK9wa2/JtfEDBw 94Lw== X-Gm-Message-State: AOAM530gAdCTbxH0fn8q06E8LoGnoI5QMwRK3By+yb2gsYH/9dCU+Yuy KTLCe33Pe4F4Ge5SXj3uNdA= X-Google-Smtp-Source: ABdhPJw4tNQtEQq7+2aenuyy0/svazMHioQjrbTfLcwLBhQZHTxS1HztYI94LrRFV/32c4bzgZGn9g== X-Received: by 2002:a05:600c:3796:: with SMTP id o22mr351281wmr.139.1620669408114; Mon, 10 May 2021 10:56:48 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:47 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 21/39] mknod.2: Remove unused includes Date: Mon, 10 May 2021 19:55:30 +0200 Message-Id: <20210510175546.28445-22-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" All of the constants used by mknod() are dfined in . Signed-off-by: Alejandro Colomar --- man2/mknod.2 | 2 -- 1 file changed, 2 deletions(-) diff --git a/man2/mknod.2 b/man2/mknod.2 index f20d4aa66..1de3cd027 100644 --- a/man2/mknod.2 +++ b/man2/mknod.2 @@ -18,8 +18,6 @@ mknod, mknodat \- create a special or ordinary file .SH SYNOPSIS .nf .B #include -.B #include -.B #include .PP .BI "int mknod(const char *" pathname ", mode_t " mode ", dev_t " dev ); .PP From patchwork Mon May 10 17:55:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476638 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=M4/Vh3xl; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff80f6wLkz9sWp for ; Tue, 11 May 2021 03:57:54 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82B163987C37; Mon, 10 May 2021 17:56:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82B163987C37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669413; bh=VOvnkfvqobjkJ/yFT9Ru9ZutAmQOD6w5LaM3IZOTU3s=; 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=M4/Vh3xl5fwsMEkvTgkrf42egApjWOyqScbHdY3Ho73ED03JBmfCUe3lS05lA/R+Q 75pWw/VvoHAaJWs/09PSScFsElEvszVU5rYO0JpMtGdjyforwtbz02FmDnBr9N/SCf n6rI7iUm+36x7FfX5xLhYegspPJWHzaRDRgl54U4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 83E033987C31 for ; Mon, 10 May 2021 17:56:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 83E033987C31 Received: by mail-wm1-x331.google.com with SMTP id y124-20020a1c32820000b029010c93864955so11657772wmy.5 for ; Mon, 10 May 2021 10:56:50 -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=VOvnkfvqobjkJ/yFT9Ru9ZutAmQOD6w5LaM3IZOTU3s=; b=Pj2h82nBFPj0UA6QP8X4aBUVGQB7wZKuL+ecVhW2lq4auqIImMD0Oh/R70/YNmsjh5 j72bgLa6KofWu8c9PihIUK+1cJ2YLaWN6mRypPkUj+leNgPxqQ7yLpSmlrHVCb3r7vAq bwmogTtwRK3lCNkg5OCCF454MKIlHO7ox/YjDWZNAbxdFdv7BZc0ayTzHcCyVWS6LA42 7eXRxBCT2GhYyLPymwYiohZQ4iHtG8F5oUCilL/u6kGQY+rwxwiQ3TRpZ5MxdJf3Abz+ hW1OPHGPygmypPMJHdADBsJidUWPARRar4JXTQlIT5/3lLVzUXClLPImvpx9pHl8LDBB lMDw== X-Gm-Message-State: AOAM532CNu1hhVMpuBQ91mKcqa4n+lU/Qy/p8H9kKtmGA/+ggBxvCAB9 79Sy9QtfRnuUyO2o3qVqPao= X-Google-Smtp-Source: ABdhPJwa4jQwccBTa7z74FaAh+g2aLTb4oEfQhpIDlpGxFhkJVtbUGma1Oax9+P+ilrHSdGDRCYqHw== X-Received: by 2002:a05:600c:4ca9:: with SMTP id g41mr396022wmp.70.1620669409734; Mon, 10 May 2021 10:56:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:49 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 22/39] mmap2.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:31 +0200 Message-Id: <20210510175546.28445-23-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/mmap2.2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/man2/mmap2.2 b/man2/mmap2.2 index 6545a8f52..d579a285d 100644 --- a/man2/mmap2.2 +++ b/man2/mmap2.2 @@ -31,11 +31,13 @@ mmap2 \- map files or devices into memory .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " MAP_* " and " PROT_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.BR "#include .PP -.BI "void *mmap2(unsigned long " addr ", unsigned long " length , -.BI " unsigned long " prot ", unsigned long " flags , -.BI " unsigned long " fd ", unsigned long " pgoffset ); +.BI "void *syscall(SYS_mmap2, unsigned long " addr ", unsigned long " length , +.BI " unsigned long " prot ", unsigned long " flags , +.BI " unsigned long " fd ", unsigned long " pgoffset ); .fi .SH DESCRIPTION This is probably not the system call that you are interested in; instead, see From patchwork Mon May 10 17:55:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476639 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=Cq9L/yvI; 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 4Ff80j73Djz9sWl for ; Tue, 11 May 2021 03:57:57 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 140E93987C3F; Mon, 10 May 2021 17:56:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 140E93987C3F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669415; bh=dmqohYzMvS72z6Y99XXcG7umHP0lMiI/AKNyIBd/i9M=; 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=Cq9L/yvIE0KJBm/+WuUlbKB4BWlmtRVbl7Wkipnko06a1tWTUAP4jV9cZq5vJxEqT O4fMYJ392WKNyJ5E4fI8E0iYFoOhhEcmzUnfhkA0weMjOifpGPYEYQ6PnexNV/d1iw qcznoNxVqjIUhlH1fnuHYpBUSUQUQ25B59a6P7k0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 3F34E3987C34 for ; Mon, 10 May 2021 17:56:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3F34E3987C34 Received: by mail-wr1-x436.google.com with SMTP id l2so17529064wrm.9 for ; Mon, 10 May 2021 10:56:52 -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=dmqohYzMvS72z6Y99XXcG7umHP0lMiI/AKNyIBd/i9M=; b=LgMy5a+IIFLEPAQazLwK96WqkAYA5HLrqr0OkJSpjBSukcHpPcH7/rR+jW0GcC8pfq /0xHFwelipjZ1AbaGkK28Fj1WoWqQ3qsIBIXl2gRceLLHJ+EcceBVpfmzAxDXU+RFZGV kR4d47xT5KXcNYP3Cm2T9VMDE0B1C8jfrtIfi8i9vm82DloxW/vQvUZv3dfnmgr57POW MmfSM0mV74eE+i7Ka32zaXe6zlWYclI7XdmJvAfpMBn/an4DANGke4udo9Qh8FyKp0aL ka1HL97yQ+nnhqCYMI/ZfpkssJssMtKo08ELuxKP0OAjG8qg2q7HWjkfMfV2Adx4JR7i Q26g== X-Gm-Message-State: AOAM531+ASEkmgNm713fhjq/2pUEHEH64XWAmiLtb/O+HtJkX3STQN5j k4qg8+UKWFeQPP8UnhyrHh4= X-Google-Smtp-Source: ABdhPJzmJXhuQ2+bC7lZLyzLU+ekt4IebYMEfohKC1ZLMkkRT40T28NewhprM8X6kS9BYskuVqEfVw== X-Received: by 2002:adf:f1d2:: with SMTP id z18mr32446793wro.245.1620669411379; Mon, 10 May 2021 10:56:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:51 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 23/39] modify_ldt.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:32 +0200 Message-Id: <20210510175546.28445-24-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/modify_ldt.2 | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/man2/modify_ldt.2 b/man2/modify_ldt.2 index 8ce9ed252..b67a67690 100644 --- a/man2/modify_ldt.2 +++ b/man2/modify_ldt.2 @@ -27,11 +27,19 @@ modify_ldt \- get or set a per-process LDT entry .SH SYNOPSIS .nf -.BI "int modify_ldt(int " func ", void *" ptr ", unsigned long " bytecount ); +.BR "#include " " /* Definition of " "struct user_desc" " */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_modify_ldt, int " func ", void *" ptr , +.BI " unsigned long " bytecount ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR modify_ldt (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR modify_ldt () reads or writes the local descriptor table (LDT) for a process. @@ -168,9 +176,6 @@ is neither 0, 1, 2, nor 0x11. This call 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; call it using -.BR syscall (2). -.PP .BR modify_ldt () should not be used for thread-local storage, as it slows down context switches and only supports a limited number of threads. From patchwork Mon May 10 17:55:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476640 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=aPglvxUt; 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 4Ff80p030Nz9sWp for ; Tue, 11 May 2021 03:58:02 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A20623988883; Mon, 10 May 2021 17:56:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A20623988883 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669416; bh=CujOcABIK+X861aRE80Z2RSaRPtiDpoJxB0RMvHDZeU=; 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=aPglvxUtqRf2/CvOWw05t6rwF/3cVJDQV3rATJO6pYW6ChQFITm1O7aUsHvykat9s s/HSQgQGmZghtx9AVF2jbtFEQXCBr9d70VpqlWW1K1wu4CS+K1hiG987uPFaJtwAoG Ys4FJlXTCf5ExDwoibyAYoV7a2CANF1n0Hxrajxg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 8C17E3987C28 for ; Mon, 10 May 2021 17:56:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8C17E3987C28 Received: by mail-wr1-x42a.google.com with SMTP id h4so17510543wrt.12 for ; Mon, 10 May 2021 10:56:53 -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=CujOcABIK+X861aRE80Z2RSaRPtiDpoJxB0RMvHDZeU=; b=kIkoGyDpBG518NxIpVmofM22l+4HygWs5GWDijkGsORQ0Yde2FurYdJxC8xns6HeGJ 91t6lblhk7ggvjuSjhkD54hnrSkCFvewT+09AizHVkvszApY1FiT319WOLxSESXmNXtp bDoRIBTKMbNl7n2rz3iXr3Zac0ZX0Ss/wcRHqGhlInp64laK5amtoQ9xkYAK2MDiaA0g 9UUXbk29s2O9booVS0KbyuipU/PIcQKgk8ao4cnT8gGcFC6dkqkj5W9WTs72VXH4yLGy guiRxgbSYApPTL7X5T2zrHXbl80X7jwOcBfssWbZfKHledP87vbWWANq+g+FR4381W/b 7o5Q== X-Gm-Message-State: AOAM532dF21e+0uec5V0UWcG9sKZpn8kYAjKCheIxBNyxIup2lF6DGtB AOvDGXzZ97VLg+6GUm2E50E= X-Google-Smtp-Source: ABdhPJxTVEzVILiK0f6HDaHsshxH8SYVnIhrVO2A7P8UQAgcvklPT8MEeJXtyy0YLaAaIXIWhz3bFQ== X-Received: by 2002:a5d:638b:: with SMTP id p11mr32149601wru.90.1620669412759; Mon, 10 May 2021 10:56:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:52 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 24/39] mq_getsetattr.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:33 +0200 Message-Id: <20210510175546.28445-25-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/mq_getsetattr.2 | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/man2/mq_getsetattr.2 b/man2/mq_getsetattr.2 index 2f11b9d44..23dd2a8b9 100644 --- a/man2/mq_getsetattr.2 +++ b/man2/mq_getsetattr.2 @@ -27,14 +27,13 @@ mq_getsetattr \- get/set message queue attributes .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " "struct mq_attr" " */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int mq_getsetattr(mqd_t " mqdes ", const struct mq_attr *" newattr , -.BI " struct mq_attr *" oldattr ); +.BI "int syscall(SYS_mq_getsetattr, mqd_t " mqdes , +.BI " const struct mq_attr *" newattr ", struct mq_attr *" oldattr ); .fi -.PP -.IR Note : -There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION Do not use this system call. .PP @@ -48,9 +47,7 @@ see the description of .SH CONFORMING TO This interface is nonstandard; avoid its use. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -(Actually, never call it unless you are writing a C library!) +Never call it unless you are writing a C library! .SH SEE ALSO .BR mq_getattr (3), .BR mq_overview (7) From patchwork Mon May 10 17:55:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476641 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=KUUc+Kz3; 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 4Ff80s6x2Hz9sWl for ; Tue, 11 May 2021 03:58:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3661F3988886; Mon, 10 May 2021 17:56:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3661F3988886 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669417; bh=abi0pYctvvMdncGo9cnwwy4M+LI2oBukEc5Y0D1R4AA=; 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=KUUc+Kz36/kgVLQGsEzHvLLYBg/aIXRcBcCPTE5AUIqKxflYjsm/bGw5fsmGpUrK3 uUKtbhHtiZldrqu7Q2TLYzlJlGtcwEkf1ESBMBFT2aPg4+FOZ2931ouKQ6Y1FgtMPi RpZb0f/eUDdh68Km3WRvucZdQpF5G3B7dlSq3hKE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id EC2903987C3B for ; Mon, 10 May 2021 17:56:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EC2903987C3B Received: by mail-wr1-x42c.google.com with SMTP id d11so17520681wrw.8 for ; Mon, 10 May 2021 10:56:54 -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=abi0pYctvvMdncGo9cnwwy4M+LI2oBukEc5Y0D1R4AA=; b=RKmuCVK7Ls8aZ5WK1yGMulK/WfYlYHI88PG3xWReDEmbae42clSlna9Bk/uIzI/Ojd lwp0HIjlCLOBFnD31F/A09L2gk14nhfoom/LOCevPurWjxQImPfHTdT3sAQhgmKtO4dj gFh5NcGJGacJ8/MlpWitWqnXQ1UiNXE96X6jcPIxy9CKRkLqoRTyIgDkvx/tPIzx5GHx Z8rg+9iJeXz9/fYWRIEqQGu/gao0s4MDlLr2EJe7ZfReh+BFBR+NtXC+cbzEKh1Zj2PJ w+UbYFXi6m5DoYXg4310SMpGLXFvKIE8E/glqz+W9ZDXu3mT9pdcuXeJVn3A87PLDRPv 2ygw== X-Gm-Message-State: AOAM530Vw34l4Rui7Vo7ZYJPXVBBFG/KQkPy9wXGxsdIO/VKSDHxQ7Av U1GlleJsDsrRFFqOtwmNPZc= X-Google-Smtp-Source: ABdhPJxCzNfk26JW5LK2eH+lliFxdB2fPvyVWIpT7AqIb6Z3un6gnGTdKAjTdt9R6gAZBx6YpV1mFQ== X-Received: by 2002:a5d:5263:: with SMTP id l3mr32546370wrc.263.1620669414078; Mon, 10 May 2021 10:56:54 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:53 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 25/39] alloc_hugepages.2, arch_prctl.2, capget.2, clone.2, delete_module.2, exit_group.2, get_robust_list.2, getunwind.2, init_module.2: Add note about the use of syscall(2) Date: Mon, 10 May 2021 19:55:34 +0200 Message-Id: <20210510175546.28445-26-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/alloc_hugepages.2 | 5 +++++ man2/arch_prctl.2 | 6 ++++++ man2/capget.2 | 5 +++++ man2/clone.2 | 6 ++++++ man2/delete_module.2 | 6 ++++++ man2/exit_group.2 | 6 ++++++ man2/get_robust_list.2 | 5 +++++ man2/getunwind.2 | 6 ++++++ man2/init_module.2 | 5 +++++ 9 files changed, 50 insertions(+) diff --git a/man2/alloc_hugepages.2 b/man2/alloc_hugepages.2 index cc76fc495..47f9da6b0 100644 --- a/man2/alloc_hugepages.2 +++ b/man2/alloc_hugepages.2 @@ -35,6 +35,11 @@ alloc_hugepages, free_hugepages \- allocate or free huge pages .BI "int syscall(SYS_free_hugepages, void *" addr ); .\" asmlinkage int sys_free_hugepages(unsigned long addr); .fi +.PP +.IR Note : +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The system calls .BR alloc_hugepages () diff --git a/man2/arch_prctl.2 b/man2/arch_prctl.2 index 7ae5b350c..982416761 100644 --- a/man2/arch_prctl.2 +++ b/man2/arch_prctl.2 @@ -34,6 +34,12 @@ arch_prctl \- set architecture-specific thread state .BI "int syscall(SYS_arch_prctl, int " code ", unsigned long " addr ); .BI "int syscall(SYS_arch_prctl, int " code ", unsigned long *" addr ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR arch_prctl (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR arch_prctl () sets architecture-specific process or thread state. diff --git a/man2/capget.2 b/man2/capget.2 index 9dbc0404c..3ac05106f 100644 --- a/man2/capget.2 +++ b/man2/capget.2 @@ -28,6 +28,11 @@ capget, capset \- set/get capabilities of thread(s) .BI "int syscall(SYS_capset, cap_user_header_t " hdrp , .BI " const cap_user_data_t " datap ); .fi +.PP +.IR Note : +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION These two system calls are the raw kernel interface for getting and setting thread capabilities. diff --git a/man2/clone.2 b/man2/clone.2 index 04b4ec38c..e381da165 100644 --- a/man2/clone.2 +++ b/man2/clone.2 @@ -63,6 +63,12 @@ clone, __clone2, clone3 \- create a child process .PP .BI "long syscall(SYS_clone3, struct clone_args *" cl_args ", size_t " size ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR clone3 (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION These system calls create a new ("child") process, in a manner similar to diff --git a/man2/delete_module.2 b/man2/delete_module.2 index 21c9e9d8d..3b14111c5 100644 --- a/man2/delete_module.2 +++ b/man2/delete_module.2 @@ -33,6 +33,12 @@ delete_module \- unload a kernel module .PP .BI "int syscall(SYS_delete_module, const char *" name ", unsigned int " flags ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR delete_module (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR delete_module () diff --git a/man2/exit_group.2 b/man2/exit_group.2 index d197f1f2e..1533529f8 100644 --- a/man2/exit_group.2 +++ b/man2/exit_group.2 @@ -32,6 +32,12 @@ exit_group \- exit all threads in a process .PP .BI "noreturn void syscall(SYS_exit_group, int " status ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR exit_group (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION This system call is equivalent to .BR _exit (2) diff --git a/man2/get_robust_list.2 b/man2/get_robust_list.2 index d1b1c59bc..66b27d905 100644 --- a/man2/get_robust_list.2 +++ b/man2/get_robust_list.2 @@ -42,6 +42,11 @@ get_robust_list, set_robust_list \- get/set list of robust futexes .BI "long syscall(SYS_set_robust_list," .BI " struct robust_list_head *" head ", size_t " len ); .fi +.PP +.IR Note : +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION These system calls deal with per-thread robust futex lists. These lists are managed in user space: diff --git a/man2/getunwind.2 b/man2/getunwind.2 index 403bd7770..0935497c6 100644 --- a/man2/getunwind.2 +++ b/man2/getunwind.2 @@ -35,6 +35,12 @@ getunwind \- copy the unwind data to caller's buffer .PP .BI "long syscall(SYS_getunwind, void " *buf ", size_t " buf_size ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR getunwind (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .I Note: this system call is obsolete. .PP diff --git a/man2/init_module.2 b/man2/init_module.2 index 13d1b7f0a..aac0c6631 100644 --- a/man2/init_module.2 +++ b/man2/init_module.2 @@ -38,6 +38,11 @@ init_module, finit_module \- load a kernel module .BI "int syscall(SYS_finit_module, int " fd ", const char *" param_values , .BI " int " flags ); .fi +.PP +.IR Note : +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR init_module () loads an ELF image into kernel space, From patchwork Mon May 10 17:55:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476642 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=I+oxRhyV; 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 4Ff80x6Dm3z9sWl for ; Tue, 11 May 2021 03:58:09 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BCD29398888B; Mon, 10 May 2021 17:56:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCD29398888B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669418; bh=gxCmG5Kd+TaaV5+mAaigLRxnoTYuzJvrptNwSvlLxFs=; 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=I+oxRhyVFpPO7gTk8WBDOr52eUdxMb8UwZCHN4cmRqZ11Z0vYTGaplPvxmHgA07sJ jX2M9pxJxpAeIV0diVWQ55y2969RSULzVt6x9umw0m6PUsykzulPwFpoWA2hE5+OTO 26vbgQIdCiFLnwHjRzI2MWT/bhxS1edP4Newq0z4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 2B0203987C35 for ; Mon, 10 May 2021 17:56:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2B0203987C35 Received: by mail-wr1-x431.google.com with SMTP id l2so17529296wrm.9 for ; Mon, 10 May 2021 10:56:56 -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=gxCmG5Kd+TaaV5+mAaigLRxnoTYuzJvrptNwSvlLxFs=; b=FV6KlRPUrHyEz+33TwiPR1gWgvdVjlebV4lEOmfhpYlg0YlALQM9usGpOukdIO79Ll Ugfl4yMEa5/HBWSD4NXOtK0BqcWRKPVD0xtbTqUkwfT1SyavuaWLkEprP15NDRzrKBjH sdYJOjf8XhXlEMV8PG481kxCUz1me25qGsymEdjt7+z06+3KcgDSTGHZxqbHCLZDy/y1 9iVausQ/dj+cKLF8UHekic6DgFpO60T056evIpp5fZwz2rin+lI4mVFhjP65111p/wvc t7FBoO8MAsSga6tWSMjLlyb/69PVl/jFSDqw+nFbRlL6SvAQIG6MdxVLV/Un7kSh51GO tN9A== X-Gm-Message-State: AOAM530ucNLOMtyARB0PdYFrAeeH4FQhdPwqQOseD5J813U4b2/rrGl6 2ew5AlvrBETwWMOWtWMXn+bQmgEYqXI= X-Google-Smtp-Source: ABdhPJxfS2lYrqrF/cvfzka67zctVJ4MdsvsEU3z5T2QxV+SrkM5MBgaV+67weyZybTshaG0l6aDtw== X-Received: by 2002:adf:b30a:: with SMTP id j10mr28054835wrd.417.1620669415334; Mon, 10 May 2021 10:56:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:55 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 26/39] open.2: Remove unused Date: Mon, 10 May 2021 19:55:35 +0200 Message-Id: <20210510175546.28445-27-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" I can't see a reason to include it. provides O_* constants for 'flags', S_* constants for 'mode', and mode_t. Probably a long time ago, some of those weren't defined in , and both headers needed to be included, or maybe it's a historical error. Signed-off-by: Alejandro Colomar --- man2/open.2 | 1 - 1 file changed, 1 deletion(-) diff --git a/man2/open.2 b/man2/open.2 index bac1ee806..1bcd995f4 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -53,7 +53,6 @@ open, openat, creat \- open and possibly create a file .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int open(const char *" pathname ", int " flags ); 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: 1476643 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=nZA1ongI; 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 4Ff8120Dxbz9sWl for ; Tue, 11 May 2021 03:58:14 +1000 (AEST) 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 () From patchwork Mon May 10 17:55:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476644 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=2620:52:3:1:0:246e:9693:128c; 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=Bh43AXPh; 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 4Ff81612DCz9sWl for ; Tue, 11 May 2021 03:58:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4FC173988898; Mon, 10 May 2021 17:57:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FC173988898 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669421; bh=pPRtGR1hem9DTNvLYgsA1Kk8tWymNQKzo15ovBiFWnQ=; 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=Bh43AXPhiDV7gVH2xRwev1hzV1pYpQghf20yW2bVMfeB8OzJYKIWTffpGbkc4PQBw U3U7XW6uP9wDaGTxbmGTpMgzCFpYUmi95T7uO0Pc1sX25tWVXX9yk0ZPcXG+n5bxEL k+sLtTVIwBSjsDMydJLmd6j8bVbxn9yOBx5eVU2E= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 9B7CC398888A for ; Mon, 10 May 2021 17:56:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9B7CC398888A Received: by mail-wr1-x436.google.com with SMTP id l2so17529413wrm.9 for ; Mon, 10 May 2021 10:56:58 -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=pPRtGR1hem9DTNvLYgsA1Kk8tWymNQKzo15ovBiFWnQ=; b=J0Ij/LvX+EhQnBkYFSrX5l6zyHT1Jl4qKP5dlttHBgGmifhUURr+N4A43uvXTKGgE2 L/dMb766q+BiYXXe7d0Yrtfb7AyEc1aGnLby/B7wKcwsUGKitep8SxyG+IXEqGNmuzec NYbX62jTbm4xx0ZvxgTJbX+ZBYXRw9fe/CGdregHTjuWFkGPPMiNaQxQcZMDCG955c3I CPHgqdQAIsT8zMQbTbVnQn2LSY6ihDJ9n2VyTNDrC95nuO+Hbi/Au/kHrjRu7f28JRuA NIRAgFQJHZDhPtVoHaM6H4wuYwbUP3wURNjDXGRJjfIvFU3h3ZwPXryBmVpu4HI1uDyO TENQ== X-Gm-Message-State: AOAM530qLxF8YkW5b5YpacqUyFY+BGmmURqoJgj42GV8xQMc7tgaw1K3 QCJyXUDH9VL89dWzswmpDCQ= X-Google-Smtp-Source: ABdhPJwOsI+99Xtdq7PrJvJ62oqOHrBffOMw8R8sfjI1QnRbjRgQSMSnkKF95g5IZgp/tGLRPHLPsw== X-Received: by 2002:adf:dfd1:: with SMTP id q17mr31283976wrn.177.1620669417804; Mon, 10 May 2021 10:56:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:57 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 28/39] perf_event_open.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:37 +0200 Message-Id: <20210510175546.28445-29-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/perf_event_open.2 | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 index 1d5d1aada..3bfc7c103 100644 --- a/man2/perf_event_open.2 +++ b/man2/perf_event_open.2 @@ -29,16 +29,21 @@ perf_event_open \- set up performance monitoring .SH SYNOPSIS .nf -.B #include -.B #include +.BR "#include " " /* Definition of " PERF_* " constants */" +.BR "#include " " /* Definition of " HW_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int perf_event_open(struct perf_event_attr *" attr , -.BI " pid_t " pid ", int " cpu ", int " group_fd , -.BI " unsigned long " flags ); +.BI "int syscall(SYS_perf_event_open, struct perf_event_attr *" attr , +.BI " pid_t " pid ", int " cpu ", int " group_fd \ +", unsigned long " flags ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR perf_event_open (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION Given a list of parameters, .BR perf_event_open () @@ -3641,10 +3646,6 @@ This system call 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; call it using -.BR syscall (2). -See the example below. -.PP The official way of knowing if .BR perf_event_open () support is enabled is checking From patchwork Mon May 10 17:55:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476645 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=2620:52:3:1:0:246e:9693:128c; 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=aMj9z2yF; 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 4Ff81B1VPXz9sWl for ; Tue, 11 May 2021 03:58:22 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 31D223987C3D; Mon, 10 May 2021 17:57:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31D223987C3D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669423; bh=Pii6/qQgkvbHNo1ydpOp5ILPG6p8/mxZOmh0VJJh7ik=; 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=aMj9z2yFx9W/d1GIr0+foRkC7dHI+o20WfRWnW0s63YKwPQIFZjBf5xKqTPJcV5ab CcgtTR9y+J3CD+OlVD7eTr6WHygQsbpyW0S66rA6yAjXXUpNjD2fYklPKXTNsTjIHp iHC9izn6fQ/BsL5zlW5Xbc3uoIa08MCRXFyMRfEE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id EFBA83987C3D for ; Mon, 10 May 2021 17:56:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EFBA83987C3D Received: by mail-wr1-x436.google.com with SMTP id d4so17521959wru.7 for ; Mon, 10 May 2021 10:56:59 -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=Pii6/qQgkvbHNo1ydpOp5ILPG6p8/mxZOmh0VJJh7ik=; b=ZIeaT/wtSlSD0+9k+5hOO9jupqOL10orc7bLX40/b7fT6E33lXXdgy6j+rKwvHnIoM q1FHXbtYriHdaLFkQmirXxCI8tszXYb6i9pZbIH//w6g3HUAxWaGo1WQNLKqDfoQqaz3 67yzpNsi79uxibVGWrZ2HW4ReLgzwnhhF9iUblJHGhscwT2NO5hCuOiBcSOIh0fAq9H+ u8KVIJYVfncj6sIXash9SSfdTtUt3BrwfsWwf73kJyrzKhJVpGRAIh6fTtoeqk/CVZAy QsnLs3rFCsvQ4hfW55KTZCF435d5htJWPnseU4LT+D9qTQDNmXscimZG1qLIfMnQXQ1f hO2w== X-Gm-Message-State: AOAM5308nqfwkHMGY/qZiFmLO/SZsk4zqZABYfbU4lV9VjTLa6GL5uO5 bwyVlLsR/xIFmBqXHn3ZEAc= X-Google-Smtp-Source: ABdhPJwATkPssAaYhSq/shtUGd8OjVlgaraz5iYMZhDlqNqU8Qi+0D6UhEy77tAlWZfmqXNjhGny2A== X-Received: by 2002:adf:e412:: with SMTP id g18mr32469741wrm.205.1620669419160; Mon, 10 May 2021 10:56:59 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:58 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 29/39] pidfd_getfd.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:38 +0200 Message-Id: <20210510175546.28445-30-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/pidfd_getfd.2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/man2/pidfd_getfd.2 b/man2/pidfd_getfd.2 index a4bf5bfa1..71d7ae4db 100644 --- a/man2/pidfd_getfd.2 +++ b/man2/pidfd_getfd.2 @@ -27,11 +27,18 @@ pidfd_getfd \- obtain a duplicate of another process's file descriptor .SH SYNOPSIS .nf -.BI "int pidfd_getfd(int " pidfd ", int " targetfd ", unsigned int " flags ); +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_pidfd_getfd, int " pidfd ", int " targetfd , +.BI " unsigned int " flags ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR pidfd_getfd (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR pidfd_getfd () @@ -121,9 +128,6 @@ first appeared in Linux 5.6. .BR pidfd_getfd () is Linux specific. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.PP For a description of PID file descriptors, see .BR pidfd_open (2). .PP From patchwork Mon May 10 17:55:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476646 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=2620:52:3:1:0:246e:9693:128c; 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=jowp4YbE; 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 4Ff81G0L6vz9sWl for ; Tue, 11 May 2021 03:58:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B550139888A0; Mon, 10 May 2021 17:57:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B550139888A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669423; bh=xjxtXDywb0s139fONhfnTw35XQrmKhcgjPyWrpJqsa0=; 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=jowp4YbE/B5jqYIKu7EbZTq1MJscUtfuLMT6a5ZPXrwriH1/ywER6rSJAw9n4py1z HOLfN9R7wGnrUOrLjKqlLMH0dXBpYUwmmMOn7ZmC6697WUdGjZFlD86O/ZgxDYrHkJ riZbtOpa3b1Qg1eTgKu0o3mbpQbLjQvZwfWQQvlg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 44CD23987C3D for ; Mon, 10 May 2021 17:57:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 44CD23987C3D Received: by mail-wr1-x429.google.com with SMTP id v12so17518317wrq.6 for ; Mon, 10 May 2021 10:57:01 -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=xjxtXDywb0s139fONhfnTw35XQrmKhcgjPyWrpJqsa0=; b=BCv+FlDRcVcyQQrafvlEQVNoWXXSDkE8XBv2jic3ygUJuoSMBoZhRZHk/Z3JlgsFAn tCpFgbScbRnpWcRy/wI7tDM+bNEW7a6tW5vXYX1slrp6pOK0tuklqY18pLq9b5P9ZpA+ zHxUfAdas6rw0RnD58VtU4yempNuk1qleFZPMkXx1Lx66NSaj6cgCcdBKLFDSALiAyKq UD6dmkSlRC/zQEqeAjh0H/34SnhhZxOSS8r41Byqns0s7TGM3OX0Y526qfJ729eJvp8l wvs1Fg3wIGEsXTzQUxdzUfbp4o4CHnddx43upm8vsvkj2KjoGfXj0WyjI6h0HoCuMyVH iwcA== X-Gm-Message-State: AOAM5331xOfwiQK6wBskWaTLhtwXkUmutZB+jxr1o1LAGLwphj+hjU9p UtW8vbBFwlWhj8QiRq8/nzc= X-Google-Smtp-Source: ABdhPJwT0SfNY/VAmKey/5nRXYDl01hC5QVlGcYQPJMoCqVwReVp23aQK6lER6R9HFhchBvpNtnX8A== X-Received: by 2002:adf:d1c4:: with SMTP id b4mr32651069wrd.301.1620669420410; Mon, 10 May 2021 10:57:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:00 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 30/39] pidfd_open.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:39 +0200 Message-Id: <20210510175546.28445-31-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/pidfd_open.2 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/man2/pidfd_open.2 b/man2/pidfd_open.2 index d0bb1769b..cb91ce71f 100644 --- a/man2/pidfd_open.2 +++ b/man2/pidfd_open.2 @@ -27,11 +27,17 @@ pidfd_open \- obtain a file descriptor that refers to a process .SH SYNOPSIS .nf -.BI "int pidfd_open(pid_t " pid ", unsigned int " flags ); +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_pidfd_open, pid_t " pid ", unsigned int " flags ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR pidfd_open (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR pidfd_open () @@ -89,9 +95,6 @@ first appeared in Linux 5.3. .BR pidfd_open () is Linux specific. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.PP The following code sequence can be used to obtain a file descriptor for the child of .BR fork (2): From patchwork Mon May 10 17:55:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476647 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=2620:52:3:1:0:246e:9693:128c; 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=jeTlMLVn; 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 4Ff81K3zTZz9sWl for ; Tue, 11 May 2021 03:58:29 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D9F13987C13; Mon, 10 May 2021 17:57:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D9F13987C13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669426; bh=QgZu+gP2yWfAhEHD5uxeXcbfWgid6BmGJqNyW/ERkgQ=; 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=jeTlMLVnFDdVtLzngCAHn9lOKKp9qOFCzLEuIfry060sNUgeOQQ+m+rEsVkaEBLB0 kluAPAf/gQqfpir9+83xHnRuoqfQJtFRWKTgZ9iltqgF3Cb8AiaOCYm6ePgfoGQudg cvrr5ROP/cbinW60tWL4qp60YzXvmghceekyq/0I= 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 9660F3988895 for ; Mon, 10 May 2021 17:57:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9660F3988895 Received: by mail-wm1-x32e.google.com with SMTP id y124-20020a1c32820000b029010c93864955so11658050wmy.5 for ; Mon, 10 May 2021 10:57:02 -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=QgZu+gP2yWfAhEHD5uxeXcbfWgid6BmGJqNyW/ERkgQ=; b=qomIfRSCK+OEJFM0Xa87OZWA9BxZ2vAmGKKVqcfkUiUM82uRk2NibBrT9dCe4j973J GaceHHJEITrdOGhKPsZGpHfIweBhXqFK0GjjDkiPDyJ80fjpFhvRgmL4VeVzQsa4TIF9 njrZxS2fdaT1a6GrQ8+PEmQeJT4vs8Nhy/cFq30wAi06g9JPmAc9HiQ2x3qKO5oOPt1b /3915wIqYqUFjeuJrG2aP6WZlgijfDudidR4j8Z086OuzonnlHa1wyfc7qeR3tpTMtgk vS2NoBIGyUs+YftvWafxhtSQCG0cdpDFwlhoWEfMT/kmeeQkHjpx8b2za0WIBmzKVCT+ RIoA== X-Gm-Message-State: AOAM533soSB8umxq6oGu/p3hRhQijK73nAZpTjLFAn2be1qv6HIvY9UU 08qMJVYirgZXJwq3uC2dwvCYrSyVs8w= X-Google-Smtp-Source: ABdhPJy0jaW1PrkfMDBHOsCMdh8vZTiiHCdILAiBTKLtOXZpx8IcfyLSkGNnm8FhdDrrHUfs4JXnpw== X-Received: by 2002:a05:600c:4f90:: with SMTP id n16mr405333wmq.98.1620669421817; Mon, 10 May 2021 10:57:01 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:01 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 31/39] pidfd_send_signal.2: Use syscall(SYS_...); for system calls without a wrapper. Fix includes too Date: Mon, 10 May 2021 19:55:40 +0200 Message-Id: <20210510175546.28445-32-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/pidfd_send_signal.2 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/man2/pidfd_send_signal.2 b/man2/pidfd_send_signal.2 index b025e22a0..12412c6d8 100644 --- a/man2/pidfd_send_signal.2 +++ b/man2/pidfd_send_signal.2 @@ -27,14 +27,21 @@ pidfd_send_signal \- send a signal to a process specified by a file descriptor .SH SYNOPSIS .nf -.B "#include " +.BR "#include " " /* Definition of " SIG* " constants */" +.BR "#include " " /* Definition of " SI_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int pidfd_send_signal(int " pidfd ", int " sig ", siginfo_t *" info , +.BI "int syscall(SYS_pidfd_send_signal, int " pidfd ", int " sig \ +", siginfo_t *" info , .BI " unsigned int " flags ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR pidfd_send_signal (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR pidfd_send_signal () @@ -136,9 +143,6 @@ first appeared in Linux 5.1. .BR pidfd_send_signal () is Linux specific. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.\" .SS PID file descriptors The .I pidfd From patchwork Mon May 10 17:55:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476648 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=2620:52:3:1:0:246e:9693:128c; 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=PAkUOO0B; 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 4Ff81P36R0z9sWl for ; Tue, 11 May 2021 03:58:33 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8C9A39888A4; Mon, 10 May 2021 17:57:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8C9A39888A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669426; bh=uwK/Zj0cVBGZDcI1tSawjgTV+FzJDoJDPF1ZQ/kt+1U=; 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=PAkUOO0BKAvSGPxNgVRPeCxR2PkfHckPAoQ78PE27GfCNNK0yri2af5fENPEtuaUv zDN3oOC2IfcTXk85PGQPfN9zqOjNefnoTdLVK7pWyjUoF7DjsPPPtiy/YeelcFax8+ OryYJtNyKq/SutdhtcnT4QkbvqWQy9TrErF8xkK0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 1408E3988895 for ; Mon, 10 May 2021 17:57:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1408E3988895 Received: by mail-wm1-x32b.google.com with SMTP id j3-20020a05600c4843b02901484662c4ebso11670727wmo.0 for ; Mon, 10 May 2021 10:57:04 -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=uwK/Zj0cVBGZDcI1tSawjgTV+FzJDoJDPF1ZQ/kt+1U=; b=eNO5g0ElswVQBNoWmRRHnm0E7b6KiQduCfzFM8GoSGVylJ1o56H0Q2OBIXTdLtOL/e T9OH08CWzefYF61sQqiapLrBKz90EQy7DlU9WDbuCIU5Vju9yYQwOs2O8e0mCLpVhMUS XZVOGONLZ73Hv5hPlVY252vrYRAg2VULbGO923eZG4ZkFE57vsc/ol8gdxwugQ9yiqh9 H9LP4GXM55GVxAd8lhzSYJG6IGmAxPGOjKcbqiuIdAkw0iciOK5lZewjAGkHTQozwr6T Vi/XEFtUL3lUVdhzbBw9KzOsFUD7LIfXGMQjE+3RFbzVZ7SVS+IzbSxAyVfv/MzQsZEk Sh7Q== X-Gm-Message-State: AOAM5336TpoOXRL+4auYZXf1zl0ZOhflwVm/9pIdKXpS8OMfJ3msI/lo XTBlvceZPTZqXXDsshE9glc= X-Google-Smtp-Source: ABdhPJwXT+/wJS3xNHC6gH723JTXhHMC/FNPZpy3IR10TyE+S7DRdzRf25dSAbcVmNZaLOklMkd/vQ== X-Received: by 2002:a7b:c252:: with SMTP id b18mr27920836wmj.32.1620669423239; Mon, 10 May 2021 10:57:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:03 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 32/39] pipe.2: wfix Date: Mon, 10 May 2021 19:55:41 +0200 Message-Id: <20210510175546.28445-33-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" For consistency with other pages. Signed-off-by: Alejandro Colomar --- man2/pipe.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/pipe.2 b/man2/pipe.2 index 9ac0341cf..93fbd36f2 100644 --- a/man2/pipe.2 +++ b/man2/pipe.2 @@ -40,10 +40,10 @@ pipe, pipe2 \- create pipe .nf .B #include .PP -.BI "int pipe(int " pipefd "[2]);" +.BI "int pipe(int " pipefd [2]); .PP .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" -.BR "#include " " /* Obtain O_* constant definitions */" +.BR "#include " " /* Definition of " O_* " constants */" .B #include .PP .BI "int pipe2(int " pipefd "[2], int " flags ); From patchwork Mon May 10 17:55:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476649 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=xz/jsg09; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff81T3N9qz9sWl for ; Tue, 11 May 2021 03:58:37 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DB24F39888AB; Mon, 10 May 2021 17:57:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB24F39888AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669427; bh=/4HBHw9Rc57063FYCLhInqQWq2ZCUzUI+E/e0nyfRGc=; 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=xz/jsg09qtAJKbL16+1nJCLj9M8mRJ/OCQhgbQm1YcMjyjExL5btt06L9ERcfxSQi kwJjCEUWPt3VnMOIyzLvvqodDXqEeKAQykIv76P2FEBphWOsYdOkmxpBk/0uS5P0hx cV2hvtSCtH4JPrxGJQ2eGdi8scTVJU8pHw7Bgbjg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 7C20B398889C for ; Mon, 10 May 2021 17:57:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7C20B398889C Received: by mail-wr1-x434.google.com with SMTP id t18so17549706wry.1 for ; Mon, 10 May 2021 10:57:05 -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=/4HBHw9Rc57063FYCLhInqQWq2ZCUzUI+E/e0nyfRGc=; b=GKRsfYGX71cuZkstY5ydaO4w6RDPWjm319SejOHgEUay4XUhDtwIkn6nL125+K7reN E5ZOjlph99YHtGrgP0zye/dSaRFijoQFucLaoLc3Mg2eRLT3JEqIfChU0hvwZh9w06II 0Az5qtHCOnr370lo/yJ34pvc5cZXqZx1b+SzVdaAev9OCj3ozuzZ6DtaHAq+cV+szvOq 2/9Rlhajff/gY3QAPawTUdgEcC7cSkCyg8Tr/P6NMNNwzDC5X7bMpIFpkZ31RTtBenb+ tMMiXwdQZJQQCPAujm4YoIjrS2ZvbzZZj4+PrPJFYp7PgOzxMejI+YuEaC1e3riHeie4 xhDQ== X-Gm-Message-State: AOAM531yECtNcy7S0ME3wFjOkam/f3NrWci6y2AoGEExy2GCVc4uwptQ xh2AOnVgKSgaJvAsU564fJU= X-Google-Smtp-Source: ABdhPJxawHm7tjo7zje4Z6EZ14p5XOc9J7Pd7VJH40ReiJKPOiYP+XXb1xT7O7TDocA6/EopXySfHg== X-Received: by 2002:adf:d1e1:: with SMTP id g1mr32659973wrd.401.1620669424625; Mon, 10 May 2021 10:57:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:04 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 33/39] pivot_root.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:42 +0200 Message-Id: <20210510175546.28445-34-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/pivot_root.2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index e0c34c450..c301c2e4a 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -29,11 +29,18 @@ pivot_root \- change the root mount .SH SYNOPSIS .nf -.BI "int pivot_root(const char *" new_root ", const char *" put_old ); +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_pivot_root, const char *" new_root \ +", const char *" put_old ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR pivot_root (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR pivot_root () changes the root mount in the mount namespace of the calling process. @@ -168,9 +175,6 @@ was introduced in Linux 2.3.41. .BR pivot_root () is Linux-specific and hence is not portable. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.PP A command-line interface for this system call is provided by .BR pivot_root (8). .PP From patchwork Mon May 10 17:55:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476650 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=2620:52:3:1:0:246e:9693:128c; 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=Y8VuBYSj; 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 4Ff81Y3WRFz9sWl for ; Tue, 11 May 2021 03:58:41 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 762193987C08; Mon, 10 May 2021 17:57:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 762193987C08 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669429; bh=/UROc8n6DFYkbl6R3xqr4P0JOQRKno35aghTJ7OxkAQ=; 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=Y8VuBYSjtXEEpzqRa1h3xpNydNZ5I0I9kGVLNlmo9sXQ3XypBPevxrVO/hGkGPZNE NprE4upIR5KZ7hRvs0CQuQQ6U+ActDd33pE+oHRK4EUo/3WmGnwqVtw0tDQTeNyjiV cnMtruP58ziyZq738fkg5ufoIlX47GisCCNm/zQ8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id E9E4E39888A5 for ; Mon, 10 May 2021 17:57:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E9E4E39888A5 Received: by mail-wr1-x42e.google.com with SMTP id n2so17589563wrm.0 for ; Mon, 10 May 2021 10:57:06 -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=/UROc8n6DFYkbl6R3xqr4P0JOQRKno35aghTJ7OxkAQ=; b=WiZ1kpsr38FaEZc6e0Dp6phiXGXAkxla6fgivRhnyA/EOMI4I5I3jEK6meCdJHfwZY KTXX2OqP6RsL2/zis/w+7y9YSp2/Um9n33YYzVe+5mTm5lT9F5CAyQ16pdVGyd4Wp6BP EtKS8dK3sDfdz5/OmlMS4LxZJkWQEUfd+TQXF1ygooLU/TzJv5qYqyK29rvk8fb8bcM1 mJRkVCdYTjbABpXnYXCaoa5VK52zpbZmf+iq/UNnySb82Y8rwzhhLv/jywRLslbx+0Qm sr969aulBD3xu8tby+UO5WfVg8I7E06E1UINhImMaBJoQ+2kL/DMTEf/258SjG34kuXj CqNg== X-Gm-Message-State: AOAM533/2sQBlXdhq0u1auQ3jpYEX+b8V57191txCZjD8MfXikSvBfb4 501wFZL+e6mA6GeExXq+aQU= X-Google-Smtp-Source: ABdhPJz7kdCDk8eQB2qTNg2/J+AyhjKFkAz+iph1RVN1mM1/Jy65B/V9de3/o9liW4DCDETG69c9qQ== X-Received: by 2002:adf:dd4f:: with SMTP id u15mr33329025wrm.308.1620669426119; Mon, 10 May 2021 10:57:06 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:05 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 34/39] poll.2: Remove Date: Mon, 10 May 2021 19:55:43 +0200 Message-Id: <20210510175546.28445-35-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" It is only used for providing 'sigset_t'. We're only documenting (with some exceptions) the includes needed for constants and the prototype itself. And 'sigset_t' is better documented in system_data_types(7). Remove that include. Signed-off-by: Alejandro Colomar --- man2/poll.2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/man2/poll.2 b/man2/poll.2 index 8622e7c7a..205468f3e 100644 --- a/man2/poll.2 +++ b/man2/poll.2 @@ -37,11 +37,10 @@ poll, ppoll \- wait for some event on a file descriptor .BI "int poll(struct pollfd *" fds ", nfds_t " nfds ", int " timeout ); .PP .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" -.B #include .B #include .PP .BI "int ppoll(struct pollfd *" fds ", nfds_t " nfds , -.BI " const struct timespec *" tmo_p ", const sigset_t *" sigmask ); +.BI " const struct timespec *" tmo_p ", const sigset_t *" sigmask ); .fi .SH DESCRIPTION .BR poll () From patchwork Mon May 10 17:55:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476651 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=r3q0k1sp; 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 4Ff81d0TPZz9sWl for ; Tue, 11 May 2021 03:58:45 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 08EDB39888B0; Mon, 10 May 2021 17:57:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 08EDB39888B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669431; bh=FljSassscloY2stR8BJfNO0D3IwHqV349sWRkF9HwOI=; 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=r3q0k1sprahdjawXZSu8ZXVhplxKdSUpIxiPcIpI6MU2/PhRySBfMTpgUSdwXn01G iP2CY3pdxOiEGiyXLCa4jPjJ8xsaiHmFYxYyytHuErCkY04eVITO2b3FWI4048si8W KjrlTYK8FRAQOvE1UyXb3kVSe/Zt4I52LQLqKZ8o= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 5632239888A5 for ; Mon, 10 May 2021 17:57:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5632239888A5 Received: by mail-wm1-x336.google.com with SMTP id l24-20020a7bc4580000b029014ac3b80020so11669458wmi.1 for ; Mon, 10 May 2021 10:57:08 -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=FljSassscloY2stR8BJfNO0D3IwHqV349sWRkF9HwOI=; b=El2ekumucBEQ3HCPA6nuscaZP3T9dpnKTo7ng/A5Gm2TbI/1QBi9Q1/pI2LczBXJxd pfmZUKSpwHVPFu2lzu+hKuRMo4SDRYm7EBiMoxDRrXH3APwLFZ3Pi61JaiiLfzHmH+Y8 gOBKc6k3zhC/F81NvTvN6LjT+FBcs7yeTQPM2bwnduudBHBejMpvmohjY93DNApW3Nv2 lJJPpudyI6wD2u+94GQbsozmnpG1ciGcsTn48K+JQ12IT93pcYq6iyAwLC4cIP8v+SBp jhYVnOvCNgJXTdCf5xQ2Ge04Os3JgI8hCz8+knXUs8JgkQa/hV5NOc/8D4SWh7z92btZ 8nKA== X-Gm-Message-State: AOAM533EzaXz4u0UVijgo6akklaBynxs4eDoMXBXmgB4jgnvhViYUQ3Q uuMNkgVXf9d3sTs4rH9ssEE= X-Google-Smtp-Source: ABdhPJw0wwVMIc8F89Qt0iD1yEXo9T40ohKPcjQDhPmOhtHqjsAYc8PVw6G61+C3QFkyRRhnOTCHxQ== X-Received: by 2002:a1c:b783:: with SMTP id h125mr381352wmf.182.1620669427517; Mon, 10 May 2021 10:57:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:07 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 35/39] process_madvise.2: Use syscall(SYS_...); for system calls without a wrapper. Fix includes too. Date: Mon, 10 May 2021 19:55:44 +0200 Message-Id: <20210510175546.28445-36-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/process_madvise.2 | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/man2/process_madvise.2 b/man2/process_madvise.2 index e2b8c16ac..0cdcf9c9a 100644 --- a/man2/process_madvise.2 +++ b/man2/process_madvise.2 @@ -30,15 +30,22 @@ process_madvise \- give advice about use of memory to a process .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " MADV_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.BR "#include " " /* Definition of " "struct iovec" " type */" +.B #include .PP -.BI "ssize_t process_madvise(int " pidfd ", const struct iovec *" iovec , -.BI " size_t " vlen ", int " advice , -.BI " unsigned int " flags ");" +.BI "ssize_t syscall(SYS_process_madvise, int " pidfd , +.BI " const struct iovec *" iovec ", size_t " vlen \ +", int " advice , +.BI " unsigned int " flags ");" .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR process_madvise (), +necessitating the use of +.BR syscall (2). .\" FIXME: See .SH DESCRIPTION The @@ -205,9 +212,6 @@ configuration option. The .BR process_madvise () system call is Linux-specific. -.SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). .SH SEE ALSO .BR madvise (2), .BR pidfd_open (2), From patchwork Mon May 10 17:55:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476652 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=2620:52:3:1:0:246e:9693:128c; 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=odSNuAWE; 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 4Ff81j0nGSz9sWl for ; Tue, 11 May 2021 03:58:49 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8E4FB39888A7; Mon, 10 May 2021 17:57:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E4FB39888A7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669432; bh=I9/Zex4KFBxHU6v7JD9w1mddZfobMhd6SH7FU9B2OkM=; 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=odSNuAWEPUVIeKvyHPYc0JW6a/B/p+SfX95C5tahZX4mD18NPKLpq/EXnH2Xa9Rjf Pv37NfJEzpYT54OP2Vdr8fjv8XiCO8V2ReKt9JVVbhRVfl+LBIfByb+mfyaCUubtaH Rt8I1A7HTxwARMPJmHbLt7dM29uy66exro9A+vNY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id D102239888A5 for ; Mon, 10 May 2021 17:57:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D102239888A5 Received: by mail-wr1-x431.google.com with SMTP id a4so17544784wrr.2 for ; Mon, 10 May 2021 10:57:09 -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=I9/Zex4KFBxHU6v7JD9w1mddZfobMhd6SH7FU9B2OkM=; b=dvlLwYSpNdDZ/XuyLJTUYvLSHpe78karaYe5Dnyo0xGDIBMbRdYVqrPEKy3GdZlXoF uGbfD6L8lXLoRNl/V1TKl+OOC2VqHZK8vFRFfn8pTTMLpwxY9/rfKmrb6c9TBZLDC1f3 Vr+4469aWHi/0Sf25lNXnot/L5Rmahlwd85Qb+1tc8u5pvmdfKB6JyI+cFSwhK7mCiXe lL7dc1xKqf2t5YvhTPj7D+NtfBfpn/Yd0weqKidg9buF3253CQgI3JfMaP/3DPU24Af7 9QFZBws9L13G1/h5K4SapmJQJNBRAOZ7NHP4yAYb4CLe8lbwl/zusAdbMCIGpA3pzTUI unTQ== X-Gm-Message-State: AOAM533TsujDRpL+P4uvxpEQBDZcSNCUS6kxfFWo/KUATCin19iYRACi xz4LptFMXgHHh/SbnZ2cQ+c= X-Google-Smtp-Source: ABdhPJxypu4eflsmd2m9gz19kerYYNCAYuGgBmfhcBXRTz/eUnt/pnxELEMIRmZCMPFLMKtpcfAPsQ== X-Received: by 2002:a5d:5186:: with SMTP id k6mr32611661wrv.335.1620669429051; Mon, 10 May 2021 10:57:09 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:08 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 36/39] quotactl.2: Better detail why is included Date: Mon, 10 May 2021 19:55:45 +0200 Message-Id: <20210510175546.28445-37-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/quotactl.2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man2/quotactl.2 b/man2/quotactl.2 index 63a493231..d22d8c584 100644 --- a/man2/quotactl.2 +++ b/man2/quotactl.2 @@ -30,7 +30,9 @@ quotactl \- manipulate disk quotas .SH SYNOPSIS .nf .B #include -.B #include /* for XFS quotas */ +.BR "#include " " /* Definition of " Q_X* " and " XFS_QUOTA_* \ +" constants" +.RB " (or " "; see NOTES) */" .PP .BI "int quotactl(int " cmd ", const char *" special ", int " id \ ", caddr_t " addr ); 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: 1476653 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=2620:52:3:1:0:246e:9693:128c; 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=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 ; 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 ; 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. From patchwork Mon May 10 17:55:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476654 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=w06baoCo; dkim-atps=neutral Received: from sourceware.org (server2.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 4Ff81r47zTz9sWp for ; Tue, 11 May 2021 03:58:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A713E3987C3C; Mon, 10 May 2021 17:57:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A713E3987C3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669435; bh=hVlV1tY3StezpKjmRS02yJ7Iam8WLSeNOHXffn06kAk=; 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=w06baoCocO7+gBcMc0b2hHxDWv5CbgmzAXUnPejfVtuxJ3xFQs+rTEK2q22Gct7k1 MNYwWX3wT9KYamW7HX6Uu6ZiCIKdYVgBwxr7Ur9/sKirPeBFO7CBICj1hxXsuXJTbr +fNda87/tffJSZSeyQqoygT4pJDTRF9uJ8dJhcCE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 3AC113987C11 for ; Mon, 10 May 2021 17:57:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3AC113987C11 Received: by mail-wr1-x42d.google.com with SMTP id t18so17550055wry.1 for ; Mon, 10 May 2021 10:57:13 -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=hVlV1tY3StezpKjmRS02yJ7Iam8WLSeNOHXffn06kAk=; b=XMMvCxcDWW1piBbNFiIYfU3cSpMaD512ZdM+db+L+8JJk8taBTzrbz/jBjRPtu0wRu xXjRQi5n5wYoO1cSjujl34EqXqUBAu1qSRHXwfbvLuuYoLbv1EKOnBUvrgRSyvqnL8og CV3cBRAy/Yx3oPWb3SYU/KsCGBqt0JveGIpgo1mR1eF6O/fMqf4H6G66OO60yFFdFVNX 0MnXskorPts6VVSpy3l+WqI+oN0svLzLyr2NIM7aF45+3egIRmXRn0sKl9CJgZxeo3Ca xOpxZ42xwbWfXZ3Fa3ddPSngJqElboMn2TUjHrywOO64EodQ9s0/WRcP7dR2UvjRCChs 3XNg== X-Gm-Message-State: AOAM530kvG+6rp9s4hZRBx81M24Qn+pDsp2yU8jz/wOpwFzIhRc/02kH UKbVLTYQbPGVGkxR1Jk2CtUhErNrK3c= X-Google-Smtp-Source: ABdhPJyps4UyLSGH1ctQbeu2oSrEDt1z5GuaCazNl1X/c4cRTRxeL6xCgr12jzy/Oc0j18Quj7E1xA== X-Received: by 2002:a5d:570e:: with SMTP id a14mr32484957wrv.254.1620669432378; Mon, 10 May 2021 10:57:12 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:12 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 38/39] readlink.2: ffix Date: Mon, 10 May 2021 19:55:47 +0200 Message-Id: <20210510175546.28445-39-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/readlink.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/readlink.2 b/man2/readlink.2 index 8f53f8866..7387ee4e0 100644 --- a/man2/readlink.2 +++ b/man2/readlink.2 @@ -51,7 +51,7 @@ readlink, readlinkat \- read value of a symbolic link .BI "ssize_t readlink(const char *restrict " pathname ", char *restrict " buf , .BI " size_t " bufsiz ); .PP -.BR "#include " "/* Definition of AT_* constants */" +.BR "#include " "/* Definition of " AT_* " constants */" .B #include .PP .BI "ssize_t readlinkat(int " dirfd ", const char *restrict " pathname , From patchwork Mon May 10 17:55:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476655 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=fCHkOg1h; 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 4Ff81w0gPHz9sWl for ; Tue, 11 May 2021 03:59:00 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3FA453987C2C; Mon, 10 May 2021 17:57:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FA453987C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669437; bh=A9Skuyv8icG5wWi2Xq9JnNslOzxsEpSunNTkTs0QelM=; 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=fCHkOg1hWhFIBxPYN3hWoXRLAqm6Tyg0Ce0PNdYefND0KHBgzGTx9Qaboi3slC5yz zPc6TA5KYhLYIAu5qpxFcikA1iI/sln9WLY9vHbBmaYDT9ODWVH99mtqYGD7a4dxeN f3YgFpkDGCVFqwN1xtpU7hTElBAy87eJiFn+Zgog= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id B5B2339888AE for ; Mon, 10 May 2021 17:57:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B5B2339888AE Received: by mail-wr1-x431.google.com with SMTP id l13so17509398wru.11 for ; Mon, 10 May 2021 10:57:14 -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=A9Skuyv8icG5wWi2Xq9JnNslOzxsEpSunNTkTs0QelM=; b=g8KczzXW56eWXX8KOvKzei+Bqrxs/67XhKzfIdhVIeRHY8GHt79eZuW7PMJTwhluxE JZs5eGAS9cXYK8eZc7XiiyFODlV5z9df5fBI/iGEqqBoXwrPDZD5iepcP7Vi2Zy3EtiA d2GUc5duxqWuh9kjfB+PgvLXTpSnQDZyGAyKv+QcgR8ngpK2M2yRrERVzMjCuZkje81B 4Dci5H/W/VRkv/UWBm1EBGAT5505s12TwERQrf0E0A2y8nUoiEzSnnR2AlF2myrgeahY m8qvou/A+k8mrBs4wMRshnDfx+DYHL36nTpUtwulAlPtrwdFXeO/1P62h0sncrLqxmv7 nvtQ== X-Gm-Message-State: AOAM533PE023s+z6WMC913aAOPGJ7/ZXTlNUpYaOpZ++hB4y6+EiwslI AhDtIMuDrbVuzP2y59sg9hA= X-Google-Smtp-Source: ABdhPJyO0OWEVr+mj7Oqeo4HpP3N1i/o0o+ucsraRX3i4epQJy7avRpOh1RowQTOKLuycUOI5pdevA== X-Received: by 2002:a5d:6648:: with SMTP id f8mr32962985wrw.396.1620669433929; Mon, 10 May 2021 10:57:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:13 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 39/39] reboot.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:48 +0200 Message-Id: <20210510175546.28445-40-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" Explain also why are headers needed. And some ffix. Signed-off-by: Alejandro Colomar --- man2/reboot.2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/man2/reboot.2 b/man2/reboot.2 index 8a9da5904..74e8f5caa 100644 --- a/man2/reboot.2 +++ b/man2/reboot.2 @@ -30,21 +30,23 @@ reboot \- reboot or enable/disable Ctrl-Alt-Del .SH SYNOPSIS .nf -/* Since kernel version 2.1.30 there are symbolic names LINUX_REBOOT_* +.RB "/* Since kernel version 2.1.30 there are symbolic names " LINUX_REBOOT_* for the constants and a fourth argument to the call: */ .PP +.BR "#include " \ +"/* Definition of " LINUX_REBOOT_* " constants */" +.BR "#include " "/* Definition of " SYS_* " constants */" .B #include -.B #include .PP -.BI "int reboot(int " magic ", int " magic2 ", int " cmd ", void *" arg ); +.BI "int syscall(SYS_reboot, int " magic ", int " magic2 ", int " cmd ", void *" arg ); .PP /* Under glibc and most alternative libc's (including uclibc, dietlibc, musl and a few others), some of the constants involved have gotten - symbolic names RB_*, and the library call is a 1-argument +.RB " symbolic names " RB_* ", and the library call is a 1-argument" wrapper around the system call: */ .PP +.BR "#include " "/* Definition of " RB_* " constants */" .B #include -.B #include .PP .BI "int reboot(int " cmd ); .fi