aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fcntl.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fcntl.in.h')
-rw-r--r--lib/fcntl.in.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index 0a21c957baf..6f16bc66921 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -97,6 +97,12 @@
97_GL_FUNCDECL_RPL (creat, int, (const char *filename, mode_t mode) 97_GL_FUNCDECL_RPL (creat, int, (const char *filename, mode_t mode)
98 _GL_ARG_NONNULL ((1))); 98 _GL_ARG_NONNULL ((1)));
99_GL_CXXALIAS_RPL (creat, int, (const char *filename, mode_t mode)); 99_GL_CXXALIAS_RPL (creat, int, (const char *filename, mode_t mode));
100# elif defined _WIN32 && !defined __CYGWIN__
101# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
102# undef creat
103# define creat _creat
104# endif
105_GL_CXXALIAS_MDA (creat, int, (const char *filename, mode_t mode));
100# else 106# else
101_GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode)); 107_GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode));
102# endif 108# endif
@@ -106,6 +112,9 @@ _GL_CXXALIASWARN (creat);
106/* Assume creat is always declared. */ 112/* Assume creat is always declared. */
107_GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - " 113_GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - "
108 "use gnulib module creat for portability"); 114 "use gnulib module creat for portability");
115#elif defined _WIN32 && !defined __CYGWIN__
116# undef creat
117# define creat _creat
109#endif 118#endif
110 119
111#if @GNULIB_FCNTL@ 120#if @GNULIB_FCNTL@
@@ -146,6 +155,12 @@ _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - "
146_GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) 155_GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...)
147 _GL_ARG_NONNULL ((1))); 156 _GL_ARG_NONNULL ((1)));
148_GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); 157_GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...));
158# elif defined _WIN32 && !defined __CYGWIN__
159# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
160# undef open
161# define open _open
162# endif
163_GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...));
149# else 164# else
150_GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); 165_GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...));
151# endif 166# endif
@@ -159,6 +174,9 @@ _GL_CXXALIASWARN (open);
159/* Assume open is always declared. */ 174/* Assume open is always declared. */
160_GL_WARN_ON_USE (open, "open is not always POSIX compliant - " 175_GL_WARN_ON_USE (open, "open is not always POSIX compliant - "
161 "use gnulib module open for portability"); 176 "use gnulib module open for portability");
177#elif defined _WIN32 && !defined __CYGWIN__
178# undef open
179# define open _open
162#endif 180#endif
163 181
164#if @GNULIB_OPENAT@ 182#if @GNULIB_OPENAT@