From patchwork Thu Feb 4 11:15: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: 41939 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3FB5538708E6; Thu, 4 Feb 2021 11:15:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FB5538708E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1612437354; bh=0dc6p34wdkFF75ww9XLmoVAmRnuX4wruVgSQX1OHJXg=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=q68sIA9npCTEbUw4plBCNkJXLMJEUvS26wTMk/SgtEZYgKAcFLHc9MJfiOlwCURJ/ a5C6w2ABlTNCzPsbKIU+BwBmWpANilcpANTZ9aJ3zXtSpTWzB4Gf2bb6eK6HuDYO33 IMod9MMLdeoVoIe723fH1PaV5entYmmpQEM/j+Qw= 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 23C5F3846074 for ; Thu, 4 Feb 2021 11:15:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 23C5F3846074 Received: by mail-wm1-x32d.google.com with SMTP id l12so2779741wmq.2 for ; Thu, 04 Feb 2021 03:15:51 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=0dc6p34wdkFF75ww9XLmoVAmRnuX4wruVgSQX1OHJXg=; b=bZSNN5Vlc5XvrLnsjTh9oTHe+4SzviXyc+JD7cV678p9UydVTv7BGIr3QuwBODqJv5 w+aO6/kOE88vlSJwN2cQnn77G52GAm3kMdrBWbYpuB44VyPjPi6CAw3U3Y4i9izkkD7o BvLlMgxRcjZLET3E0uPyKNjKMruqytWzYO8hH+h1FP8GCYpR+yJ1tDvSk29YUT4mIkA7 9kRddZIbd15fDffkE5+mL28q+rMgvijyOcqPWMEHInm6UfPrMsJc0MhXyEuO6VlinGSu LL8HykV0plK+u1TN92K27osnOEJ2rkK5pjLF0ymc+xVZzZzO6OIjKukGFYLClyMCKNjl iKSQ== X-Gm-Message-State: AOAM531fg+KyGvyqBQxGZmIQi5D9T7I2le9wOWhJalXyYwprfVJA4nhC rkOM3I44pu35p+Um9NKeebApOGv9R+0= X-Google-Smtp-Source: ABdhPJwux2vQFLOknf/wRada9Jf0fN6bTsj+2/pa+gmWivsdDiL1AwdAlilAsX6PuzFlQ4+lDQcSLQ== X-Received: by 2002:a05:600c:414b:: with SMTP id h11mr6577695wmm.125.1612437350223; Thu, 04 Feb 2021 03:15:50 -0800 (PST) Received: from debian.vlc ([170.253.51.130]) by smtp.gmail.com with ESMTPSA id t15sm5651379wmi.48.2021.02.04.03.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 03:15:49 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH] bdflush.2, capget.2, get_mempolicy.2, ipc.2, lookup_dcookie.2, mbind.2, migrate_pages.2: Add notes about missing glibc wrappers Date: Thu, 4 Feb 2021 12:15:27 +0100 Message-Id: <20210204111526.194462-1-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 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: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" .../glibc$ grep_syscall_wrapper bdflush .../glibc$ grep_syscall_wrapper capget .../glibc$ grep_syscall_wrapper capset .../glibc$ grep_syscall_wrapper get_mempolicy .../glibc$ grep_syscall_wrapper ipc .../glibc$ grep_syscall_wrapper lookup_dcookie .../glibc$ grep_syscall_wrapper mbind .../glibc$ grep_syscall_wrapper migrate_pages .../glibc$ function grep_syscall_wrapper() { if ! [ -v 1 ]; then >&2 echo "Usage: ${FUNCNAME[0]} "; return ${EX_USAGE}; fi find * -type f \ |grep '\.h$' \ |sort -V \ |xargs pcregrep -Mn \ "(?s)^[^\s#][\w\s]+\s+\**${1}\s*\([\w\s()[\]*,]*?(...)?\)[\w\s()]*;" \ |sed -E 's/^[^:]+:[0-9]+:/&\n/'; } Signed-off-by: Alejandro Colomar --- man2/bdflush.2 | 3 +++ man2/capget.2 | 6 ++++++ man2/get_mempolicy.2 | 4 ++++ man2/ipc.2 | 6 ++++++ man2/lookup_dcookie.2 | 6 ++++++ man2/mbind.2 | 4 ++++ man2/migrate_pages.2 | 4 ++++ 7 files changed, 33 insertions(+) diff --git a/man2/bdflush.2 b/man2/bdflush.2 index 93190ee3a..6e69155bf 100644 --- a/man2/bdflush.2 +++ b/man2/bdflush.2 @@ -34,6 +34,9 @@ bdflush \- start, flush, or tune buffer-dirty-flush daemon .BI "int bdflush(int " func ", long *" address ); .BI "int bdflush(int " func ", long " data ); .fi +.PP +.IR Note : +There is no glibc wrapper for this system call; see VERSIONS. .SH DESCRIPTION .IR Note : Since Linux 2.6, diff --git a/man2/capget.2 b/man2/capget.2 index 226a917e7..ea504c28c 100644 --- a/man2/capget.2 +++ b/man2/capget.2 @@ -23,6 +23,9 @@ capget, capset \- set/get capabilities of thread(s) .BI "int capget(cap_user_header_t " hdrp ", cap_user_data_t " datap ); .BI "int capset(cap_user_header_t " hdrp ", const cap_user_data_t " datap ); .fi +.PP +.IR Note : +There are no glibc wrappers for these system calls; see NOTES. .SH DESCRIPTION These two system calls are the raw kernel interface for getting and setting thread capabilities. @@ -236,6 +239,9 @@ No such thread. .SH CONFORMING TO These system calls are Linux-specific. .SH NOTES +Glibc does not provide a wrapper for this system call; call it using +.BR syscall (2). +.PP The portable interface to the capability querying and setting functions is provided by the .I libcap diff --git a/man2/get_mempolicy.2 b/man2/get_mempolicy.2 index 1ee68933b..fbcab2a7c 100644 --- a/man2/get_mempolicy.2 +++ b/man2/get_mempolicy.2 @@ -37,6 +37,9 @@ get_mempolicy \- retrieve NUMA memory policy for a thread .PP Link with \fI\-lnuma\fP. .fi +.PP +.IR Note : +There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION .BR get_mempolicy () retrieves the NUMA policy of the calling thread or of a memory address, @@ -239,6 +242,7 @@ system call was added to the Linux kernel in version 2.6.7. .SH CONFORMING TO This system call is Linux-specific. .SH NOTES +Glibc does not provide a wrapper for this system call. For information on library support, see .BR numa (7). .SH SEE ALSO diff --git a/man2/ipc.2 b/man2/ipc.2 index 469185638..d2b409ff9 100644 --- a/man2/ipc.2 +++ b/man2/ipc.2 @@ -31,6 +31,9 @@ ipc \- System V IPC system calls ", int " third , .BI " void *" ptr ", long " fifth ); .fi +.PP +.IR Note : +There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION .BR ipc () is a common kernel entry point for the System\ V IPC calls @@ -54,6 +57,9 @@ 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; call it using +.BR syscall (2). .SH SEE ALSO .BR msgctl (2), .BR msgget (2), diff --git a/man2/lookup_dcookie.2 b/man2/lookup_dcookie.2 index c2f2a87e6..e38ca89a4 100644 --- a/man2/lookup_dcookie.2 +++ b/man2/lookup_dcookie.2 @@ -31,6 +31,9 @@ lookup_dcookie \- return a directory entry's path .nf .BI "int lookup_dcookie(u64 " cookie ", char *" buffer ", size_t " len ); .fi +.PP +.IR Note : +There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION Look up the full path of the directory entry specified by the value .IR cookie . @@ -89,5 +92,8 @@ 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) diff --git a/man2/mbind.2 b/man2/mbind.2 index d98969e7f..bfec5dd1b 100644 --- a/man2/mbind.2 +++ b/man2/mbind.2 @@ -45,6 +45,9 @@ mbind \- set memory policy for a memory range .PP Link with \fI\-lnuma\fP. .fi +.PP +.IR Note : +There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION .BR mbind () sets the NUMA memory policy, @@ -425,6 +428,7 @@ system call was added to the Linux kernel in version 2.6.7. .SH CONFORMING TO This system call is Linux-specific. .SH NOTES +Glibc does not provide a wrapper for this system call. For information on library support, see .BR numa (7). .PP diff --git a/man2/migrate_pages.2 b/man2/migrate_pages.2 index cbba5350d..e4c7af92d 100644 --- a/man2/migrate_pages.2 +++ b/man2/migrate_pages.2 @@ -27,6 +27,9 @@ migrate_pages \- move all pages in a process to another set of nodes .BI " const unsigned long *" new_nodes ); .fi .PP +.IR Note : +There is no glibc wrapper for this system call; see NOTES. +.PP Link with \fI\-lnuma\fP. .SH DESCRIPTION .BR migrate_pages () @@ -140,6 +143,7 @@ system call first appeared on Linux in version 2.6.16. .SH CONFORMING TO This system call is Linux-specific. .SH NOTES +Glibc does not provide a wrapper for this system call. For information on library support, see .BR numa (7). .PP