Add recursive scanning
[erinaco.git] / open.c
bloba795206d3c20b3f869d99de208a1d396033c2a95
1 #include <unistd.h>
2 #include <fcntl.h>
4 int open_read(const char *filename) {
5 return open(filename, O_RDONLY);
8 int open_readwrite(const char *filename)
10 return open(filename, O_RDWR|O_TRUNC|O_CREAT, 0644);