aboutsummaryrefslogtreecommitdiff
path: root/include/errno.h
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-06-08 15:39:03 -0400
committerZack Weinberg <zackw@panix.com>2017-06-08 15:39:03 -0400
commit5046dbb4a7eba5eccfd258f92f4735c9ffc8d069 (patch)
tree4470480d904b65cf14ca524f96f79eca818c3eaf /include/errno.h
parent199fc19d3aaaf57944ef036e15904febe877fc93 (diff)
downloadglibc-zack/build-layout-experiment.tar
glibc-zack/build-layout-experiment.tar.gz
glibc-zack/build-layout-experiment.tar.bz2
glibc-zack/build-layout-experiment.zip
Prepare for radical source tree reorganization.zack/build-layout-experiment
All top-level files and directories are moved into a temporary storage directory, REORG.TODO, except for files that will certainly still exist in their current form at top level when we're done (COPYING, COPYING.LIB, LICENSES, NEWS, README), all old ChangeLog files (which are moved to the new directory OldChangeLogs, instead), and the generated file INSTALL (which is just deleted; in the new order, there will be no generated files checked into version control).
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/include/errno.h b/include/errno.h
deleted file mode 100644
index 73fc32e5e0..0000000000
--- a/include/errno.h
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef _ERRNO_H
-
-#include <stdlib/errno.h>
-
-#if defined _ERRNO_H && !defined _ISOMAC
-
-# if IS_IN (rtld)
-# include <dl-sysdep.h>
-# ifndef RTLD_PRIVATE_ERRNO
-# error "dl-sysdep.h must define RTLD_PRIVATE_ERRNO!"
-# endif
-# else
-# define RTLD_PRIVATE_ERRNO 0
-# endif
-
-# if RTLD_PRIVATE_ERRNO
-/* The dynamic linker uses its own private errno variable.
- All access to errno inside the dynamic linker is serialized,
- so a single (hidden) global variable is all it needs. */
-
-# undef errno
-# define errno rtld_errno
-extern int rtld_errno attribute_hidden;
-
-# elif IS_IN_LIB
-
-# include <tls.h>
-
-# undef errno
-# if IS_IN (libc)
-# define errno __libc_errno
-# else
-# define errno errno /* For #ifndef errno tests. */
-# endif
-extern __thread int errno attribute_tls_model_ie;
-
-# endif /* IS_IN_LIB */
-
-# define __set_errno(val) (errno = (val))
-
-# ifndef __ASSEMBLER__
-extern int *__errno_location (void) __THROW __attribute__ ((__const__))
-# if RTLD_PRIVATE_ERRNO
- attribute_hidden
-# endif
-;
-libc_hidden_proto (__errno_location)
-# endif
-
-#endif /* _ERRNO_H */
-
-#endif /* ! _ERRNO_H */