Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man2/set_tid_address.2 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/man2/set_tid_address.2 b/man2/set_tid_address.2 index 258c9b9ef..65b4931eb 100644 --- a/man2/set_tid_address.2 +++ b/man2/set_tid_address.2 @@ -27,13 +27,17 @@ set_tid_address \- set pointer to thread ID .SH SYNOPSIS .nf -.B #include <linux/unistd.h> +.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" +.B #include <unistd.h> .PP -.BI "pid_t set_tid_address(int *" tidptr ); +.BI "pid_t syscall(SYS_set_tid_address, int *" tidptr ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR set_tid_address (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION For each thread, the kernel maintains two attributes (addresses) called .I set_child_tid @@ -99,9 +103,6 @@ This call is present since Linux 2.5.48. Details as given here are valid since Linux 2.5.49. .SH CONFORMING TO This system call is Linux-specific. -.SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). .SH SEE ALSO .BR clone (2), .BR futex (2), -- 2.31.1