This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author janglin
Recipients janglin, stutzbach
Date 2010-09-08.04:36:59
SpamBayes Score 3.1114555e-12
Marked as misclassified No
Message-id <1283920627.71.0.918487964932.issue9752@psf.upfronthosting.co.za>
In-reply-to
Content
Windows provides two versions of mkdir in direct.h:
    int mkdir(const char* dirname)
    int _mkdir(const char* dirname)
The latter is the preferred function because it is conformant to the ISO C++ standard.  As you can see, neither function has a mode parameter like the Unix system call.  The directory permissions are inherited from the parent directory.

I simply defined a macro that expands to the correct version of mkdir for the system that Python is being compiled upon.  I found other instances in the Python source where similar things were done so I hope my solution is acceptable.

I have tested my solution on 32 and 64 bit builds of Python from the py3k svn trunk.
History
Date User Action Args
2010-09-08 04:37:08janglinsetrecipients: + janglin, stutzbach
2010-09-08 04:37:07janglinsetmessageid: <1283920627.71.0.918487964932.issue9752@psf.upfronthosting.co.za>
2010-09-08 04:37:04janglinlinkissue9752 messages
2010-09-08 04:37:03janglincreate