xref: /dflybsd-src/lib/libc/sys/lwp_gettid.2 (revision 0d9899e72d0ab73653a47790ac79317a20a1601c)
1f9366a82SSimon Schubert.\" Copyright (c) 2007 The DragonFly Project.  All rights reserved.
2f9366a82SSimon Schubert.\"
3f9366a82SSimon Schubert.\" This code is derived from software contributed to The DragonFly Project
4f9366a82SSimon Schubert.\" by Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
5f9366a82SSimon Schubert.\"
6f9366a82SSimon Schubert.\" Redistribution and use in source and binary forms, with or without
7f9366a82SSimon Schubert.\" modification, are permitted provided that the following conditions
8f9366a82SSimon Schubert.\" are met:
9f9366a82SSimon Schubert.\"
10f9366a82SSimon Schubert.\" 1. Redistributions of source code must retain the above copyright
11f9366a82SSimon Schubert.\"    notice, this list of conditions and the following disclaimer.
12f9366a82SSimon Schubert.\" 2. Redistributions in binary form must reproduce the above copyright
13f9366a82SSimon Schubert.\"    notice, this list of conditions and the following disclaimer in
14f9366a82SSimon Schubert.\"    the documentation and/or other materials provided with the
15f9366a82SSimon Schubert.\"    distribution.
16f9366a82SSimon Schubert.\" 3. Neither the name of The DragonFly Project nor the names of its
17f9366a82SSimon Schubert.\"    contributors may be used to endorse or promote products derived
18f9366a82SSimon Schubert.\"    from this software without specific, prior written permission.
19f9366a82SSimon Schubert.\"
20f9366a82SSimon Schubert.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21f9366a82SSimon Schubert.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22f9366a82SSimon Schubert.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23f9366a82SSimon Schubert.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
24f9366a82SSimon Schubert.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25f9366a82SSimon Schubert.\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
26f9366a82SSimon Schubert.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27f9366a82SSimon Schubert.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28f9366a82SSimon Schubert.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29f9366a82SSimon Schubert.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
30f9366a82SSimon Schubert.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31f9366a82SSimon Schubert.\" SUCH DAMAGE.
32f9366a82SSimon Schubert.\"
33f9366a82SSimon Schubert.\" $DragonFly: src/lib/libc/sys/lwp_gettid.2,v 1.1 2007/03/12 21:07:42 corecode Exp $
34f9366a82SSimon Schubert.\"
35f9366a82SSimon Schubert.Dd March 12, 2007
36f9366a82SSimon Schubert.Dt LWP_GETTID 2
37f9366a82SSimon Schubert.Os
38f9366a82SSimon Schubert.Sh NAME
39f9366a82SSimon Schubert.Nm lwp_gettid
40f9366a82SSimon Schubert.Nd get calling lwp identification
41f9366a82SSimon Schubert.Sh LIBRARY
42f9366a82SSimon Schubert.Lb libc
43f9366a82SSimon Schubert.Sh SYNOPSIS
44*0d9899e7SSepherosa Ziehau.In sys/lwp.h
45f9366a82SSimon Schubert.Ft lwpid_t
46f9366a82SSimon Schubert.Fn lwp_gettid "void"
47f9366a82SSimon Schubert.Sh DESCRIPTION
48f9366a82SSimon SchubertThe
49f9366a82SSimon Schubert.Fn lwp_gettid
50f9366a82SSimon Schubertfunction returns the lwp id of the calling lwp.
51f9366a82SSimon Schubert.Sh ERRORS
52f9366a82SSimon SchubertThe
53f9366a82SSimon Schubert.Fn lwp_gettid
54f9366a82SSimon Schubertfunction is always successful and no return value is reserved
55f9366a82SSimon Schubertto indicate an error.
56f9366a82SSimon Schubert.Sh SEE ALSO
57f9366a82SSimon Schubert.Xr getpid 2 ,
58f9366a82SSimon Schubert.Xr getppid 2 ,
59f9366a82SSimon Schubert.Xr lwp_create 2
60f9366a82SSimon Schubert.Sh HISTORY
61f9366a82SSimon SchubertThe
62f9366a82SSimon Schubert.Fn lwp_gettid
63f9366a82SSimon Schubertfunction first appeared in
64f9366a82SSimon Schubert.Dx 1.9 .
65