[uClibc-cvs] uClibc/ldso/include ld_syscall.h,1.1,1.2

Erik Andersen andersen at uclibc.org
Sat Feb 7 10:40:17 UTC 2004


Update of /var/cvs/uClibc/ldso/include
In directory nail:/tmp/cvs-serv6635/include

Modified Files:
	ld_syscall.h 
Log Message:
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.



Index: ld_syscall.h
===================================================================
RCS file: /var/cvs/uClibc/ldso/include/ld_syscall.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ld_syscall.h	19 Aug 2003 06:05:30 -0000	1.1
+++ ld_syscall.h	7 Feb 2004 10:40:15 -0000	1.2
@@ -131,25 +131,6 @@
 #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);
 




More information about the uClibc-cvs mailing list