summaryrefslogtreecommitdiff
path: root/ldso/include/dl-syscall.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-02-07 10:40:25 +0000
committerEric Andersen <andersen@codepoet.org>2004-02-07 10:40:25 +0000
commit3e02283942073ac7f43e63aae91b461bc825502e (patch)
treec7782cc93d9823e9136b6981c6feb961270122f8 /ldso/include/dl-syscall.h
parent2e723e150ab9b11e658311d6dfe2a1c1e402b833 (diff)
Split off the stuff that cannot use function into its own file,
to make it easier to treat it specially while not bothering the rest of the code with the same constraints.
Diffstat (limited to 'ldso/include/dl-syscall.h')
-rw-r--r--ldso/include/dl-syscall.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h
index 72574b9a9..1e2ceccd6 100644
--- a/ldso/include/dl-syscall.h
+++ b/ldso/include/dl-syscall.h
@@ -131,25 +131,6 @@ static inline _syscall0(gid_t, _dl_getegid);
#define __NR__dl_getpid __NR_getpid
static inline _syscall0(gid_t, _dl_getpid);
-/*
- * Not an actual syscall, but we need something in assembly to say whether
- * this is OK or not.
- */
-static inline int _dl_suid_ok(void)
-{
- uid_t uid, euid, gid, egid;
-
- uid = _dl_getuid();
- euid = _dl_geteuid();
- gid = _dl_getgid();
- egid = _dl_getegid();
-
- if(uid == euid && gid == egid)
- return 1;
- else
- return 0;
-}
-
#define __NR__dl_readlink __NR_readlink
static inline _syscall3(int, _dl_readlink, const char *, path, char *, buf, size_t, bufsiz);