diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-06-27 19:54:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-06-27 19:54:48 +0000 |
commit | 20ade83c2dde545ee1cb1687a2a593a227994726 (patch) | |
tree | c4e1454bdcb1d5d5d8433eef05f031766df917c1 /ldso/ldso/syscall.h | |
parent | 389c0e545e26507afd1a394904574ddd8b35cb79 (diff) |
Cleanup to not use kernel headers at all.
-Erik
Diffstat (limited to 'ldso/ldso/syscall.h')
-rw-r--r-- | ldso/ldso/syscall.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/ldso/ldso/syscall.h b/ldso/ldso/syscall.h index 28c002cbf..013cc6fb7 100644 --- a/ldso/ldso/syscall.h +++ b/ldso/ldso/syscall.h @@ -1,4 +1,3 @@ -#include <sys/types.h> #include "syscalls.h" @@ -70,21 +69,16 @@ 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... */ -#define __NR__dl_stat __NR_stat -#define stat kernel_stat -#define new_stat kernel_stat -#include <asm/stat.h> -#undef new_stat -#undef stat -#define S_ISUID 04000 /* Set user ID on execution. */ -static inline _syscall2(int, _dl_stat, const char *, file_name, struct kernel_stat *, buf); +#include <sys/stat.h> +#define __NR__dl_stat __NR_stat +static inline _syscall2(int, _dl_stat, const char *, file_name, struct stat *, buf); #define __NR__dl_munmap __NR_munmap static inline _syscall2(int, _dl_munmap, void *, start, unsigned long, length); #define __NR__dl_getuid __NR_getuid -static inline _syscall0(gid_t, _dl_getuid); +static inline _syscall0(uid_t, _dl_getuid); #define __NR__dl_geteuid __NR_geteuid static inline _syscall0(uid_t, _dl_geteuid); |