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

Side by Side Diff: native_client_sdk/doc_generated/faq.html

Issue 907103002: NaCl docs: fix clumsy sentence (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | native_client_sdk/src/doc/faq.rst » ('j') | native_client_sdk/src/doc/faq.rst » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{+bindTo:partials.standard_nacl_article}} 1 {{+bindTo:partials.standard_nacl_article}}
2 2
3 <section id="frequently-asked-questions"> 3 <section id="frequently-asked-questions">
4 <h1 id="frequently-asked-questions">Frequently Asked Questions</h1> 4 <h1 id="frequently-asked-questions">Frequently Asked Questions</h1>
5 <div class="contents local" id="contents" style="display: none"> 5 <div class="contents local" id="contents" style="display: none">
6 <ul class="small-gap"> 6 <ul class="small-gap">
7 <li><p class="first"><a class="reference internal" href="#what-is-native-client- good-for" id="id1">What is Native Client Good For?</a></p> 7 <li><p class="first"><a class="reference internal" href="#what-is-native-client- good-for" id="id1">What is Native Client Good For?</a></p>
8 <ul class="small-gap"> 8 <ul class="small-gap">
9 <li><a class="reference internal" href="#why-did-google-build-native-client" id= "id2">Why did Google build Native Client?</a></li> 9 <li><a class="reference internal" href="#why-did-google-build-native-client" id= "id2">Why did Google build Native Client?</a></li>
10 <li><a class="reference internal" href="#when-should-i-use-portable-native-clien t-instead-of-native-client" id="id3">When should I use Portable Native Client in stead of Native Client?</a></li> 10 <li><a class="reference internal" href="#when-should-i-use-portable-native-clien t-instead-of-native-client" id="id3">When should I use Portable Native Client in stead of Native Client?</a></li>
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 <p>The following kinds of code may be more challenging to port:</p> 420 <p>The following kinds of code may be more challenging to port:</p>
421 <ul class="small-gap"> 421 <ul class="small-gap">
422 <li>Code that does direct <a class="reference external" href="pepper_stable/cpp/ classpp_1_1_u_d_p_socket">TCP</a> or 422 <li>Code that does direct <a class="reference external" href="pepper_stable/cpp/ classpp_1_1_u_d_p_socket">TCP</a> or
423 <a class="reference external" href="pepper_stable/cpp/classpp_1_1_u_d_p_socket"> UDP</a> networking. For security 423 <a class="reference external" href="pepper_stable/cpp/classpp_1_1_u_d_p_socket"> UDP</a> networking. For security
424 reasons these APIs are only available to <a class="reference external" href="/ap ps/about_apps">packaged applications</a> after asking for the appropriate permis sions, not on the 424 reasons these APIs are only available to <a class="reference external" href="/ap ps/about_apps">packaged applications</a> after asking for the appropriate permis sions, not on the
425 open web. Native Client is otherwise restricted to the networking APIs 425 open web. Native Client is otherwise restricted to the networking APIs
426 available in the browser. You may want to use to <a class="reference external" h ref="nacl_io">nacl_io library</a> 426 available in the browser. You may want to use to <a class="reference external" h ref="nacl_io">nacl_io library</a>
427 to use POSIX-like sockets.</li> 427 to use POSIX-like sockets.</li>
428 <li>Code that creates processes, including UNIX <code>fork</code>, won&#8217;t f unction 428 <li>Code that creates processes, including UNIX <code>fork</code>, won&#8217;t f unction
429 as-is. However, threads are supported. You can nonetheless create new 429 as-is. However, threads are supported. You can nonetheless create new
430 <code>&lt;embed&gt;</code> tags in your HTML page to launch new PNaCl processes, even using 430 <code>&lt;embed&gt;</code> tags in your HTML page to launch new PNaCl processes. You can even
431 new <code>.pexe</code> files that your existing <code>.pexe</code> saved in a lo cal 431 use new <code>.pexe</code> files that your existing <code>.pexe</code> saved in a local
432 filesystem. This is somewhat akin to <code>execve</code>, but the process manage ment 432 filesystem. This is somewhat akin to <code>execve</code>, but the process manage ment
433 has to go through <code>postMessage</code> to JavaScript in order to create the new 433 has to go through <code>postMessage</code> to JavaScript in order to create the new
434 <code>&lt;embed&gt;</code>.</li> 434 <code>&lt;embed&gt;</code>.</li>
435 <li>Code that needs to do local file I/O. Native Client is restricted to accessi ng 435 <li>Code that needs to do local file I/O. Native Client is restricted to accessi ng
436 URLs and to local storage in the browser (the Pepper <a class="reference interna l" href="/native-client/devguide/coding/file-io.html"><em>File IO API</em></a> h as access to the same per-application storage that 436 URLs and to local storage in the browser (the Pepper <a class="reference interna l" href="/native-client/devguide/coding/file-io.html"><em>File IO API</em></a> h as access to the same per-application storage that
437 JavaScript has via Local Storage). HTML5 File System can be used, among 437 JavaScript has via Local Storage). HTML5 File System can be used, among
438 others. For POSIX compatabiliy the Native Client SDK includes a library called 438 others. For POSIX compatabiliy the Native Client SDK includes a library called
439 nacl_io which allows the application to interact with all these types of files 439 nacl_io which allows the application to interact with all these types of files
440 via standard POSIX I/O functions (e.g. <code>open</code> / <code>fopen</code> / <code>read</code> / 440 via standard POSIX I/O functions (e.g. <code>open</code> / <code>fopen</code> / <code>read</code> /
441 <code>write</code> / ...). See <a class="reference internal" href="/native-clien t/devguide/coding/nacl_io.html"><em>Using NaCl I/O</em></a> for more 441 <code>write</code> / ...). See <a class="reference internal" href="/native-clien t/devguide/coding/nacl_io.html"><em>Using NaCl I/O</em></a> for more
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 you&#8217;re loading the correct <code>.nexe</code> file by building a separate 485 you&#8217;re loading the correct <code>.nexe</code> file by building a separate
486 <code>.nexe</code> for each architecture, and using a <code>.nmf</code> manifest file to 486 <code>.nexe</code> for each architecture, and using a <code>.nmf</code> manifest file to
487 let the browser select the correct <code>.nexe</code> file. Note: the need to 487 let the browser select the correct <code>.nexe</code> file. Note: the need to
488 select a processor-specific <code>.nexe</code> goes away with Portable Native 488 select a processor-specific <code>.nexe</code> goes away with Portable Native
489 Client.</li> 489 Client.</li>
490 <li>If things still aren&#8217;t working, <a class="reference internal" href="/n ative-client/help.html"><em>ask for help</em></a>!</li> 490 <li>If things still aren&#8217;t working, <a class="reference internal" href="/n ative-client/help.html"><em>ask for help</em></a>!</li>
491 </ul> 491 </ul>
492 </section> 492 </section>
493 493
494 {{/partials.standard_nacl_article}} 494 {{/partials.standard_nacl_article}}
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/doc/faq.rst » ('j') | native_client_sdk/src/doc/faq.rst » ('J')

Powered by Google App Engine
This is Rietveld 408576698