commit | d1e0457ad62d37c44c243b91a0c16385ddc148a1 | [log] [tgz] |
---|---|---|
author | Thomas Heijligen <src@posteo.de> | Mon Nov 27 14:28:55 2023 +0000 |
committer | Thomas Heijligen <src@posteo.de> | Mon Nov 27 14:28:55 2023 +0000 |
tree | 554e362dcdbc2c0d7cce759552ad395196eb202d |
Test env to develop FILO filesystem drivers in Ada
diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..91a40d7 --- /dev/null +++ b/src/main.c
@@ -0,0 +1,22 @@ +#include <stdio.h> + + +int main(int argc, char* argv[]) +{ + if (argc != 2) { + fprintf(stdcerr, "Use %s /path/to/filesystem\n", argv[0]); + return -1; + } + + if (devopen(argv[1], NULL) != 1) { + fprintf(stdcerr, "Faild to open %s\n", argv[1]); + return -1; + } + + // TODO + + + devclose(); + return 0; +} +