Back to index

glibc  2.9
Functions | Variables
pthread_attr_init.c File Reference
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include "pthreadP.h"
#include <shlib-compat.h>

Go to the source code of this file.


int __pthread_attr_init_2_1 (pthread_attr_t *attr)
 versioned_symbol (libpthread, __pthread_attr_init_2_1, pthread_attr_init, GLIBC_2_1)


struct pthread_attr__attr_list
int __attr_list_lock = LLL_LOCK_INITIALIZER

Function Documentation

Definition at line 34 of file pthread_attr_init.c.

  struct pthread_attr *iattr;

  /* Many elements are initialized to zero so let us do it all at
     once.  This also takes care of clearing the bytes which are not
     internally used.  */
  memset (attr, '\0', __SIZEOF_PTHREAD_ATTR_T);

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

  /* Default guard size specified by the standard.  */
  iattr->guardsize = __getpagesize ();

  return 0;

Here is the call graph for this function:

versioned_symbol ( libpthread  ,
__pthread_attr_init_2_1  ,
pthread_attr_init  ,

Variable Documentation

Definition at line 29 of file pthread_attr_init.c.

Definition at line 30 of file pthread_attr_init.c.