Mail Archives: djgpp-workers/2009/09/14/19:21:12
I have added _O_TEMPORARY to fcntl.h. This shall ease porting efforts
in case that _O_TEMPORARY is used instead of O_TEMPORARY
Regards,
Juan M. Guerrero
2009-06-18 Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
* include/fcntl.h: Macro _O_TEMPORARY as alias for O_TEMPORARY added
for compatibility with other C compilers.
* src/docs/kb/wc204.txi: Info about _O_TEMPORARY added.
diff -aprNU5 djgpp.orig/include/fcntl.h djgpp/include/fcntl.h
--- djgpp.orig/include/fcntl.h 2003-02-04 20:23:18 +0000
+++ djgpp/include/fcntl.h 2009-06-18 15:58:40 +0000
@@ -1,5 +1,6 @@
+/* Copyright (C) 2009 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 2001 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#ifndef __dj_include_fcntl_h_
@@ -115,10 +116,11 @@ extern int __djgpp_share_flags;
#define _O_TRUNC O_TRUNC
#define _O_EXCL O_EXCL
#define _O_TEXT O_TEXT
#define _O_BINARY O_BINARY
#define _O_NOINHERIT O_NOINHERIT
+#define _O_TEMPORARY O_TEMPORARY
/*
* Support for advanced filesystems (Windows 9x VFAT, NTFS, LFN etc.)
*/
diff -aprNU5 djgpp.orig/src/docs/kb/wc204.txi djgpp/src/docs/kb/wc204.txi
--- djgpp.orig/src/docs/kb/wc204.txi 2009-04-13 12:34:56 +0000
+++ djgpp/src/docs/kb/wc204.txi 2009-06-18 15:58:20 +0000
@@ -1181,5 +1181,12 @@ Those functions that require the trailin
@findex mkstemp AT r{, and SUS compliance}
The function prototypes of @code{mktemp} and @code{mkstemp} are now also in
@code{<sdtlib.h>}. This is to achieve Single Unix Specification compliance.
To keep backward compatibility, the prototypes are also kept in @code{<sdtio.h>}
but their usage is deprecated.
+
+@findex _O_TEMPORARY AT r{, new flag accepted by @code{open}}
+@findex _O_TEMPORARY AT r{, new flag for compatibility with other C compilers}
+@findex open AT r{, supports temporary files}
+The @code{_O_TEMPORARY} flag is an alias for the @code{O_TEMPORARY} flag
+supported by @code{open}. It is supported to increment compatibility
+with other C compilers.
- Raw text -