blob: c50f6c63fc867939b736436a95be6ace785aa363 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <errno.h>
#include "pthread_impl.h"
int __set_thread_area(void * p)
{
struct pthread ** ptlca;
ptlca = __psx_tlca();
if (!ptlca) return -ESRCH;
*ptlca = p;
return 0;
}
|