1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #include <assert.h>
- #include <errno.h>
- #include <string.h>
- #include <unistd.h>
- #include "pthreadP.h"
- struct pthread_attr *__attr_list;
- lll_lock_t __attr_list_lock = LLL_LOCK_INITIALIZER;
- int
- __pthread_attr_init_2_1 (attr)
- pthread_attr_t *attr;
- {
- struct pthread_attr *iattr;
-
- memset (attr, '\0', __SIZEOF_PTHREAD_ATTR_T);
- assert (sizeof (*attr) >= sizeof (struct pthread_attr));
- iattr = (struct pthread_attr *) attr;
-
- iattr->guardsize = getpagesize ();
- return 0;
- }
- weak_alias(__pthread_attr_init_2_1, pthread_attr_init)
|