xref: /freebsd/share/man/man3/pthread_getthreadid_np.3 (revision 3102cfe2e21aaea969dcc5245c0b70d9ae643e34)
1678b238cSJung-uk Kim.\" Copyright (c) 2011 Jung-uk Kim <jkim@FreeBSD.org>
2678b238cSJung-uk Kim.\" All rights reserved.
3678b238cSJung-uk Kim.\"
4678b238cSJung-uk Kim.\" Redistribution and use in source and binary forms, with or without
5678b238cSJung-uk Kim.\" modification, are permitted provided that the following conditions
6678b238cSJung-uk Kim.\" are met:
7678b238cSJung-uk Kim.\" 1. Redistributions of source code must retain the above copyright
8678b238cSJung-uk Kim.\"    notice, this list of conditions and the following disclaimer.
9678b238cSJung-uk Kim.\" 2. Redistributions in binary form must reproduce the above copyright
10678b238cSJung-uk Kim.\"    notice, this list of conditions and the following disclaimer in the
11678b238cSJung-uk Kim.\"    documentation and/or other materials provided with the distribution.
12678b238cSJung-uk Kim.\"
13678b238cSJung-uk Kim.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14678b238cSJung-uk Kim.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15678b238cSJung-uk Kim.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16678b238cSJung-uk Kim.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17678b238cSJung-uk Kim.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18678b238cSJung-uk Kim.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19678b238cSJung-uk Kim.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20678b238cSJung-uk Kim.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21678b238cSJung-uk Kim.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22678b238cSJung-uk Kim.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23678b238cSJung-uk Kim.\" SUCH DAMAGE.
24678b238cSJung-uk Kim.\"
25678b238cSJung-uk Kim.\" $FreeBSD$
26678b238cSJung-uk Kim.\"
27*3102cfe2SGlen Barber.Dd February 25, 2012
28678b238cSJung-uk Kim.Dt PTHREAD_GETTHREADID_NP 3
29678b238cSJung-uk Kim.Os
30678b238cSJung-uk Kim.Sh NAME
31678b238cSJung-uk Kim.Nm pthread_getthreadid_np
32678b238cSJung-uk Kim.Nd get the calling thread's integral ID
33678b238cSJung-uk Kim.Sh LIBRARY
34678b238cSJung-uk Kim.Lb libpthread
35678b238cSJung-uk Kim.Sh SYNOPSIS
36678b238cSJung-uk Kim.In pthread_np.h
37678b238cSJung-uk Kim.Ft int
38678b238cSJung-uk Kim.Fn pthread_getthreadid_np void
39678b238cSJung-uk Kim.Sh DESCRIPTION
40678b238cSJung-uk KimThe
41678b238cSJung-uk Kim.Fn pthread_getthreadid_np
42678b238cSJung-uk Kimfunction returns the unique integral ID of the calling thread.
43678b238cSJung-uk KimIts semantics is similar to the AIX's
44678b238cSJung-uk Kim.Fn pthread_getthreadid_np
45*3102cfe2SGlen Barberfunction.
46678b238cSJung-uk Kim.Sh RETURN VALUES
47678b238cSJung-uk KimThe
48678b238cSJung-uk Kim.Fn pthread_getthreadid_np
49678b238cSJung-uk Kimfunction returns the thread integral ID of the calling thread.
50678b238cSJung-uk Kim.Sh ERRORS
51678b238cSJung-uk KimNone.
52678b238cSJung-uk Kim.Sh SEE ALSO
53678b238cSJung-uk Kim.Xr pthread_self 3
54678b238cSJung-uk Kim.Sh AUTHORS
55678b238cSJung-uk KimThis manual page was written by
56678b238cSJung-uk Kim.An Jung-uk Kim Aq jkim@FreeBSD.org .
57