summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs/vms/rmdir.c
blob: bebe1ea7005dde53ad4d170776925474e69a0a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#ifndef __VMS_VER
#define __VMS_VER 0
#endif
#ifndef __DECC_VER
#define __DECC_VER 0
#endif

#if __VMS_VER < 70200000 || __DECC_VER < 50700000

#include <stdio.h>
#include <unixio.h>

int rmdir(path)
char *path;
{
  chmod(path, 0777);
  return remove(path);
}

#else  /*  __VMS_VER >= 70200000 && __DECC_VER >= 50700000  */
#pragma message disable EMPTYFILE
#endif  /*  __VMS_VER >= 70200000 && __DECC_VER >= 50700000  */