summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3')
-rw-r--r--upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.313
1 files changed, 6 insertions, 7 deletions
diff --git a/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3
index a88961af..c185c961 100644
--- a/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3
+++ b/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3
@@ -3,7 +3,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH pthread_getattr_default_np 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH pthread_getattr_default_np 3 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
pthread_getattr_default_np, pthread_setattr_default_np, \-
get or set default thread-creation attributes
@@ -14,7 +14,7 @@ POSIX threads library
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <pthread.h>
-.PP
+.P
.BI "int pthread_getattr_default_np(pthread_attr_t *" attr );
.BI "int pthread_setattr_default_np(const pthread_attr_t *" attr );
.fi
@@ -39,7 +39,7 @@ attribute must not be set in the object.
Setting the
.I stack size
attribute to zero means leave the default stack size unchanged.
-.PP
+.P
The
.BR pthread_getattr_default_np ()
function initializes the thread attributes object referred to by
@@ -73,7 +73,6 @@ T{
.BR pthread_setattr_default_np ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH STANDARDS
GNU;
hence the suffix "_np" (nonportable) in their names.
@@ -85,7 +84,7 @@ The program below uses
to fetch the default thread-creation attributes and then displays
various settings from the returned thread attributes object.
When running the program, we see the following output:
-.PP
+.P
.in +4n
.EX
$ \fB./a.out\fP
@@ -122,12 +121,12 @@ display_pthread_attr(pthread_attr_t *attr)
s = pthread_attr_getstacksize(attr, &stacksize);
if (s != 0)
errc(EXIT_FAILURE, s, "pthread_attr_getstacksize");
- printf("Stack size: %zd\en", stacksize);
+ printf("Stack size: %zu\en", stacksize);
\&
s = pthread_attr_getguardsize(attr, &guardsize);
if (s != 0)
errc(EXIT_FAILURE, s, "pthread_attr_getguardsize");
- printf("Guard size: %zd\en", guardsize);
+ printf("Guard size: %zu\en", guardsize);
\&
s = pthread_attr_getschedpolicy(attr, &policy);
if (s != 0)