HOOK: strerror os ( errno -- str )
-! For strerror on Unix all platforms
-<< os windows? [ "libc.unix" require ] unless >>
-
! For libc.linux, libc.windows, libc.macosx...
<< "libc." os unparse append require >>
FUNCTION-ALIAS: (realloc)
void* realloc ( void* alien, size_t size ) ;
+FUNCTION-ALIAS: strerror_unsafe
+ char* strerror ( int errno ) ;
+
+! Add a default strerror even though it's not threadsafe
+M: object strerror strerror_unsafe ;
+
FUNCTION: int strerror_r ( int errno, char* buf, size_t buflen ) ;
ERROR: libc-error errno message ;
DESTRUCTOR: free
DESTRUCTOR: (free)
+
+! For strerror on Unix all platforms
+<< os windows? [ "libc.unix" require ] unless >>