2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 ANSI C function strerror().
8 #include "__arosc_privdata.h"
10 #include <proto/dos.h>
14 extern const char * _errstrings
[];
16 /*****************************************************************************
27 Returns a readable string for an error number in errno.
30 n - The contents of errno or a #define from errno.h
33 A string describing the error.
45 ******************************************************************************/
49 struct aroscbase
*aroscbase
= __GM_GetBase();
51 Fault(n
- MAX_ERRNO
, NULL
, aroscbase
->acb_fault_buf
, sizeof(aroscbase
->acb_fault_buf
));
53 return aroscbase
->acb_fault_buf
;
56 return (char *)_errstrings
[n
];