Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android

2015-02-18 Thread Paul Eggert
Kevin Cernekee wrote: The changes to the AC_RUN_IFELSE test programs do not have an effect on Android since we are cross-compiling: checking whether dup2 works... guessing no [...] checking whether fcntl handles F_DUPFD correctly... guessing no How about if we stop guessing no o

Re: [PATCH] Check malloc result in getopt_long

2015-02-18 Thread Pádraig Brady
On 18/02/15 03:50, Pádraig Brady wrote: > On 16/02/15 21:55, Tobias Stoeckmann wrote: >> On Mon, Feb 16, 2015 at 08:57:00PM +, Pádraig Brady wrote: >>> I'm not sure it's generally worth proceeding in OOM conditions >>> unless there are clear fall backs. It would be nice to depend on xalloc >>>

Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android

2015-02-18 Thread Kevin Cernekee
On Tue, Feb 17, 2015 at 6:37 PM, Paul Eggert wrote: > Kevin Cernekee wrote: > >> On Android, sysconf (_SC_OPEN_MAX) always returns the constant >> OPEN_MAX (256) > > > Ouch, that sounds like a POSIX conformance bug. I see enh posted an Android > patch but we should probably fix this in gnulib too