[Bug 13711] Android API 21+ missing definitions for wait3 and issetugid

bugzilla at busybox.net bugzilla at busybox.net
Wed Apr 14 16:49:21 UTC 2021


https://bugs.busybox.net/show_bug.cgi?id=13711

--- Comment #3 from Denys Vlasenko <vda.linux at googlemail.com> ---
+int issetugid(void)
+{
+       /* for Bionic, this is sufficient */
+       return 0;
+}

What is issetuid? busybox does not use issetuid(), it should not be needed.

 # if __ANDROID_API__ < 21
 #  undef HAVE_TTYNAME_R
 #  undef HAVE_GETLINE
 #  undef HAVE_STPCPY
+# else
+#  undef HAVE_WAIT3
 # endif

what does this say? "ANDROID_API before version 21 had wait3(), bit starting
from 21 it does not"? That's... surprising.

-# if __GNUC_PREREQ(3,0) && defined(i386)
+# if !defined(__ANDROID__) && __GNUC_PREREQ(3,0) && defined(i386)
 /* stdcall makes callee to pop arguments from stack, not caller */
 #  define FAST_FUNC __attribute__((regparm(3),stdcall))
 /* #elif ... - add your favorite arch today! */

What does __attribute__((regparm(3),stdcall)) break?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list