OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
LT.old: Make __errno_location/__h_errno_location thread safe
[uclinux-h8/uClibc.git]
/
libc
/
misc
/
internals
/
__h_errno_location.c
1
/*
2
* Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
3
*
4
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5
*/
6
7
#include <features.h>
8
#include <netdb.h>
9
10
#ifndef __UCLIBC_HAS_TLS__
11
# undef h_errno
12
extern int h_errno;
13
#endif
14
15
int *__h_errno_location(void)
16
{
17
return &h_errno;
18
}