summaryrefslogtreecommitdiff
path: root/static/openbsd/man3/pthread_main_np.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 19:54:44 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 19:54:44 -0400
commita9157ce950dfe2fc30795d43b9d79b9d1bffc48b (patch)
tree9df484304b560466d145e662c1c254ff0e9ae0ba /static/openbsd/man3/pthread_main_np.3
parent160aa82b2d39c46ad33723d7d909cb4972efbb03 (diff)
docs: Added All OpenBSD Manuals
Diffstat (limited to 'static/openbsd/man3/pthread_main_np.3')
-rw-r--r--static/openbsd/man3/pthread_main_np.340
1 files changed, 40 insertions, 0 deletions
diff --git a/static/openbsd/man3/pthread_main_np.3 b/static/openbsd/man3/pthread_main_np.3
new file mode 100644
index 00000000..21addc5a
--- /dev/null
+++ b/static/openbsd/man3/pthread_main_np.3
@@ -0,0 +1,40 @@
+.\" $OpenBSD: pthread_main_np.3,v 1.7 2025/06/07 00:16:52 schwarze Exp $
+.\"
+.\" Peter Valchev <pvalchev@openbsd.org> Public Domain, 2001
+.\"
+.Dd $Mdocdate: June 7 2025 $
+.Dt PTHREAD_MAIN_NP 3
+.Os
+.Sh NAME
+.Nm pthread_main_np
+.Nd identify the main thread
+.Sh SYNOPSIS
+.Lb libpthread
+.In pthread.h
+.In pthread_np.h
+.Ft int
+.Fn pthread_main_np "void"
+.Sh DESCRIPTION
+The
+.Fn pthread_main_np
+function identifies the main thread.
+.Sh RETURN VALUES
+The
+.Fn pthread_main_np
+function returns:
+.Bl -tag -width hrmf
+.It 1
+if the calling thread is the main thread
+.It 0
+if the calling thread is not the main thread
+.It -1
+if the thread initialization has not completed
+.El
+.Sh SEE ALSO
+.Xr pthread_self 3 ,
+.Xr pthreads 3
+.Sh STANDARDS
+The
+.Fn pthread_main_np
+function is non-portable and may not be supported with the above
+semantics on other POSIX systems.