summaryrefslogtreecommitdiff
path: root/lib/libc_r/man/pthread_attr_setstackaddr.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/man/pthread_attr_setstackaddr.3')
-rw-r--r--lib/libc_r/man/pthread_attr_setstackaddr.364
1 files changed, 64 insertions, 0 deletions
diff --git a/lib/libc_r/man/pthread_attr_setstackaddr.3 b/lib/libc_r/man/pthread_attr_setstackaddr.3
new file mode 100644
index 00000000000..1ca3f85ddd2
--- /dev/null
+++ b/lib/libc_r/man/pthread_attr_setstackaddr.3
@@ -0,0 +1,64 @@
+.\" $OpenBSD: pthread_attr_setstackaddr.3,v 1.1 2000/01/06 06:15:29 d Exp $
+.\" Manual page derived from TOG's UNIX98 documentation.
+.Dd January 6, 2000
+.Dt PTHREAD_ATTR_SETSTACKADDR 3
+.Os
+.Sh NAME
+.Nm pthread_attr_setstackaddr ,
+.Nm pthread_attr_getstackaddr
+.Nd set and get stackaddr attribute
+.Sh SYNOPSIS
+.Fd #include <pthread.h>
+.Ft int
+.Fn pthread_attr_setstackaddr "pthread_attr_t *attr" "void *stackaddr"
+.Ft int
+.Fn pthread_attr_getstackaddr "pthread_attr_t *attr" "void **stackaddr"
+.Sh DESCRIPTION
+The functions
+.Fn pthread_attr_setstackaddr
+and
+.Fn pthread_attr_getstackaddr ,
+respectively, set and get the thread
+creation
+.Va stackaddr
+attribute in the
+.Fa attr
+object.
+.Pp
+The
+.Va stackaddr
+attribute specifies the location of storage to be
+used for the created thread's stack. The size of the storage is at
+least
+.Dv PTHREAD_STACK_MIN.
+.Sh RETURN VALUE
+Upon successful completion,
+.Fn pthread_attr_setstackaddr
+and
+.Fn pthread_attr_getstackaddr
+return a value of 0. Otherwise, an error
+number is returned to indicate the error.
+.Pp
+The
+.Fn pthread_attr_getstackaddr
+function stores the
+.Va stackaddr
+attribute value in
+.Fa stackaddr
+if successful.
+.Sh ERRORS
+No errors are defined.
+.Pp
+These functions will not return an error code of
+.Bq Er EINTR .
+.Sh SEE ALSO
+.Xr pthread_attr_init 3 ,
+.Xr pthread_attr_setdetachstate 3 ,
+.Xr pthread_attr_setstacksize 3 ,
+.Xr pthread_create 3 ,
+.Xr pthreads 3
+.Sh STANDARDS
+.Fn pthread_create
+conforms to ISO/IEC 9945-1 ANSI/IEEE
+.Pq Dq Tn POSIX
+Std 1003.1 Second Edition 1996-07-12.