From 12afd1b4049879db3dec019bb30e53d23ff57ad3 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 14 Apr 2008 14:46:47 +0000 Subject: [PATCH] Added VERSIONS section noting that this system call first appeared in 2.4.11. --- man2/gettid.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/man2/gettid.2 b/man2/gettid.2 index 4d1c9e21f..4b1afc5e4 100644 --- a/man2/gettid.2 +++ b/man2/gettid.2 @@ -23,7 +23,7 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" -.TH GETTID 2 2008-01-12 "Linux" "Linux Programmer's Manual" +.TH GETTID 2 2008-04-14 "Linux" "Linux Programmer's Manual" .SH NAME gettid \- get thread identification .SH SYNOPSIS @@ -48,6 +48,10 @@ in On success, returns the thread ID of the calling process. .SH ERRORS This call is always successful. +.SH VERSIONS +The +.BR gettid () +system call first appeared on Linux in kernel 2.4.11. .SH "CONFORMING TO" .BR gettid () is Linux-specific and should not be used in programs that @@ -55,6 +59,8 @@ are intended to be portable. .SH NOTES Glibc does not provide a wrapper for this system call; call it using .BR syscall (2). +.\" See http://sourceware.org/bugzilla/show_bug.cgi?id=6399 +.\" "gettid() should have a wrapper" The thread ID returned by this call is not the same thing as a POSIX thread ID (i.e., the opaque value returned by