diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-02-15 14:15:24 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-02-15 20:58:20 +0100 |
| commit | 5de448e93c64ac003e18bae7fa1ca4a31a1e23e5 (patch) | |
| tree | fc6180e3262d29b74537346633826a7c9e098e32 /man2/tkill.2 | |
| parent | beb7a3c10e5c723e05a01fa2adfbc0e778bec347 (diff) | |
| download | man-pages-5de448e93c64ac003e18bae7fa1ca4a31a1e23e5.tar.gz | |
tkill.2: SYNOPSIS: Fix prototype parameter types
All but the last parameters of t[g]kill() use 'pid_t',
both in the kernel and glibc. Fix them.
......
.../linux/linux$ grep_syscall tkill
kernel/signal.c:3870:
SYSCALL_DEFINE2(tkill, pid_t, pid, int, sig)
include/linux/syscalls.h:685:
asmlinkage long sys_tkill(pid_t pid, int sig);
.../linux/linux$
.../gnu/glibc$ grep_glibc_prototype tgkill
sysdeps/unix/sysv/linux/bits/signal_ext.h:29:
extern int tgkill (__pid_t __tgid, __pid_t __tid, int __signal);
.../gnu/glibc$
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/tkill.2')
| -rw-r--r-- | man2/tkill.2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man2/tkill.2 b/man2/tkill.2 index 4b4eae3121..24636719da 100644 --- a/man2/tkill.2 +++ b/man2/tkill.2 @@ -31,8 +31,8 @@ tkill, tgkill \- send a signal to a thread .SH SYNOPSIS .nf -.BI "int tkill(int " tid ", int " sig ); -.BI "int tgkill(int " tgid ", int " tid ", int " sig ); +.BI "int tkill(pid_t " tid ", int " sig ); +.BI "int tgkill(pid_t " tgid ", pid_t " tid ", int " sig ); .fi .PP .IR Note : |
