diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-10-15 09:31:07 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-10-15 09:31:52 -0700 |
commit | a4abf7a49b68df18db471e0af03903e8e3bb916f (patch) | |
tree | 5653239c6f2c4bd50a2c978da95b1d8d4cb39527 /doc | |
parent | 290d23ac868ab45c255654966b2d8fde99e3fa80 (diff) | |
download | gnulib-a4abf7a49b68df18db471e0af03903e8e3bb916f.tar.gz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-headers/fcntl.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/posix-headers/fcntl.texi b/doc/posix-headers/fcntl.texi index 10d5d8d757..eaa885da11 100644 --- a/doc/posix-headers/fcntl.texi +++ b/doc/posix-headers/fcntl.texi @@ -45,8 +45,9 @@ portability to native Windows platforms) are defined on some platforms but not on others. @item -@samp{O_DIRECT}, @samp{O_NDELAY}, @samp{O_NOATIME}, -and @samp{O_NOLINKS} (not specified by POSIX) are defined +@samp{O_DIRECT}, @samp{O_IGNORE_CTTY}, @samp{O_NDELAY}, +@samp{O_NOATIME}, @samp{O_NOLINK}, @samp{O_NOLINKS}, and +@samp{O_NOTRANS} (not specified by POSIX) are defined on some platforms but not on others. @item @@ -77,7 +78,7 @@ Portability problems not fixed by Gnulib: @itemize @item @samp{F_SETFD}, @samp{F_GETFL}, @samp{F_SETFL}, @samp{F_GETLK}, -@samp{F_SETLK}, @samp{F_SETLOKW}, @samp{F_GETOWN}, and @samp{F_SETOWN} +@samp{F_SETLK}, @samp{F_SETLKW}, @samp{F_GETOWN}, and @samp{F_SETOWN} are not defined on some platforms: mingw, MSVC 9. |