[v5,26/35] delete_module.2: Use syscall(SYS_...); for system calls without a wrapper

Message ID 20210404115847.78166-27-alx.manpages@gmail.com
State New
Headers show
Series
  • Untitled series #36409
Related show

Commit Message

Florian Weimer via Libc-alpha April 4, 2021, 11:58 a.m.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

---
 man2/delete_module.2 | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

-- 
2.31.0

Comments

Florian Weimer via Libc-alpha April 5, 2021, 11:41 a.m. | #1
Hi ALex,

On 4/4/21 1:58 PM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

> ---

>  man2/delete_module.2 | 7 +++----

>  1 file changed, 3 insertions(+), 4 deletions(-)


Patch applied.

Thanks,

Michael


> diff --git a/man2/delete_module.2 b/man2/delete_module.2

> index 174ef04d2..21c9e9d8d 100644

> --- a/man2/delete_module.2

> +++ b/man2/delete_module.2

> @@ -28,12 +28,11 @@ delete_module \- unload a kernel module

>  .SH SYNOPSIS

>  .nf

>  .BR "#include <fcntl.h>" "            /* Definition of " O_* " constants */"

> +.BR "#include <sys/syscall.h>" "      /* Definition of " SYS_* " constants */"

> +.BR "#include <unistd.h>

>  .PP

> -.BI "int delete_module(const char *" name ", unsigned int " flags );

> +.BI "int syscall(SYS_delete_module, const char *" name ", unsigned int " flags );

>  .fi

> -.PP

> -.IR Note :

> -There is no glibc wrapper for this system call; see NOTES.

>  .SH DESCRIPTION

>  The

>  .BR delete_module ()

> 



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

Patch

diff --git a/man2/delete_module.2 b/man2/delete_module.2
index 174ef04d2..21c9e9d8d 100644
--- a/man2/delete_module.2
+++ b/man2/delete_module.2
@@ -28,12 +28,11 @@  delete_module \- unload a kernel module
 .SH SYNOPSIS
 .nf
 .BR "#include <fcntl.h>" "            /* Definition of " O_* " constants */"
+.BR "#include <sys/syscall.h>" "      /* Definition of " SYS_* " constants */"
+.BR "#include <unistd.h>
 .PP
-.BI "int delete_module(const char *" name ", unsigned int " flags );
+.BI "int syscall(SYS_delete_module, const char *" name ", unsigned int " flags );
 .fi
-.PP
-.IR Note :
-There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 The
 .BR delete_module ()