From a4abf7a49b68df18db471e0af03903e8e3bb916f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 15 Oct 2012 09:31:07 -0700 Subject: 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. --- doc/posix-headers/fcntl.texi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc') 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. -- cgit v1.2.1