|
From: <sv...@va...> - 2007-10-23 08:03:59
|
Author: tom
Date: 2007-10-23 09:03:59 +0100 (Tue, 23 Oct 2007)
New Revision: 7028
Log:
Use geteuid32/getegid32 on those platforms which have them.
Fixes bug #151209.
Modified:
trunk/coregrind/m_libcproc.c
Modified: trunk/coregrind/m_libcproc.c
===================================================================
--- trunk/coregrind/m_libcproc.c 2007-10-23 00:36:49 UTC (rev 7027)
+++ trunk/coregrind/m_libcproc.c 2007-10-23 08:03:59 UTC (rev 7028)
@@ -428,6 +428,8 @@
/* ASSUMES SYSCALL ALWAYS SUCCEEDS */
# if defined(VGP_ppc32_aix5) || defined(VGP_ppc64_aix5)
return VG_(do_syscall1)(__NR_AIX5_getuidx, 1) . res;
+# elif defined(__NR_geteuid32)
+ return VG_(do_syscall0)(__NR_geteuid32) . res;
# else
return VG_(do_syscall0)(__NR_geteuid) . res;
# endif
@@ -438,6 +440,8 @@
/* ASSUMES SYSCALL ALWAYS SUCCEEDS */
# if defined(VGP_ppc32_aix5) || defined(VGP_ppc64_aix5)
return VG_(do_syscall1)(__NR_AIX5_getgidx, 1) . res;
+# elif defined(__NR_getegid32)
+ return VG_(do_syscall0)(__NR_getegid32) . res;
# else
return VG_(do_syscall0)(__NR_getegid) . res;
# endif
|