home *** CD-ROM | disk | FTP | other *** search
- static char sccs_id[] = "@(#) unlink.c 1.2 " __DATE__ " HJR";
-
- /* unlink.c (c) Copyright 1990 H.Rogers */
-
- #include <errno.h>
-
- #include "sys/unix.h"
- #include "sys/os.h"
-
- int
- unlink (char *file)
- {
- os_error *e;
-
- file = __uname (file, 0);
- if (!*file)
- {
- errno = ENOENT;
- return (-1);
- }
-
- if (e = os_fsctrl (27, file, 0, 0642))
- {
- __seterr (e);
- return (-1);
- }
-
- return (0);
- }
-