Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: native_client_sdk/src/doc/devguide/coding/nacl_io.rst

Issue 618823003: Add debugging information for nacl_io library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to feedback from Patch Set 5. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/doc/devguide/coding/nacl_io.rst
diff --git a/native_client_sdk/src/doc/devguide/coding/nacl_io.rst b/native_client_sdk/src/doc/devguide/coding/nacl_io.rst
index 7d5b721ffb471e8f39333d01898aec0f847bece0..e32707c81bef473581d50c9ffff587b8dca2ce6a 100644
--- a/native_client_sdk/src/doc/devguide/coding/nacl_io.rst
+++ b/native_client_sdk/src/doc/devguide/coding/nacl_io.rst
@@ -19,20 +19,19 @@ compiled and used in a Native Client module. The library is included as part
of Native Client SDK and is implemented in on top of Pepper API.
Since Native Client modules cannot access the host machine's file system
-directly, nacl_io provides several alternative filesystem types which
-can be used by the application. For example, the Chrome browser supports the
-`HTML5 File System API
-<http://www.html5rocks.com/en/tutorials/file/filesystem/>`_ which provides
-access to a protected area of the local file system. This filesystem can
-be accessed by an HTML page using JavaScript commands, and also by a Native
-Client module using the Pepper :doc:`File IO API <file-io>`. With nacl_io
-a Native Client application can mount an HTML5 filesystem and access it via
-standard POSIX I/O function such as ``fopen``, ``fseek``, ``fread``,
-``fwrite``, and ``fclose``, or their low level UNIX counterparts ``open``,
-``lseek``, ``read``, ``write`` and ``close``.
-
-As well as the HTML5 file system, nacl_io provides several other file system
-types which are described in the table below:
+directly, nacl_io provides several alternative filesystem types which can be
+used by the application. For example, the Chrome browser supports the `HTML5
+File System API <http://www.html5rocks.com/en/tutorials/file/filesystem/>`_
+which provides access to a protected area of the local file system. This
+filesystem can be accessed by an HTML page using JavaScript commands, and also
+by a Native Client module using the Pepper :doc:`File IO API <file-io>`.
+
+With nacl_io a Native Client application can mount an HTML5 filesystem and
+access it via standard POSIX I/O function such as ``fopen``, ``fseek``,
+``fread``, ``fwrite``, and ``fclose``, or their low level UNIX counterparts
+``open``, ``lseek``, ``read``, ``write`` and ``close``. As well as the HTML5
+file system, nacl_io provides several other file system types which are
+described in the table below:
=========== ==================================================================
File System Description
@@ -65,6 +64,13 @@ to use nacl_io in a NaCl application:
thread. This is because the main Pepper thread does not support the blocking
behavior needed by the POSIX I/O operations.
+Logging in nacl_io
+==================
+
+Unlike most input/output for nacl_io, internal logging writes directly to the
+``stderr`` stream of the NaCl process. It deliberately bypasses the standard
+library functions implemented in nacl_io to avoid circular calls to itself.
+
The nacl_io demo
================
@@ -212,7 +218,7 @@ below. Notice that it does not contain any PPAPI calls and looks like
return 0;
}
-Reference information
+Reference Information
=====================
The example discussed here is included in the SDK in the directory
« no previous file with comments | « native_client_sdk/doc_generated/sitemap.html ('k') | native_client_sdk/src/doc/devguide/devcycle/debugging.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698