summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2001-08-18 22:19:50 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2001-08-18 22:19:50 +0000
commitaf0d84f708cfd453ff222c45404ded1ee7f0290f (patch)
treec39b4b57ce8dfe710b9fdd38bbc7f07df3e3c600
parentfb5df037b381aa36ca6f7aadbe34627b708f1b18 (diff)
Describe the pthread_main_np() function
-rw-r--r--lib/libc_r/man/pthread_main_np.342
-rw-r--r--lib/libpthread/man/pthread_main_np.342
2 files changed, 84 insertions, 0 deletions
diff --git a/lib/libc_r/man/pthread_main_np.3 b/lib/libc_r/man/pthread_main_np.3
new file mode 100644
index 00000000000..8d779360ee9
--- /dev/null
+++ b/lib/libc_r/man/pthread_main_np.3
@@ -0,0 +1,42 @@
+.\" $OpenBSD: pthread_main_np.3,v 1.1 2001/08/18 22:19:49 pvalchev Exp $
+.\"
+.\" Copyright (c) 2001 Peter Valchev <pvalchev@openbsd.org>.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted.
+.\"
+.Dd August 17, 2001
+.Dt PTHREAD_MAIN_NP 3
+.Os
+.Sh NAME
+.Nm pthread_main_np
+.Nd identify the main thread
+.Sh SYNOPSIS
+.Fd #include <pthread.h>
+.Fd #include <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
+.Sh SEE ALSO
+.Xr pthreads 3 ,
+.Xr pthreads_self 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.
diff --git a/lib/libpthread/man/pthread_main_np.3 b/lib/libpthread/man/pthread_main_np.3
new file mode 100644
index 00000000000..8d779360ee9
--- /dev/null
+++ b/lib/libpthread/man/pthread_main_np.3
@@ -0,0 +1,42 @@
+.\" $OpenBSD: pthread_main_np.3,v 1.1 2001/08/18 22:19:49 pvalchev Exp $
+.\"
+.\" Copyright (c) 2001 Peter Valchev <pvalchev@openbsd.org>.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted.
+.\"
+.Dd August 17, 2001
+.Dt PTHREAD_MAIN_NP 3
+.Os
+.Sh NAME
+.Nm pthread_main_np
+.Nd identify the main thread
+.Sh SYNOPSIS
+.Fd #include <pthread.h>
+.Fd #include <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
+.Sh SEE ALSO
+.Xr pthreads 3 ,
+.Xr pthreads_self 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.