Bug 1372781 - Remove getdtablesize stub from android_stub.h. r?jchen
getdtablesize is unused in nss after landing
bug 1346735 and
bug 1370138. So it is unnecessary to define this in android_stub.h
MozReview-Commit-ID: CHB8xVjgmw3
--- a/security/manager/android_stub.h
+++ b/security/manager/android_stub.h
@@ -17,28 +17,15 @@
#include <linux/kernel.h>
#include <unistd.h>
#ifndef ANDROID_VERSION
#include <android/api-level.h>
#define ANDROID_VERSION __ANDROID_API__
#endif
-/* Use this stub version of getdtablesize
- * instead of the one in the header */
-__attribute__((unused))
-static int getdtablesize_stub(void)
-{
- struct rlimit r;
- if (getrlimit(RLIMIT_NOFILE, &r) < 0) {
- return sysconf(_SC_OPEN_MAX);
- }
- return r.rlim_cur;
-}
-#define getdtablesize() getdtablesize_stub()
-
#if ANDROID_VERSION < 21
#define RTLD_NOLOAD 0
#endif
#define sysinfo(foo) -1
#endif /* ANDROID_STUB_H */