mirror of https://github.com/mkerrisk/man-pages
gettid.2: Document header file and feature test macro requirements for gettid()
The gettid() wrapper was added glibc 2.30, and is declared by <unistd.h> if _GNU_SOURCE is defined. Reported-by: Joseph C. Sible <josephcsible@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a1d64896ae
commit
7996b4e48c
|
@ -28,6 +28,8 @@
|
|||
gettid \- get thread identification
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #define _GNU_SOURCE
|
||||
.B #include <unistd.h>
|
||||
.B #include <sys/types.h>
|
||||
.PP
|
||||
.B pid_t gettid(void);
|
||||
|
|
Loading…
Reference in New Issue