diff --git a/man2/gettid.2 b/man2/gettid.2 index 83fcbce1b..69ab1365f 100644 --- a/man2/gettid.2 +++ b/man2/gettid.2 @@ -32,9 +32,6 @@ gettid \- get thread identification .PP .B pid_t gettid(void); .fi -.PP -.IR Note : -There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION .BR gettid () returns the caller's thread ID (TID). @@ -55,16 +52,17 @@ This call is always successful. The .BR gettid () system call first appeared on Linux in kernel 2.4.11. +Library support was added in glibc 2.30. +(Earlier glibc versions did not provide a wrapper for this system call, +.\" FIXME . See http://sourceware.org/bugzilla/show_bug.cgi?id=6399 +.\" "gettid() should have a wrapper" +necessitating the use of +.BR syscall (2).) .SH CONFORMING TO .BR gettid () is Linux-specific and should not be used in programs that are intended to be portable. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.\" FIXME . See http://sourceware.org/bugzilla/show_bug.cgi?id=6399 -.\" "gettid() should have a wrapper" -.PP The thread ID returned by this call is not the same thing as a POSIX thread ID (i.e., the opaque value returned by .BR pthread_self (3)).