fcntl-h: support GNU flags like O_IGNORE_CTTY
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Oct 2012 16:31:07 +0000 (09:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Oct 2012 16:31:52 +0000 (09:31 -0700)
commita4abf7a49b68df18db471e0af03903e8e3bb916f
tree5653239c6f2c4bd50a2c978da95b1d8d4cb39527
parent290d23ac868ab45c255654966b2d8fde99e3fa80
fcntl-h: support GNU flags like O_IGNORE_CTTY

* doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
systems.  Discovered when using fcntl-h with GNU Emacs, which uses
O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
* lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
Define to 0 if not already defined.
* tests/test-fcntl-h.c: Test these new flags.
ChangeLog
doc/posix-headers/fcntl.texi
lib/fcntl.in.h
tests/test-fcntl-h.c