summaryrefslogblamecommitdiff
path: root/src/errno/__errno_location.c
blob: 7f9d6027a276a0b5574362f0e9aa547fed213523 (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
                         
 

                           
                                            
 

                                                
#include <errno.h>
#include "pthread_impl.h"

int *__errno_location(void)
{
	return &__pthread_self()->errno_val;
}

weak_alias(__errno_location, ___errno_location);