diff options
| author | manuel <manuel@mausz.at> | 2012-03-27 11:51:08 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-03-27 11:51:08 +0200 |
| commit | 4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b (patch) | |
| tree | 868c52e06f207b5ec8a3cc141f4b8b2bdfcc165c /pintos-progos/examples/rm.c | |
| parent | eae0bd57f0a26314a94785061888d193d186944a (diff) | |
| download | progos-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.c | 21 |
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 | |||
| 8 | int | ||
| 9 | main (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 | } | ||
