blob: fbcefa3bd686f82b18b6bc6a0bd9ea713a539081 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <pthread.h>
#include "thread_internal.h"
int pthread_attr_init(pthread_attr_t *attr)
{
__THREAD_INIT();
memset(attr,0,sizeof(pthread_attr_t));
attr->__stacksize=PTHREAD_STACK_SIZE;
return 0;
}
int pthread_attr_destroy(pthread_attr_t *attr) __attribute__((alias("pthread_attr_init")));
|