A file can be created.

Now up to sys_write() in pager, which needs to be filled in.
This commit is contained in:
Bahadir Balban
2008-04-19 01:27:41 +01:00
parent ce26835968
commit df0eccf7b3
5 changed files with 11 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ int fileio(void)
perror("OPEN");
return -1;
}
printf("Created newfile.txt\n");
if ((int)(cnt = write(fd, str, strlen(str))) < 0) {
perror("WRITE");