X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=original%2Fman3%2Fpthread_getattr_np.3;h=9b1c7f5ccc713261b477cc3879f3fe930f4fe407;hb=361fd72f831aabd8a0aa6fe7bc4ef66ef4f89a1b;hp=f89172ae8b8ffd44153140d5e867032e821238c6;hpb=633a2252e0be3c867dce264a180a89ce8181d36f;p=linuxjm%2FLDP_man-pages.git diff --git a/original/man3/pthread_getattr_np.3 b/original/man3/pthread_getattr_np.3 index f89172ae..9b1c7f5c 100644 --- a/original/man3/pthread_getattr_np.3 +++ b/original/man3/pthread_getattr_np.3 @@ -1,6 +1,7 @@ .\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk .\" .\" +.\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. @@ -20,18 +21,20 @@ .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. +.\" %%%LICENSE_END .\" -.TH PTHREAD_GETATTR_NP 3 2008-11-11 "Linux" "Linux Programmer's Manual" +.TH PTHREAD_GETATTR_NP 3 2010-09-10 "Linux" "Linux Programmer's Manual" .SH NAME pthread_getattr_np \- get attributes of created thread .SH SYNOPSIS .nf -.B #define _GNU_SOURCE +.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .BI "int pthread_getattr_np(pthread_t " thread ", pthread_attr_t *" attr ); .sp Compile and link with \fI\-pthread\fP. +.fi .SH DESCRIPTION The .BR pthread_getattr_np () @@ -54,7 +57,7 @@ the stack size, which the implementation may align to a suitable boundary. .IP * and the guard size, -which the implementation may round upwards to a multiple of the page size, +which the implementation may round upward to a multiple of the page size, or ignore (i.e., treat as 0), if the application is allocating its own stack. .PP @@ -93,7 +96,7 @@ resource limit is not supported. .SH VERSIONS This function is available in glibc since version 2.2.3. .SH CONFORMING TO -This function is a nonstandard GNU extension. +This function is a nonstandard GNU extension; hence the suffix "_np" (nonportable) in the name. .SH EXAMPLE The program below demonstrates the use of @@ -240,8 +243,8 @@ usage(char *pname, char *msg) { if (msg != NULL) fputs(msg, stderr); - fprintf(stderr, "Usage: %s [\-s stack-size [-a]]" - " [\-g guard-size]\\n", pname); + fprintf(stderr, "Usage: %s [\-s stack\-size [\-a]]" + " [\-g guard\-size]\\n", pname); fprintf(stderr, "\\t\\t\-a means program should allocate stack\\n"); exit(EXIT_FAILURE); } @@ -269,7 +272,7 @@ get_thread_attributes_from_cl(int argc, char *argv[], } if (allocate_stack && stack_size == \-1) - usage(argv[0], "Specifying \-a without -s makes no sense\\n"); + usage(argv[0], "Specifying \-a without \-s makes no sense\\n"); if (argc > optind) usage(argv[0], "Extraneous command\-line arguments\\n"); @@ -340,6 +343,8 @@ main(int argc, char *argv[]) } .fi .SH SEE ALSO +.ad l +.nh .BR pthread_attr_getaffinity_np (3), .BR pthread_attr_getdetachstate (3), .BR pthread_attr_getguardsize (3), @@ -353,3 +358,11 @@ main(int argc, char *argv[]) .BR pthread_attr_init (3), .BR pthread_create (3), .BR pthreads (7) +.SH COLOPHON +This page is part of release 3.65 of the Linux +.I man-pages +project. +A description of the project, +and information about reporting bugs, +can be found at +\%http://www.kernel.org/doc/man\-pages/.