summaryrefslogtreecommitdiffstats
path: root/Mac/Compat/mkdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Compat/mkdir.c')
-rw-r--r--Mac/Compat/mkdir.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/Mac/Compat/mkdir.c b/Mac/Compat/mkdir.c
deleted file mode 100644
index 3c35eb0..0000000
--- a/Mac/Compat/mkdir.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Mkdir for the Macintosh.
- Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
- Pathnames must be Macintosh paths, with colons as separators. */
-
-#include "macdefs.h"
-
-/* Create a directory. */
-
-int
-mkdir(path, mode)
- char *path;
- int mode; /* Ignored */
-{
- HFileParam pb;
-
- if (!hfsrunning()) {
- errno= ENODEV;
- return -1;
- }
- pb.ioNamePtr= (StringPtr) Pstring(path);
- pb.ioVRefNum= 0;
- pb.ioDirID= 0;
- if (PBDirCreate((HParmBlkPtr)&pb, FALSE) != noErr) {
- errno= EACCES;
- return -1;
- }
- return 0;
-}