summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-01-05 01:31:22 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-01-05 01:31:22 +0000
commit4c607eb71e5bcd3997ea72333c2fe89fc4181b3e (patch)
tree0545e22c5fef9674d15013378bf21eada4017ef2 /libc/sysdeps/linux/common
parent43918e1e747e7d52c2d86565721dd66efc5167e5 (diff)
downloaduClibc-alpine-4c607eb71e5bcd3997ea72333c2fe89fc4181b3e.tar.bz2
uClibc-alpine-4c607eb71e5bcd3997ea72333c2fe89fc4181b3e.tar.xz
And finally, make 'errno' and TLS variable. The TLS conversion of errno, h_errno and __resp was a real challenge. I am glad that is over with.
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/bits/errno.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/libc/sysdeps/linux/common/bits/errno.h b/libc/sysdeps/linux/common/bits/errno.h
index bf73a8fe1..03d4729f6 100644
--- a/libc/sysdeps/linux/common/bits/errno.h
+++ b/libc/sysdeps/linux/common/bits/errno.h
@@ -31,20 +31,10 @@
# ifndef __ASSEMBLER__
-/* We now need a declaration of the `errno' variable. */
-extern int errno;
-
/* Function to get address of global `errno' variable. */
extern int *__errno_location (void) __THROW __attribute__ ((__const__));
-# if defined _LIBC
-/* We wouldn't need a special macro anymore but it is history. */
-# ifndef __set_errno
-# define __set_errno(val) ((errno) = (val))
-# endif
-# endif /* _LIBC */
-
-# if defined __UCLIBC_HAS_THREADS__
+# if !defined _LIBC || defined __UCLIBC_HAS_THREADS__
/* When using threads, errno is a per-thread value. */
# define errno (*__errno_location ())
# endif