From 3af6d22bb3850ab2bac67287e3a3d3b0e32868e5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:41:07 +0200 Subject: Merging upstream version 6.7. Signed-off-by: Daniel Baumann --- man2/set_tid_address.2 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'man2/set_tid_address.2') diff --git a/man2/set_tid_address.2 b/man2/set_tid_address.2 index 180b909..d174105 100644 --- a/man2/set_tid_address.2 +++ b/man2/set_tid_address.2 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH set_tid_address 2 2023-03-30 "Linux man-pages 6.05.01" +.TH set_tid_address 2 2023-10-31 "Linux man-pages 6.7" .SH NAME set_tid_address \- set pointer to thread ID .SH LIBRARY @@ -12,10 +12,10 @@ Standard C library .nf .BR "#include " " /* Definition of " SYS_* " constants */" .B #include -.PP +.P .BI "pid_t syscall(SYS_set_tid_address, int *" tidptr ); .fi -.PP +.P .IR Note : glibc provides no wrapper for .BR set_tid_address (), @@ -54,14 +54,14 @@ flag, is set to the value passed in the .I ctid argument of that system call. -.PP +.P The system call .BR set_tid_address () sets the .I clear_child_tid value for the calling thread to .IR tidptr . -.PP +.P When a thread whose .I clear_child_tid is not NULL terminates, then, @@ -69,13 +69,13 @@ if the thread is sharing memory with other threads, then 0 is written at the address specified in .I clear_child_tid and the kernel performs the following operation: -.PP +.P .in +4n .EX futex(clear_child_tid, FUTEX_WAKE, 1, NULL, NULL, 0); .EE .in -.PP +.P The effect of this operation is to wake a single thread that is performing a futex wait on the memory location. Errors from the futex wake operation are ignored. @@ -89,7 +89,7 @@ always succeeds. Linux. .SH HISTORY Linux 2.5.48. -.PP +.P Details as given here are valid since Linux 2.5.49. .SH SEE ALSO .BR clone (2), -- cgit v1.2.3