tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pr_getoserror.rst (621B)


      1 PR_GetOSError
      2 =============
      3 
      4 Returns the current thread's last set OS-specific error code.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prerror.h>
     13 
     14   PRInt32 PR_GetOSError(void)
     15 
     16 
     17 Returns
     18 ~~~~~~~
     19 
     20 The value returned is a 32-bit signed number. Its interpretation is left
     21 to the caller.
     22 
     23 
     24 Description
     25 -----------
     26 
     27 Used for platform-specific code that requires the underlying OS error.
     28 For portability, clients should not create dependencies on the values of
     29 OS-specific error codes. However, this information is preserved, along
     30 with a platform neutral error code, on a per thread basis. It is most
     31 useful during development.