xref: /openbsd-src/gnu/usr.bin/cvs/vms/unlink.c (revision b2ea75c1b17e1a9a339660e7ed45cd24946b230e)
1 #include <unixio.h>
2 
3 /* UNIX-like file deletion, deletes previous VMS file versions so UNIX
4    style locking through files dosen't lose.  */
5 int unlink(char *path)
6 {
7   int rs, junk_rs;
8 
9   rs = remove(path);
10   while(remove(path) >= 0);
11 
12   return rs;
13 }
14 
15 int link(char *from, char *to)
16 {
17   int rs = -1;
18 
19   /* Link always fails */
20 
21   return rs;
22 }
23