Disabled IVY for user apps. Altered the open/read userapp test.
[akaros.git] / user / apps / parlib / open_read.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <fcntl.h>
4 #include <unistd.h>
5
6 int main(int argc, char** argv)
7 {
8         printf("Hello world from newlib!!\n");
9         int fd = open("/test/file", O_RDWR, 0);
10 //      char buf[10];
11 //      int read_amt = read(fd, buf, 10);
12         printf("FD: %d\n", fd);
13 //      printf("read_amt: %d\n", read_amt);
14 //      printf("read: %s\n", buf);
15 /*
16         char buf2[] = "NANWAN!\n";
17
18         int write_amt = write(fd, buf2, 8);
19         printf("write_amt: %d\n", write_amt);        
20         printf("wrote: %s\n", buf2);
21 */
22
23         return 0;
24 }