]> Savannah Git Hosting - gnulib.git/commit
getdtablesize, dup2, fcntl: port to Android
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Feb 2015 05:38:02 +0000 (21:38 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Feb 2015 05:40:49 +0000 (21:40 -0800)
commit5e2516d4aa2fabdd800eec7e4862327b3d5c87f2
tree019d3c1894dfb65631e6e140f7130964a604facc
parent7bf9a5ee1c0c16215e6ef06858f5870e86c6d7df
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.
ChangeLog
doc/glibc-functions/getdtablesize.texi
lib/getdtablesize.c
m4/dup2.m4
m4/fcntl.m4
m4/getdtablesize.m4