This example shows how you can use standard C library file
operation functions in Native Client using a library called nacl_io.
nacl_io 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 four 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.
/http a mount that can read from a URL. Try reading from
/http/index.html.
/dev a mount containing some utility files. /dev/null,
/dev/zero, etc.
File Operations:
fopen
fclose
fread
fwrite
fseek
stat
opendir
readdir
closedir
mkdir