All of lore.kernel.org
 help / color / mirror / Atom feed
* gettid(2) feature test macro and header
@ 2020-05-23 23:55 Joseph C. Sible
  2020-05-25 10:57 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph C. Sible @ 2020-05-23 23:55 UTC (permalink / raw)
  To: Michael Kerrisk-manpages; +Cc: linux-man

The gettid(2) function requires the _GNU_SOURCE feature test macro,
but its man page doesn't mention this. Also, it comes from unistd.h,
but its man page only mentions sys/types.h.

Joseph C. Sible

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gettid(2) feature test macro and header
  2020-05-23 23:55 gettid(2) feature test macro and header Joseph C. Sible
@ 2020-05-25 10:57 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-05-25 10:57 UTC (permalink / raw)
  To: Joseph C. Sible; +Cc: mtk.manpages, linux-man

On 5/24/20 1:55 AM, Joseph C. Sible wrote:
> The gettid(2) function requires the _GNU_SOURCE feature test macro,
> but its man page doesn't mention this. Also, it comes from unistd.h,
> but its man page only mentions sys/types.h.

Thanks, Joseph. I applied the patch below.

Cheers,

Michael

--- a/man2/gettid.2
+++ b/man2/gettid.2
@@ -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);



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-25 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-23 23:55 gettid(2) feature test macro and header Joseph C. Sible
2020-05-25 10:57 ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.