mirror of https://github.com/mkerrisk/man-pages
pidfd_send_signal.2: Use syscall(SYS_...); for system calls without a wrapper. Fix includes too
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
46227ba213
commit
94df87ef9b
|
@ -27,14 +27,21 @@
|
||||||
pidfd_send_signal \- send a signal to a process specified by a file descriptor
|
pidfd_send_signal \- send a signal to a process specified by a file descriptor
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B "#include <signal.h>"
|
.BR "#include <linux/signal.h>" " /* Definition of " SIG* " constants */"
|
||||||
|
.BR "#include <signal.h>" " /* Definition of " SI_* " constants */"
|
||||||
|
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
|
||||||
|
.B #include <unistd.h>
|
||||||
.PP
|
.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 );
|
.BI " unsigned int " flags );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
.IR Note :
|
.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
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
.BR pidfd_send_signal ()
|
.BR pidfd_send_signal ()
|
||||||
|
@ -136,9 +143,6 @@ first appeared in Linux 5.1.
|
||||||
.BR pidfd_send_signal ()
|
.BR pidfd_send_signal ()
|
||||||
is Linux specific.
|
is Linux specific.
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
Glibc does not provide a wrapper for this system call; call it using
|
|
||||||
.BR syscall (2).
|
|
||||||
.\"
|
|
||||||
.SS PID file descriptors
|
.SS PID file descriptors
|
||||||
The
|
The
|
||||||
.I pidfd
|
.I pidfd
|
||||||
|
|
Loading…
Reference in New Issue