您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

107 行
6.3KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>Reentrant Syscalls (The Red Hat newlib C Library)</title>
  7. <meta name="description" content="Reentrant Syscalls (The Red Hat newlib C Library)">
  8. <meta name="keywords" content="Reentrant Syscalls (The Red Hat newlib C Library)">
  9. <meta name="resource-type" content="document">
  10. <meta name="distribution" content="global">
  11. <meta name="Generator" content="makeinfo">
  12. <link href="index.html#Top" rel="start" title="Top">
  13. <link href="Document-Index.html#Document-Index" rel="index" title="Document Index">
  14. <link href="Document-Index.html#SEC_Contents" rel="contents" title="Table of Contents">
  15. <link href="Syscalls.html#Syscalls" rel="up" title="Syscalls">
  16. <link href="_005fclose_005fr.html#g_t_005fclose_005fr" rel="next" title="_close_r">
  17. <link href="Stubs.html#Stubs" rel="prev" title="Stubs">
  18. <style type="text/css">
  19. <!--
  20. a.summary-letter {text-decoration: none}
  21. blockquote.indentedblock {margin-right: 0em}
  22. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  23. blockquote.smallquotation {font-size: smaller}
  24. div.display {margin-left: 3.2em}
  25. div.example {margin-left: 3.2em}
  26. div.lisp {margin-left: 3.2em}
  27. div.smalldisplay {margin-left: 3.2em}
  28. div.smallexample {margin-left: 3.2em}
  29. div.smalllisp {margin-left: 3.2em}
  30. kbd {font-style: oblique}
  31. pre.display {font-family: inherit}
  32. pre.format {font-family: inherit}
  33. pre.menu-comment {font-family: serif}
  34. pre.menu-preformatted {font-family: serif}
  35. pre.smalldisplay {font-family: inherit; font-size: smaller}
  36. pre.smallexample {font-size: smaller}
  37. pre.smallformat {font-family: inherit; font-size: smaller}
  38. pre.smalllisp {font-size: smaller}
  39. span.nolinebreak {white-space: nowrap}
  40. span.roman {font-family: initial; font-weight: normal}
  41. span.sansserif {font-family: sans-serif; font-weight: normal}
  42. ul.no-bullet {list-style: none}
  43. -->
  44. </style>
  45. </head>
  46. <body lang="en">
  47. <a name="Reentrant-Syscalls"></a>
  48. <div class="header">
  49. <p>
  50. Previous: <a href="Stubs.html#Stubs" accesskey="p" rel="prev">Stubs</a>, Up: <a href="Syscalls.html#Syscalls" accesskey="u" rel="up">Syscalls</a> &nbsp; [<a href="Document-Index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Document-Index.html#Document-Index" title="Index" rel="index">Index</a>]</p>
  51. </div>
  52. <hr>
  53. <a name="Reentrant-covers-for-OS-subroutines"></a>
  54. <h3 class="section">13.2 Reentrant covers for OS subroutines</h3>
  55. <p>Since the system subroutines are used by other library routines that
  56. require reentrancy, <samp>libc.a</samp> provides cover routines (for example,
  57. the reentrant version of <code>fork</code> is <code>_fork_r</code>). These cover
  58. routines are consistent with the other reentrant subroutines in this
  59. library, and achieve reentrancy by using a reserved global data block
  60. (see <a href="Reentrancy.html#Reentrancy">Reentrancy</a>).
  61. </p>
  62. <table class="menu" border="0" cellspacing="0">
  63. <tr><td align="left" valign="top">&bull; <a href="_005fclose_005fr.html#g_t_005fclose_005fr" accesskey="1">_close_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of close
  64. </td></tr>
  65. <tr><td align="left" valign="top">&bull; <a href="_005fexecve_005fr.html#g_t_005fexecve_005fr" accesskey="2">_execve_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of execve
  66. </td></tr>
  67. <tr><td align="left" valign="top">&bull; <a href="_005ffork_005fr.html#g_t_005ffork_005fr" accesskey="3">_fork_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of fork
  68. </td></tr>
  69. <tr><td align="left" valign="top">&bull; <a href="_005ffstat_005fr.html#g_t_005ffstat_005fr" accesskey="4">_fstat_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of fstat
  70. </td></tr>
  71. <tr><td align="left" valign="top">&bull; <a href="_005fgetpid_005fr.html#g_t_005fgetpid_005fr" accesskey="5">_getpid_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of getpid
  72. </td></tr>
  73. <tr><td align="left" valign="top">&bull; <a href="_005fkill_005fr.html#g_t_005fkill_005fr" accesskey="6">_kill_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of kill
  74. </td></tr>
  75. <tr><td align="left" valign="top">&bull; <a href="_005flink_005fr.html#g_t_005flink_005fr" accesskey="7">_link_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of link
  76. </td></tr>
  77. <tr><td align="left" valign="top">&bull; <a href="_005flseek_005fr.html#g_t_005flseek_005fr" accesskey="8">_lseek_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of lseek
  78. </td></tr>
  79. <tr><td align="left" valign="top">&bull; <a href="_005fopen_005fr.html#g_t_005fopen_005fr" accesskey="9">_open_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of open
  80. </td></tr>
  81. <tr><td align="left" valign="top">&bull; <a href="_005fread_005fr.html#g_t_005fread_005fr">_read_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of read
  82. </td></tr>
  83. <tr><td align="left" valign="top">&bull; <a href="_005fsbrk_005fr.html#g_t_005fsbrk_005fr">_sbrk_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of sbrk
  84. </td></tr>
  85. <tr><td align="left" valign="top">&bull; <a href="_005fstat_005fr.html#g_t_005fstat_005fr">_stat_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of stat
  86. </td></tr>
  87. <tr><td align="left" valign="top">&bull; <a href="_005ftimes_005fr.html#g_t_005ftimes_005fr">_times_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of times
  88. </td></tr>
  89. <tr><td align="left" valign="top">&bull; <a href="_005funlink_005fr.html#g_t_005funlink_005fr">_unlink_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of unlink
  90. </td></tr>
  91. <tr><td align="left" valign="top">&bull; <a href="_005fwait_005fr.html#g_t_005fwait_005fr">_wait_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of wait
  92. </td></tr>
  93. <tr><td align="left" valign="top">&bull; <a href="_005fwrite_005fr.html#g_t_005fwrite_005fr">_write_r</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Reentrant version of write
  94. </td></tr>
  95. </table>
  96. </body>
  97. </html>