linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx.manpages@gmail.com>
To: mtk.manpages@gmail.com
Cc: Florian Weimer <fweimer@redhat.com>, Jakub Wilk <jwilk@jwilk.net>,
	Alejandro Colomar <alx.manpages@gmail.com>,
	linux-man@vger.kernel.org, libc-alpha@sourceware.org
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	[thread overview]
Message-ID: <20210510175546.28445-26-alx.manpages@gmail.com> (raw)
In-Reply-To: <20210510175546.28445-1-alx.manpages@gmail.com>

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 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,
-- 
2.31.1


  parent reply	other threads:[~2021-05-10 17:56 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 17:55 [PATCH 00/39] man2: SYNOPSIS: Fix headers, use syscall(), and other fixes Alejandro Colomar
2021-05-10 17:55 ` [PATCH 01/39] futex.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 02/39] getdents.2: " Alejandro Colomar
2021-05-11  5:21   ` Michael Kerrisk (man-pages)
2021-05-10 17:55 ` [PATCH 03/39] ioctl_tty.2: Fix includes Alejandro Colomar
2021-05-10 17:55 ` [PATCH 04/39] ioctl_userfaultfd.2: SYNOPSIS: Add <linux/userfaultfd.h> Alejandro Colomar
2021-05-10 17:55 ` [PATCH 05/39] io_destroy.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 06/39] io_getevents.2: " Alejandro Colomar
2021-05-10 17:55 ` [PATCH 07/39] ioperm.2: Remove obvious comment Alejandro Colomar
2021-05-10 17:55 ` [PATCH 08/39] ioprio_set.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 09/39] ipc.2: " Alejandro Colomar
2021-05-10 17:55 ` [PATCH 10/39] ipc.2: Add needed include Alejandro Colomar
2021-05-10 17:55 ` [PATCH 11/39] kcmp.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 12/39] kcmp.2: tfix Alejandro Colomar
2021-05-10 17:55 ` [PATCH 13/39] kexec_load.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 14/39] scripts/bash_aliases: man_lsfunc(): Extract syscall name from syscall(SYS_...) Alejandro Colomar
2021-05-10 17:55 ` [PATCH 15/39] keyctl.2: Use syscall(SYS_...); for system calls without a glibc wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 16/39] link.2: ffix Alejandro Colomar
2021-05-10 17:55 ` [PATCH 17/39] llseek.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 18/39] lookup_dcookie.2: " Alejandro Colomar
2021-05-10 17:55 ` [PATCH 19/39] membarrier.2: " Alejandro Colomar
2021-05-10 17:55 ` [PATCH 20/39] mincore.2: Remove unused include Alejandro Colomar
2021-05-10 17:55 ` [PATCH 21/39] mknod.2: Remove unused includes Alejandro Colomar
2021-05-10 17:55 ` [PATCH 22/39] mmap2.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 23/39] modify_ldt.2: " Alejandro Colomar
2021-05-10 17:55 ` [PATCH 24/39] mq_getsetattr.2: " Alejandro Colomar
2021-05-10 17:55 ` Alejandro Colomar [this message]
2021-05-10 17:55 ` [PATCH 26/39] open.2: Remove unused <sys/stat.h> Alejandro Colomar
2021-05-10 18:02   ` Alejandro Colomar (man-pages)
2021-05-11  5:15     ` Michael Kerrisk (man-pages)
2021-05-10 17:55 ` [PATCH 27/39] openat2.2: Use syscall(SYS_...); for system calls without a wrapper; fix includes too Alejandro Colomar
2021-05-10 17:55 ` [PATCH 28/39] perf_event_open.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 29/39] pidfd_getfd.2: " Alejandro Colomar
2021-05-10 17:55 ` [PATCH 30/39] pidfd_open.2: " Alejandro Colomar
2021-05-10 17:55 ` [PATCH 31/39] pidfd_send_signal.2: Use syscall(SYS_...); for system calls without a wrapper. Fix includes too Alejandro Colomar
2021-05-10 17:55 ` [PATCH 32/39] pipe.2: wfix Alejandro Colomar
2021-05-10 17:55 ` [PATCH 33/39] pivot_root.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 34/39] poll.2: Remove <signal.h> Alejandro Colomar
2021-05-10 17:55 ` [PATCH 35/39] process_madvise.2: Use syscall(SYS_...); for system calls without a wrapper. Fix includes too Alejandro Colomar
2021-05-10 17:55 ` [PATCH 36/39] quotactl.2: Better detail why <xfs/xqm.h> is included Alejandro Colomar
2021-05-10 17:55 ` [PATCH 37/39] readdir.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 17:55 ` [PATCH 38/39] readlink.2: ffix Alejandro Colomar
2021-05-10 17:55 ` [PATCH 39/39] reboot.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-10 18:02   ` Alejandro Colomar (man-pages)
2021-05-11  5:19     ` Michael Kerrisk (man-pages)
2021-05-11  5:27 ` [PATCH 00/39] man2: SYNOPSIS: Fix headers, use syscall(), and other fixes Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210510175546.28445-26-alx.manpages@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=fweimer@redhat.com \
    --cc=jwilk@jwilk.net \
    --cc=libc-alpha@sourceware.org \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).