summaryrefslogtreecommitdiff
path: root/ldso/ldso/ld_syscall.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-11 19:57:41 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-11 19:57:41 +0000
commited865232d8289ade7587a74d9cf2c0ccb878887b (patch)
tree8e3e317beba7e54259b98be6628bc90dc8e8e6aa /ldso/ldso/ld_syscall.h
parentf1429771e1b4d6a42fd06a315e1509d4a2e94e33 (diff)
Rework naming for shared lib loader to avoid potential
nameing conflicts with std header files. -Erik
Diffstat (limited to 'ldso/ldso/ld_syscall.h')
-rw-r--r--ldso/ldso/ld_syscall.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/ldso/ldso/ld_syscall.h b/ldso/ldso/ld_syscall.h
index 322c618f6..2542bc3e5 100644
--- a/ldso/ldso/ld_syscall.h
+++ b/ldso/ldso/ld_syscall.h
@@ -1,4 +1,13 @@
-#include "syscalls.h"
+/* Pull in the arch specific type information */
+#include <sys/types.h>
+/* Pull in the arch specific syscall implementation */
+#include "ld_syscalls.h"
+/* For MAP_ANONYMOUS -- differs between platforms */
+#include <sys/mman.h>
+/* Pull in whatever this particular arch's kernel thinks the kernel version of
+ * struct stat should look like. It turns out that each arch has a different
+ * opinion on the subject, and different kernel revs use different names... */
+#include <sys/stat.h>
/* Here are the definitions for some syscalls that are used
@@ -46,7 +55,6 @@ static inline void * _dl_mmap(void * addr, unsigned long size, int prot,
#endif
#define _dl_mmap_check_error(__res) \
(((int)__res) < 0 && ((int)__res) >= -_dl_MAX_ERRNO)
-#include <sys/mman.h> // For MAP_ANONYMOUS -- differs between platforms
#ifndef MAP_ANONYMOUS
#ifdef __sparc__
#define MAP_ANONYMOUS 0x20
@@ -74,10 +82,6 @@ static inline _syscall3(int, _dl_mprotect, const void *, addr, unsigned long, le
-/* Pull in whatever this particular arch's kernel thinks the kernel version of
- * struct stat should look like. It turns out that each arch has a different
- * opinion on the subject, and different kernel revs use different names... */
-#include <sys/stat.h>
#define __NR__dl_stat __NR_stat
static inline _syscall2(int, _dl_stat, const char *, file_name, struct stat *, buf);