Staging
v0.8.1
v0.8.1
Revision ae48aabb10f775d8d4473126981b170c4f0b1dba authored by Fred Drake on 22 December 1998, 18:27:22 UTC, committed by Fred Drake on 22 December 1998, 18:27:22 UTC
1 parent 1189fa9
rmdir.c
/* Rmdir 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"
int
rmdir(path)
char *path;
{
IOParam pb;
pb.ioNamePtr= (StringPtr) Pstring(path);
pb.ioVRefNum= 0;
if (PBDelete((ParmBlkPtr)&pb, FALSE) != noErr) {
errno= EACCES;
return -1;
}
return 0;
}
Computing file changes ...