home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue2 / SDL.ARC / !gcc / include / libscl / h / errno < prev    next >
Encoding:
Text File  |  2004-09-05  |  747 b   |  33 lines

  1. /* errno.h
  2.  
  3.    For use with the GNU compilers and the SharedCLibrary.
  4.    (c) Copyright 1997, 1999, 2001, 2003, 2004 Nick Burrett.  */
  5.  
  6. #ifndef __ERRNO_H
  7. #define __ERRNO_H
  8.  
  9. #ifndef __errno
  10. #define __errno errno
  11. extern volatile int errno;
  12. #endif
  13.  
  14. /* Domain error. An input argument is outside the domain over
  15.    which the mathematical function is defined.  */
  16. #define EDOM 1
  17.  
  18. /* Range error. The result of a function cannot be represented
  19.    as a double floating point value.  */
  20. #define ERANGE 2
  21.  
  22. /* An unrecognised signal is caught by the default signal handler.  */
  23. #define ESIGNUM 3
  24.  
  25. #define EINVAL 4 /* Invalid argument. */
  26. #define ENOSYS 5 /* Invalid argument. */
  27.  
  28. #define EINTR 6 /* System call interrupted.  */
  29.  
  30. #define __SYS_NERR 7
  31.  
  32. #endif
  33.