summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-02-16 21:38:02 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-02-16 21:40:49 -0800
commit5e2516d4aa2fabdd800eec7e4862327b3d5c87f2 (patch)
tree019d3c1894dfb65631e6e140f7130964a604facc /doc
parent7bf9a5ee1c0c16215e6ef06858f5870e86c6d7df (diff)
downloadgnulib-5e2516d4aa2fabdd800eec7e4862327b3d5c87f2.tar.gz
getdtablesize, dup2, fcntl: port to Android
Problem reported by Kevin Cernekee in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention that getdtablesize doesn't work on Android. * lib/getdtablesize.c: Use getrlimit substitute only if getdtablesize is declared. This should suffice for Cygwin while not breaking Android. * m4/dup2.m4 (gl_FUNC_DUP2): * m4/fcntl.m4 (gl_FUNC_FCNTL): Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is standardized but the latter is not, and sysconf works on Android. * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Also check that getdtablesize is declared. This removes the need for a special case for Android.
Diffstat (limited to 'doc')
-rw-r--r--doc/glibc-functions/getdtablesize.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/glibc-functions/getdtablesize.texi b/doc/glibc-functions/getdtablesize.texi
index c28a546537..4c2cc856d9 100644
--- a/doc/glibc-functions/getdtablesize.texi
+++ b/doc/glibc-functions/getdtablesize.texi
@@ -8,7 +8,11 @@ Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
-mingw, MSVC 9.
+Android LP64, mingw, MSVC 9.
+
+@item
+This function is not declared on some platforms:
+Android LP32.
@item
This function does not represent the true @code{RLIMIT_NOFILE} soft