Back to index

glibc  2.9
Functions
pthread_attr_setstackaddr.c File Reference
#include <assert.h>
#include <errno.h>
#include "pthreadP.h"

Go to the source code of this file.

Functions

int __pthread_attr_setstackaddr (pthread_attr_t *attr, void *stackaddr)

Function Documentation

int __pthread_attr_setstackaddr ( pthread_attr_t attr,
void *  stackaddr 
)

Definition at line 26 of file pthread_attr_setstackaddr.c.

{
  struct pthread_attr *iattr;

#ifdef EXTRA_PARAM_CHECKS
  EXTRA_PARAM_CHECKS;
#endif

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

  iattr->stackaddr = stackaddr;
  iattr->flags |= ATTR_FLAG_STACKADDR;

  return 0;
}