summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2003-02-13 18:39:06 +0000
committerphantom <phantom@FreeBSD.org>2003-02-13 18:39:06 +0000
commitbd72cf9687deb05d7da0fc117b07fca6dbed3c04 (patch)
tree62fd8967d646e0e976dc13339e80b91043a26c10 /lib/libc_r
parent46b03b876816c02e102ca1c43433ff9f378d360f (diff)
downloadFreeBSD-src-bd72cf9687deb05d7da0fc117b07fca6dbed3c04.zip
FreeBSD-src-bd72cf9687deb05d7da0fc117b07fca6dbed3c04.tar.gz
Break important implementation detail note into IMPLEMENTATION DETAILS
section. Add cross reference to pthread_attr_getstack() function. MFC after: 1 day
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/man/pthread_attr_get_np.310
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc_r/man/pthread_attr_get_np.3 b/lib/libc_r/man/pthread_attr_get_np.3
index 78c8fdf..b14dd23 100644
--- a/lib/libc_r/man/pthread_attr_get_np.3
+++ b/lib/libc_r/man/pthread_attr_get_np.3
@@ -46,9 +46,6 @@ structure are exact values of attributes provided at thread creation
time (as parameter to
.Fn pthread_create
function), except stack address.
-.Fn pthread_attr_get_np
-will always return pointer to thread's real stack address regardless
-to its value in original attributes structure.
.Pp
Value returned as
.Fa dst
@@ -60,9 +57,15 @@ structure.
Parameter
.Fa dst
should point to allocated memory area big enough to fit this structure.
+.Pp
It is HIGHLY RECOMMENDED to use
.Xr pthread_attr_init 3
function to allocate attribute storage.
+.Sh IMPLEMENTATION DETAILS
+The
+.Fn pthread_attr_get_np
+function will always return pointer to thread's real stack address
+regardless to its value in original attributes structure.
.Sh EXAMPLES
.Bd -literal
size_t
@@ -100,6 +103,7 @@ thread ID.
.Xr pthread_attr_getschedparam 3 ,
.Xr pthread_attr_getschedpolicy 3 ,
.Xr pthread_attr_getscope 3 ,
+.Xr pthread_attr_getstack 3 ,
.Xr pthread_attr_getstackaddr 3 ,
.Xr pthread_attr_getstacksize 3 ,
.Xr pthread_attr_init 3
OpenPOWER on IntegriCloud