From a9157ce950dfe2fc30795d43b9d79b9d1bffc48b Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 25 Apr 2026 19:54:44 -0400 Subject: docs: Added All OpenBSD Manuals --- static/openbsd/man3/pthread_stackseg_np.3 | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 static/openbsd/man3/pthread_stackseg_np.3 (limited to 'static/openbsd/man3/pthread_stackseg_np.3') diff --git a/static/openbsd/man3/pthread_stackseg_np.3 b/static/openbsd/man3/pthread_stackseg_np.3 new file mode 100644 index 00000000..cbdf51de --- /dev/null +++ b/static/openbsd/man3/pthread_stackseg_np.3 @@ -0,0 +1,50 @@ +.\" $OpenBSD: pthread_stackseg_np.3,v 1.8 2025/06/07 00:16:52 schwarze Exp $ +.\" +.\" PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman +.\" +.Dd $Mdocdate: June 7 2025 $ +.Dt PTHREAD_STACKSEG_NP 3 +.Os +.Sh NAME +.Nm pthread_stackseg_np +.Nd return stack size and location +.Sh SYNOPSIS +.Lb libpthread +.In pthread_np.h +.Ft int +.Fn pthread_stackseg_np "pthread_t thread" "stack_t *sinfo" +.Sh DESCRIPTION +The +.Fn pthread_stackseg_np +function returns information about the given thread's stack. +A +.Fa stack_t +is the same as a +.Fa struct sigaltstack +(see +.Xr sigaltstack 2 ) +except the +.Fa ss_sp +variable points to the top of the stack instead of the base. +.Sh RETURN VALUES +If successful, the +.Fn pthread_stackseg_np +function will return 0. +Otherwise an error number will be returned to indicate the error. +.Sh ERRORS +The +.Fn pthread_stackseg_np +function will fail if: +.Bl -tag -width Er +.It Bq Er EAGAIN +Stack information for the given thread is not currently available. +There is no guarantee that the given thread's stack information will ever +become available. +.El +.Sh SEE ALSO +.Xr sigaltstack 2 , +.Xr pthreads 3 +.Sh STANDARDS +.Fn pthread_stackseg_np +is a non-portable extension to +.St -p1003.1-2001 . -- cgit v1.2.3