mono-errno.h 350 B

123456789101112131415161718192021222324
  1. /**
  2. * \file
  3. * Access the native error code
  4. *
  5. * Author:
  6. * Alexander Kyte (alkyte@microsoft.com)
  7. *
  8. * (C) 2018 Microsoft, Inc.
  9. *
  10. */
  11. #ifndef __MONO_ERRNO_H__
  12. #define __MONO_ERRNO_H__
  13. #include <errno.h>
  14. // Enough indirection to do something else here, or log
  15. inline static void
  16. mono_set_errno (int errno_val)
  17. {
  18. errno = errno_val;
  19. }
  20. #endif