[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] dup2, fcntl, fcntl-h: port to AIX 7.1
From: |
Jim Meyering |
Subject: |
Re: [PATCH] dup2, fcntl, fcntl-h: port to AIX 7.1 |
Date: |
Sat, 31 May 2014 14:29:17 -0700 |
On Sat, May 31, 2014 at 2:07 PM, Paul Eggert <address@hidden> wrote:
> This fixes some porting problems discovered when testing the latest
> grep snapshot on AIX 7.1. I don't think if fixes any bugs
> in grep but it could be important for other applications.
> * doc/posix-functions/dup2.texi:
> * doc/posix-functions/fcntl.texi:
> * doc/posix-headers/fcntl.texi:
> Document AIX bugs.
> * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
> Define to 0 if outside 'int' range.
> * m4/dup2.m4 (gl_FUNC_DUP2):
> * m4/fcntl.m4 (gl_FUNC_FCNTL):
> Check for getdtablesize. If it's available, test a value just
> outside its range instead of testing 1000000. When cross-compiling,
> guess that AIX will fail this improved test.
> ---
> ChangeLog | 18 ++++++++++++++++++
> doc/posix-functions/dup2.texi | 4 ++--
> doc/posix-functions/fcntl.texi | 4 ++--
> doc/posix-headers/fcntl.texi | 5 +++++
> lib/fcntl.in.h | 16 ++++++++++++++++
> m4/dup2.m4 | 12 ++++++++++--
> m4/fcntl.m4 | 12 +++++++++++-
> 7 files changed, 64 insertions(+), 7 deletions(-)
Nice work. All looks good to me.