OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man2 / gettid.2
index 4b1afc5..c92a8ac 100644 (file)
@@ -1,8 +1,7 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright 2003 Abhijit Menon-Sen <ams@wiw.org>
 .\" and Copyright (C) 2008 Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -22,8 +21,9 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
-.TH GETTID 2 2008-04-14 "Linux" "Linux Programmer's Manual"
+.TH GETTID 2 2014-02-11 "Linux" "Linux Programmer's Manual"
 .SH NAME
 gettid \- get thread identification
 .SH SYNOPSIS
@@ -32,6 +32,9 @@ gettid \- get thread identification
 .sp
 .B pid_t gettid(void);
 .fi
+
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 .BR gettid ()
 returns the caller's thread ID (TID).
@@ -44,7 +47,7 @@ For further details, see the discussion of
 .BR CLONE_THREAD
 in
 .BR clone (2).
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 On success, returns the thread ID of the calling process.
 .SH ERRORS
 This call is always successful.
@@ -52,20 +55,43 @@ This call is always successful.
 The
 .BR gettid ()
 system call first appeared on Linux in kernel 2.4.11.
-.SH "CONFORMING TO"
+.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).
-.\" See http://sourceware.org/bugzilla/show_bug.cgi?id=6399
+.\" FIXME 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
 .BR pthread_self (3)).
-.SH "SEE ALSO"
+.SH SEE ALSO
+.BR capget (2),
 .BR clone (2),
+.BR fcntl (2),
 .BR fork (2),
-.BR getpid (2)
+.BR get_robust_list (2),
+.BR getpid (2),
+.\" .BR kcmp (2),
+.BR ioprio_set (2),
+.\" .BR move_pages (2),
+.\" .BR migrate_pages (2),
+.BR perf_event_open (2),
+.\" .BR process_vm_readv (2),
+.\" .BR ptrace (2),
+.BR sched_setaffinity (2),
+.BR sched_setparam (2),
+.BR sched_setscheduler (2),
+.BR tgkill (2),
+.BR timer_create (2)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.