xref: /openbsd/gnu/usr.bin/cvs/vms/rmdir.c (revision f6aab3d8)
1 
2 #ifndef __VMS_VER
3 #define __VMS_VER 0
4 #endif
5 #ifndef __DECC_VER
6 #define __DECC_VER 0
7 #endif
8 
9 #if __VMS_VER < 70200000 || __DECC_VER < 50700000
10 
11 #include <stdio.h>
12 #include <unixio.h>
13 
14 int rmdir(path)
15 char *path;
16 {
17   chmod(path, 0777);
18   return remove(path);
19 }
20 
21 #else  /*  __VMS_VER >= 70200000 && __DECC_VER >= 50700000  */
22 #pragma message disable EMPTYFILE
23 #endif  /*  __VMS_VER >= 70200000 && __DECC_VER >= 50700000  */
24