git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Unit testing framework and devicetree framework refactoring (#50)
[lunaix-os.git]
/
lunaix-os
/
usr
/
mkdir.c
1
#include <errno.h>
2
#include <unistd.h>
3
#include <stdio.h>
4
5
int
6
main(int argc, const char* argv[])
7
{
8
if (argc != 2) {
9
printf("expect a directory name\n");
10
return 1;
11
}
12
13
int err;
14
15
err = mkdir(argv[1]);
16
if (err) {
17
printf("unable to mkdir: %d\n", errno);
18
}
19
20
return err;
21
}