Rev 3397 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3397 | Rev 3492 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | #include "cmds.h" |
46 | #include "cmds.h" |
47 | 47 | ||
48 | static char *cmdname = "touch"; |
48 | static char *cmdname = "touch"; |
49 | 49 | ||
50 | /* Dispays help for touch in various levels */ |
50 | /* Dispays help for touch in various levels */ |
51 | void * help_cmd_touch(unsigned int level) |
51 | void help_cmd_touch(unsigned int level) |
52 | { |
52 | { |
53 | if (level == HELP_SHORT) { |
53 | if (level == HELP_SHORT) { |
54 | printf("`%s' updates access times for files\n", cmdname); |
54 | printf("`%s' updates access times for files\n", cmdname); |
55 | } else { |
55 | } else { |
56 | help_cmd_touch(HELP_SHORT); |
56 | help_cmd_touch(HELP_SHORT); |
57 | printf(" `%s' <file>, if the file does not exist it will be " |
57 | printf(" `%s' <file>, if the file does not exist it will be " |
58 | "created\n", cmdname); |
58 | "created\n", cmdname); |
59 | } |
59 | } |
60 | 60 | ||
61 | return CMD_VOID; |
61 | return; |
62 | } |
62 | } |
63 | 63 | ||
64 | /* Main entry point for touch, accepts an array of arguments */ |
64 | /* Main entry point for touch, accepts an array of arguments */ |
65 | int * cmd_touch(char **argv) |
65 | int cmd_touch(char **argv) |
66 | { |
66 | { |
67 | unsigned int argc, i = 0, ret = 0; |
67 | unsigned int argc, i = 0, ret = 0; |
68 | int fd; |
68 | int fd; |
69 | char *buff = NULL; |
69 | char *buff = NULL; |
70 | 70 |