aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/ext_ffi_api.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/ext_ffi_api.html b/doc/ext_ffi_api.html
index 2d69cb49..e865a5f7 100644
--- a/doc/ext_ffi_api.html
+++ b/doc/ext_ffi_api.html
@@ -336,14 +336,16 @@ objects.
336 336
337<h2 id="util">Utility Functions</h2> 337<h2 id="util">Utility Functions</h2>
338 338
339<h3 id="ffi_errno"><tt>err = ffi.errno()</tt></h3> 339<h3 id="ffi_errno"><tt>err = ffi.errno([newerr])</tt></h3>
340<p> 340<p>
341Returns the error number set by the last C&nbsp;function call which 341Returns the error number set by the last C&nbsp;function call which
342indicated an error condition. 342indicated an error condition. If the optional <tt>newerr</tt> argument
343is present, the error number is set to the new value and the previous
344value is returned.
343</p> 345</p>
344<p> 346<p>
345This function offers a portable and OS-independent way to get the error 347This function offers a portable and OS-independent way to get and set the
346number. Note that only <em>some</em> C&nbsp;functions set the error 348error number. Note that only <em>some</em> C&nbsp;functions set the error
347number. And it's only significant if the function actually indicated an 349number. And it's only significant if the function actually indicated an
348error condition (e.g. with a return value of <tt>-1</tt> or 350error condition (e.g. with a return value of <tt>-1</tt> or
349<tt>NULL</tt>). Otherwise, it may or may not contain any previously set 351<tt>NULL</tt>). Otherwise, it may or may not contain any previously set