Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* The errno variable is stored in the reentrancy structure.  This
  2.    function returns its address for use by the macro errno defined in
  3.    errno.h.  */
  4.  
  5. #include <errno.h>
  6. #include <reent.h>
  7.  
  8. #ifndef _REENT_ONLY
  9.  
  10. int *
  11. __errno ()
  12. {
  13.   return &_REENT->_errno;
  14. }
  15.  
  16. #endif
  17.