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.\" 25*df7d7638SFelix Johnson.Dd October 12, 2021 26678b238cSJung-uk Kim.Dt PTHREAD_GETTHREADID_NP 3 27678b238cSJung-uk Kim.Os 28678b238cSJung-uk Kim.Sh NAME 29678b238cSJung-uk Kim.Nm pthread_getthreadid_np 30678b238cSJung-uk Kim.Nd get the calling thread's integral ID 31678b238cSJung-uk Kim.Sh LIBRARY 32678b238cSJung-uk Kim.Lb libpthread 33678b238cSJung-uk Kim.Sh SYNOPSIS 34678b238cSJung-uk Kim.In pthread_np.h 35678b238cSJung-uk Kim.Ft int 36678b238cSJung-uk Kim.Fn pthread_getthreadid_np void 37678b238cSJung-uk Kim.Sh DESCRIPTION 38678b238cSJung-uk KimThe 39678b238cSJung-uk Kim.Fn pthread_getthreadid_np 40678b238cSJung-uk Kimfunction returns the unique integral ID of the calling thread. 41678b238cSJung-uk KimIts semantics is similar to the AIX's 42678b238cSJung-uk Kim.Fn pthread_getthreadid_np 433102cfe2SGlen Barberfunction. 44678b238cSJung-uk Kim.Sh RETURN VALUES 45678b238cSJung-uk KimThe 46678b238cSJung-uk Kim.Fn pthread_getthreadid_np 47678b238cSJung-uk Kimfunction returns the thread integral ID of the calling thread. 48678b238cSJung-uk Kim.Sh ERRORS 49678b238cSJung-uk KimNone. 50678b238cSJung-uk Kim.Sh SEE ALSO 51*df7d7638SFelix Johnson.Xr pthread_np 3 , 52678b238cSJung-uk Kim.Xr pthread_self 3 53678b238cSJung-uk Kim.Sh AUTHORS 54678b238cSJung-uk KimThis manual page was written by 55a63d6c94SBaptiste Daroussin.An Jung-uk Kim Aq Mt jkim@FreeBSD.org . 56