search for: af241ef

Displaying 1 result from an estimated 1 matches for "af241ef".

Did you mean: af21ef0
2006 Aug 24
0
[patch] mkdir use and add usage
...+0200 [klibc] mkdir add usage when printing errors about cli switches, point out the expected usage. patches adds usage function and calls to it. Signed-off-by: maximilian attems <maks at sternwelten.at> diff --git a/usr/utils/mkdir.c b/usr/utils/mkdir.c index 1275472..af241ef 100644 --- a/usr/utils/mkdir.c +++ b/usr/utils/mkdir.c @@ -15,6 +15,12 @@ static int p_flag; char *progname; +static __noreturn usage(void) +{ + fprintf(stderr, "Usage: %s [-p] [-m mode] dir...\n", progname); + exit(1); +} + static int make_one_dir(char *dir, mode_t mode) { struc...