]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
set_tid_address.2: Use syscall(SYS_...); for system calls without a wrapper
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 24 May 2021 18:19:43 +0000 (20:19 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 9 Jun 2021 22:37:46 +0000 (10:37 +1200)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/set_tid_address.2

index 258c9b9ef0e67e627c1e0d80daf85b6c2411f7eb..65b4931eb23672f692788012ed4f6349bbc9d448 100644 (file)
 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),