]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use geteuid32/getegid32 on those platforms which have them.
authorTom Hughes <tom@compton.nu>
Tue, 23 Oct 2007 08:03:59 +0000 (08:03 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 23 Oct 2007 08:03:59 +0000 (08:03 +0000)
Fixes bug #151209.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7028

coregrind/m_libcproc.c

index 3b9cf93068c9613b9680d89c281364d7fa849083..cdf7d6f478b0d867044e805e2591f750e31d4301 100644 (file)
@@ -428,6 +428,8 @@ Int VG_(geteuid) ( void )
    /* 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 @@ Int VG_(getegid) ( void )
    /* 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