summaryrefslogtreecommitdiff
path: root/ldso/include/dl-syscall.h
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-09-17 17:06:59 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-09-17 17:06:59 +0000
commit24acea547572659fd2041803882411b68ff0d6eb (patch)
treed6ddc788cb4c0ec0fe5ab4aff75fb0785211dcb5 /ldso/include/dl-syscall.h
parent89856a5b7e6894c36df6601365d429975df0d18a (diff)
Fix bug 430 and reduce ldso size with 1KB :). Not sure if I need to use fstat64, but I am sure someone will
tell me.
Diffstat (limited to 'ldso/include/dl-syscall.h')
-rw-r--r--ldso/include/dl-syscall.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h
index 3f20229cd..a1a2859c4 100644
--- a/ldso/include/dl-syscall.h
+++ b/ldso/include/dl-syscall.h
@@ -11,7 +11,9 @@
#define kernel_stat stat
#include <bits/kernel_stat.h>
#include <bits/kernel_types.h>
-
+#define _SYSCALL_H
+#include <bits/sysnum.h>
+#undef _SYSCALL_H
/* _dl_open() parameters */
#define O_RDONLY 0x0000
@@ -82,6 +84,9 @@ static inline _syscall3(int, _dl_mprotect, const void *, addr, unsigned long, le
#define __NR__dl_stat __NR_stat
static inline _syscall2(int, _dl_stat, const char *, file_name, struct stat *, buf);
+#define __NR__dl_fstat __NR_fstat
+static inline _syscall2(int, _dl_fstat, int, fd, struct stat *, buf);
+
#define __NR__dl_munmap __NR_munmap
static inline _syscall2(int, _dl_munmap, void *, start, unsigned long, length);