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:
Michael Kerrisk 2020-05-25 12:54:14 +02:00
parent a1d64896ae
commit 7996b4e48c
1 changed files with 2 additions and 0 deletions

View File

@ -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);