From 18e21e1e4c3bc26d48395683fcf1334df6460e55 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 24 May 2021 20:19:43 +0200 Subject: [PATCH] set_tid_address.2: Use syscall(SYS_...); for system calls without a wrapper Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- 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 +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .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),