mirror of https://github.com/mkerrisk/man-pages
gettid.2: Glibc provides a wrapper since version 2.30
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
563bf760bf
commit
ed474f00fe
|
@ -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)).
|
||||
|
|
Loading…
Reference in New Issue