OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="the-nacl-io-library"> | 3 <section id="the-nacl-io-library"> |
4 <span id="nacl-io"></span><h1 id="the-nacl-io-library"><span id="nacl-io"></span
>The nacl_io Library</h1> | 4 <span id="nacl-io"></span><h1 id="the-nacl-io-library"><span id="nacl-io"></span
>The nacl_io Library</h1> |
5 <div class="contents local topic" id="contents"> | 5 <div class="contents local" id="contents" style="display: none"> |
6 <ul class="small-gap"> | 6 <ul class="small-gap"> |
7 <li><a class="reference internal" href="#introduction" id="id1">Introduction</a>
</li> | 7 <li><a class="reference internal" href="#introduction" id="id1">Introduction</a>
</li> |
8 <li><a class="reference internal" href="#using-nacl-io" id="id2">Using nacl_io</
a></li> | 8 <li><a class="reference internal" href="#using-nacl-io" id="id2">Using nacl_io</
a></li> |
9 <li><p class="first"><a class="reference internal" href="#the-nacl-io-demo" id="
id3">The nacl_io demo</a></p> | 9 <li><p class="first"><a class="reference internal" href="#the-nacl-io-demo" id="
id3">The nacl_io demo</a></p> |
10 <ul class="small-gap"> | 10 <ul class="small-gap"> |
11 <li><a class="reference internal" href="#building-and-running-the-demo" id="id4"
>Building and running the demo</a></li> | 11 <li><a class="reference internal" href="#building-and-running-the-demo" id="id4"
>Building and running the demo</a></li> |
12 <li><a class="reference internal" href="#a-look-at-the-code" id="id5">A look at
the code</a></li> | 12 <li><a class="reference internal" href="#a-look-at-the-code" id="id5">A look at
the code</a></li> |
13 </ul> | 13 </ul> |
14 </li> | 14 </li> |
15 <li><a class="reference internal" href="#reference-information" id="id6">Referen
ce information</a></li> | 15 <li><a class="reference internal" href="#reference-information" id="id6">Referen
ce information</a></li> |
16 </ul> | 16 </ul> |
17 </div> | 17 |
18 <section id="introduction"> | 18 </div><section id="introduction"> |
19 <h2 id="introduction">Introduction</h2> | 19 <h2 id="introduction">Introduction</h2> |
20 <p><code>nacl_io</code> is a utility library that provides implementations of st
andard | 20 <p><code>nacl_io</code> is a utility library that provides implementations of st
andard |
21 C APIs such as POSIX I/O (<code>stdio.h</code>) and BSD sockets (<code>sys/socke
t.h</code>). | 21 C APIs such as POSIX I/O (<code>stdio.h</code>) and BSD sockets (<code>sys/socke
t.h</code>). |
22 Its primary function is to allow code that uses these standard APIs to be | 22 Its primary function is to allow code that uses these standard APIs to be |
23 compiled and used in a Native Client module. The library is included as part | 23 compiled and used in a Native Client module. The library is included as part |
24 of Native Client SDK and is implemented in on top of Pepper API.</p> | 24 of Native Client SDK and is implemented in on top of Pepper API.</p> |
25 <p>Since Native Client modules cannot access the host machine’s file syste
m | 25 <p>Since Native Client modules cannot access the host machine’s file syste
m |
26 directly, nacl_io provides several alternative filesystem types which | 26 directly, nacl_io provides several alternative filesystem types which |
27 can be used by the application. For example, the Chrome browser supports the | 27 can be used by the application. For example, the Chrome browser supports the |
28 <a class="reference external" href="http://www.html5rocks.com/en/tutorials/file/
filesystem/">HTML5 File System API</a> which provides | 28 <a class="reference external" href="http://www.html5rocks.com/en/tutorials/file/
filesystem/">HTML5 File System API</a> which provides |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 <p>The example discussed here is included in the SDK in the directory | 216 <p>The example discussed here is included in the SDK in the directory |
217 <code>examples/demo/nacl_io</code>.</p> | 217 <code>examples/demo/nacl_io</code>.</p> |
218 <p>The nacl_io library is included in the SDK toolchain and is not a part of the | 218 <p>The nacl_io library is included in the SDK toolchain and is not a part of the |
219 Pepper API. For reference information related to the nacl_io interface see | 219 Pepper API. For reference information related to the nacl_io interface see |
220 its header file in the SDK directory, located at | 220 its header file in the SDK directory, located at |
221 <code>include/nacl_io/nacl_io.h</code>.</p> | 221 <code>include/nacl_io/nacl_io.h</code>.</p> |
222 <p>For more about the HTML5 file system read the <a class="reference external" h
ref="http://dev.w3.org/2009/dap/file-system/pub/FileSystem/">specification</a>.<
/p> | 222 <p>For more about the HTML5 file system read the <a class="reference external" h
ref="http://dev.w3.org/2009/dap/file-system/pub/FileSystem/">specification</a>.<
/p> |
223 </section></section> | 223 </section></section> |
224 | 224 |
225 {{/partials.standard_nacl_article}} | 225 {{/partials.standard_nacl_article}} |
OLD | NEW |