pthread_attr_setstacksize man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

pthread_attr_setstacksize(3thr)		       pthread_attr_setstacksize(3thr)

Name
       pthread_attr_setstacksize  -  Changes the stacksize attribute of thread
       creation.

Syntax
       #include <pthread.h>

       int pthread_attr_setstacksize (attr, stacksize)
       pthread_attr_t *attr;
       int stacksize;

Arguments
       attr    Thread attributes object modified.

       stacksize
	       New value for the stacksize attribute. The  stacksize  argument
	       specifies  the  minimum	size  (in bytes) of stack needed for a
	       thread.

Description
       This routine sets the minimum size (in bytes) of the stack needed for a
       thread  created using the attributes object specified by the attr argu‐
       ment. Use this routine to adjust the size of the writeable area of  the
       stack.

       A  thread's  stack  is  fixed at the time of thread creation.  Only the
       main or initial thread can dynamically extend its stack.

       Most compilers do not check  for	 stack	overflow.   Ensure  that  your
       thread  stack  is  large	 enough	 for  anything	that you call from the
       thread.

Return Values
       If an error condition occurs, this routine returns -1 and sets errno to
       the corresponding error value.  Possible return values are as follows.

       Return	Error	   Description
       0		   Successful  comple‐
			   tion.

       -1	[EINVAL]   The value specified
			   by attr is invalid.

					       pthread_attr_setstacksize(3thr)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net