This example shows how you can use standard C library file operation
functions in Native Client using a library called nacl_mounts.
nacl_mounts provides a virtual filesystem. The filesystem can be "mounted"
in a given directory tree. When you perform operations on files in those
directories, the mount determines how those operations should be performed.
This example has three mounts by default.
/ the root of the filesystem. This is a memory mount, and
is non-persistent.
/persistent a persistent storage area. Any data written
here can be read back after Chrome is restarted.
/dev a mount containing some utility files. /dev/null,
/dev/zero, etc.