Next | What's a file? | 15 |
int fd = open("woogums", O_WRONLY | O_CREAT, 0666);
This is pretty similar
Except that if the file does not exist, the kernel tries to create it
It checks the write permissions on the directory
If the permissions are good, it allocates a new inode
Initializes the various times, file extent, etc.
Enters a new link into the directory
The rest as before
Next | Copyright © 2007 M. J. Dominus |