POSIX mkdir() is deprecated in favor of _mkdir() [1] and the reason of deprecation is already explained here [2].
[1] https://msdn.microsoft.com/en-gb/library/ms235326(v=vs.140).aspx [2] https://stackoverflow.com/a/33358701/5940067 On 11.03.2017 01:01, sisyph...@optusnet.com.au wrote: > -----Original Message----- > From: Grégory Vanuxem > Sent: Saturday, March 11, 2017 2:02 AM > To: mingw-w64-public@lists.sourceforge.net > Subject: [Mingw-w64-public] mkdir and MINGW_ATTRIB_DEPRECATED_MSVC2005 > > >> But here comes my problem : >> In FriCAS there is a function to create a directory : >> >> ------------------------------------------------------------------------------------------ >> /* Make a directory returning 0 for success and -1 for failure */ >> >> int >> makedir(char *path) >> { >> #ifdef S_IRWXO >> return ( mkdir (path,(S_IRWXU | S_IRWXO | S_IRWXG)) ); >> #else >> return ( mkdir (path) ); >> #endif >> } >> ----------------------------------------------------------------------------------------- > Is it the case that,in your earlier builds, S_IRWXO was *not* defined ? > And this is the first time you've built with S_IRWXO defined ? > > My belief is that mkdir() must only ever be called on Windows with *one* > argument. > Therefore the correct thing for FricAS to do would be to replace: > > #ifdef S_IRWXO > with: > #if defined(S_IRWXO) && !defined(_WIN32) > > At least, that's the approach I've always taken. > > I have no knowledge of what "MINGW_ATTRIB_DEPRECATED_MSVC2005" is about. > > Cheers, > Rob > > > ------------------------------------------------------------------------------ > Announcing the Oxford Dictionaries API! The API offers world-renowned > dictionary content that is easy and intuitive to access. Sign up for an > account today to start using our lexical data to power your apps and > projects. Get started today and enter our developer competition. > http://sdm.link/oxford > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public