_lwp_self(2) _lwp_self(2)
NAME
_lwp_self - get current LWP's identifier
SYNOPSIS
#include <sys/types.h>
#include <sys/lwp.h>
lwpid_t _lwp_self(void);
DESCRIPTION
_lwp_self returns the identifier of the current lightweight
process (LWP).
Return Values
_lwp_self returns the internal-to-the process identifier for
the calling LWP.
Errors
_lwp_self always succeeds.
REFERENCES
_lwp_create(2), getcontext(2)
NOTICES
Lightweight processes (LWPs) are internal interfaces and are
subject to change. Their use should be avoided.
Copyright 1994 Novell, Inc. Page 1