summaryrefslogtreecommitdiffstats
path: root/pintos-progos/examples/rm.c
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-03-27 11:51:08 +0200
committermanuel <manuel@mausz.at>2012-03-27 11:51:08 +0200
commit4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b (patch)
tree868c52e06f207b5ec8a3cc141f4b8b2bdfcc165c /pintos-progos/examples/rm.c
parenteae0bd57f0a26314a94785061888d193d186944a (diff)
downloadprogos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.gz
progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.bz2
progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.zip
reorganize file structure to match the upstream requirements
Diffstat (limited to 'pintos-progos/examples/rm.c')
-rw-r--r--pintos-progos/examples/rm.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/pintos-progos/examples/rm.c b/pintos-progos/examples/rm.c
deleted file mode 100644
index 0db7f7b..0000000
--- a/pintos-progos/examples/rm.c
+++ /dev/null
@@ -1,21 +0,0 @@
1/* rm.c
2
3 Removes files specified on command line. */
4
5#include <stdio.h>
6#include <syscall.h>
7
8int
9main (int argc, char *argv[])
10{
11 bool success = true;
12 int i;
13
14 for (i = 1; i < argc; i++)
15 if (!remove (argv[i]))
16 {
17 printf ("%s: remove failed\n", argv[i]);
18 success = false;
19 }
20 return success ? EXIT_SUCCESS : EXIT_FAILURE;
21}