sys_open() and sys_close()
[akaros.git] / tests / file_test.c
1 #include <stdio.h> 
2 #include <sys/types.h>
3 #include <sys/stat.h>
4 #include <fcntl.h>
5 #include <arch/arch.h>
6
7 int main() 
8
9         FILE *file; 
10         file = fopen("/dir1/f1.txt","w+b");
11         if (file == NULL)
12                 printf ("Failed to open file \n");
13         fprintf(file,"%s","hello, world\n"); 
14         fclose(file); 
15
16         int fd = open("/bin/test.txt", O_RDWR | O_CREAT );
17         breakpoint();
18 }