Back to index

glibc  2.9
Defines | Functions
pthread_attr_setstacksize.c File Reference
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include "pthreadP.h"
#include <shlib-compat.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define NEW_VERNUM   GLIBC_2_3_3


int __pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize)
 versioned_symbol (libpthread, __pthread_attr_setstacksize, pthread_attr_setstacksize, NEW_VERNUM)

Define Documentation

#define NEW_VERNUM   GLIBC_2_3_3

Definition at line 26 of file pthread_attr_setstacksize.c.

Function Documentation

Definition at line 31 of file pthread_attr_setstacksize.c.

  struct pthread_attr *iattr;

  assert (sizeof (*attr) >= sizeof (struct pthread_attr));
  iattr = (struct pthread_attr *) attr;

  /* Catch invalid sizes.  */
  if (stacksize < PTHREAD_STACK_MIN)
    return EINVAL;

  iattr->stacksize = stacksize;

  return 0;

Here is the caller graph for this function: