*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: getthrid | Section: 2 | Source: OpenBSD | File: getthrid.2
GETTHRID(2) FreeBSD System Calls Manual GETTHRID(2) NAME getthrid - get thread identifier SYNOPSIS #include <unistd.h> pid_t getthrid(void); DESCRIPTION getthrid() returns the thread ID of the calling thread. This is used in the implementation of the thread library (-lpthread) and can appear in the output of system utilities such as ps(1) and kdump(1). Thread IDs are not a stable interface and should not be used directly by applications except for correlation with system utility output. Applications should use the pthread_t values from pthread_self(3) and pthread_create(3) to identify threads within the process itself. RETURN VALUES This function is always successful, and no return value is reserved to indicate an error. SEE ALSO getpid(2), __tfork(3), pthread_create(3), pthread_self(3) STANDARDS The getthrid() syscall is specific to OpenBSD and should not be used in portable applications. HISTORY The getthrid() syscall appeared in OpenBSD 3.9. FreeBSD 14.1-RELEASE-p8 March 30, 2016 FreeBSD 14.1-RELEASE-p8

Navigation Options