OSDN Git Service

Relocate misplaced umask() function prototypes.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Thu, 17 Mar 2016 22:07:04 +0000 (22:07 +0000)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Thu, 17 Mar 2016 22:07:04 +0000 (22:07 +0000)
mingwrt/ChangeLog
mingwrt/include/sys/stat.h

index a6607fa..378f6d6 100644 (file)
@@ -1,5 +1,13 @@
 2016-03-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
+       Relocate misplaced umask() function prototypes.
+
+       * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
+       * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
+       here, but leave them for backward, or Microsoft, compatibility.
+
+2016-03-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
        Correct another _BEGIN_C_DECLS imbalance error.
 
        * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
index 8f3d7d8..2ab9f13 100644 (file)
@@ -205,6 +205,7 @@ _CRTIMP int __cdecl __MINGW_NOTHROW _chmod (const char*, int);
 #if __MSVCRT_VERSION__ < 0x0800
 _CRTIMP int __cdecl __MINGW_NOTHROW    _stat (const char*, struct _stat*);
 #endif
+_CRTIMP int __cdecl __MINGW_NOTHROW    _umask (int);
 
 #ifndef        _NO_OLDNAMES
 /* FIXME for __MSVCRT_VERSION__ >= 0x0800 */
@@ -212,6 +213,7 @@ _CRTIMP int __cdecl __MINGW_NOTHROW _stat (const char*, struct _stat*);
 _CRTIMP int __cdecl __MINGW_NOTHROW    fstat (int, struct stat*);
 _CRTIMP int __cdecl __MINGW_NOTHROW    chmod (const char*, int);
 _CRTIMP int __cdecl __MINGW_NOTHROW    stat (const char*, struct stat*);
+_CRTIMP int __cdecl __MINGW_NOTHROW    umask (int);
 
 #endif /* Not _NO_OLDNAMES */