[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to And
From: |
Kevin Cernekee |
Subject: |
Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android |
Date: |
Thu, 19 Feb 2015 10:18:13 -0800 |
On Wed, Feb 18, 2015 at 11:30 PM, Paul Eggert <address@hidden> wrote:
> 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 on Android when cross-compiling? Does the
> attached patch (which I installed) fix things for you?
dup2 is guessed correctly:
checking whether dup2 works... guessing yes
F_DUPFD is not, due to a minor C&P error (patch attached):
checking whether fcntl handles F_DUPFD correctly...
checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check
However, I don't see how any of the m4 changes address the problem
that is causing the test cases to fail: lib/getdtablesize.c still
wants to rely on sysconf(_SC_OPEN_MAX) on Android, and that call just
blindly returns 256 on all released versions of the OS. This is why
my earlier submission changed it to use getrlimit() instead.
0001-fcntl-Fix-cross-compiling.patch
Description: Text Data
- [PATCH 0/3] More Android updates for gnulib, Kevin Cernekee, 2015/02/15
- [PATCH 1/3] More changelog fixes, Kevin Cernekee, 2015/02/15
- [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Kevin Cernekee, 2015/02/15
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Paul Eggert, 2015/02/17
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Kevin Cernekee, 2015/02/17
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, enh, 2015/02/17
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Paul Eggert, 2015/02/17
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Kevin Cernekee, 2015/02/18
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Paul Eggert, 2015/02/19
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android,
Kevin Cernekee <=
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Paul Eggert, 2015/02/20
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Kevin Cernekee, 2015/02/22
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Paul Eggert, 2015/02/22
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Kevin Cernekee, 2015/02/23
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, Paul Eggert, 2015/02/23
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, enh, 2015/02/24
- Re: [PATCH 2/3] getdtablesize: Extend RLIMIT_NOFILE fallback case to Android, enh, 2015/02/23
[PATCH 3/3] localename: Implement gl_locale_name_thread_unsafe() for Android, Kevin Cernekee, 2015/02/15