]> Savannah Git Hosting - gnulib.git/commit
dup2, fcntl, fcntl-h: port to AIX 7.1
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 31 May 2014 21:07:57 +0000 (14:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 31 May 2014 21:09:02 +0000 (14:09 -0700)
commit93ce02b4fa01a3c1c194d91f8fd09e1efe04537c
treea29793e5f68d56ac63bb87c4110707afe85bc080
parentb1b4baa3169c0408aa92c0367a80ca9acf1af4a1
dup2, fcntl, fcntl-h: port to AIX 7.1

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
doc/posix-functions/dup2.texi
doc/posix-functions/fcntl.texi
doc/posix-headers/fcntl.texi
lib/fcntl.in.h
m4/dup2.m4
m4/fcntl.m4