1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
12 int main(int argc, char ** argv)
17 printf("Usage %s filename {filename ...}\n", argv[0]);
21 for (i = 1; i < argc; i++) {
24 printf("unlink(%s): %s ", argv[i], strerror(errno));
25 rc = access(argv[i], F_OK);
26 if (rc && errno == ENOENT)
27 printf("(unlinked anyways)\n");
29 printf("(still exists)\n");
31 printf("(%s looking up)\n", strerror(errno));