1993-08-05 18:28:27 +00:00
|
|
|
/* strerr.c
|
|
|
|
Return a string for a Unix errno value. */
|
|
|
|
|
|
|
|
#include "uucp.h"
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#ifndef sys_nerr
|
|
|
|
extern int sys_nerr;
|
|
|
|
#endif
|
|
|
|
#ifndef sys_errlist
|
|
|
|
extern char *sys_errlist[];
|
|
|
|
#endif
|
|
|
|
|
1994-05-07 18:14:43 +00:00
|
|
|
#undef strerror
|
|
|
|
|
1993-08-05 18:28:27 +00:00
|
|
|
char *
|
|
|
|
strerror (ierr)
|
|
|
|
int ierr;
|
|
|
|
{
|
|
|
|
if (ierr >= 0 && ierr < sys_nerr)
|
|
|
|
return sys_errlist[ierr];
|
|
|
|
return (char *) "unknown error";
|
|
|
|
}
|