home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
src
/
sys
/
c
/
errlist
< prev
next >
Wrap
Text File
|
1994-03-08
|
1KB
|
72 lines
#ifdef __STDC__
static char sccs_id[] = "@(#) errlist.c 1.2 " __DATE__ " HJR";
#else
static char sccs_id[] = "@(#) errlist.c 1.2 26/9/90 HJR";
#endif
/* errlist.c (c) Copyright 1990 H.Rogers */
#include <stdio.h>
#include <errno.h>
int sys_nerr = 40;
char *sys_errlist[40] =
{
"Error 0",
"No such file or directory",
"No such process",
"Interrupted system call",
"No such device or address",
"Arg list too long",
"Exec format error",
"Bad file descriptor",
"No child processes",
"No more processes",
"Not enough memory",
"Permission denied",
"Bad address",
"Block device required",
"Device busy",
"File exists",
"Cross-device link",
"No such device",
"Not a directory",
"Is a directory",
"Invalid argument",
"File table overflow",
"Too many open files",
"Not a tty",
"Text file busy",
"File too large",
"No space left on device",
"Illegal seek",
"Read-only file system",
"Too many links",
"Broken pipe",
"Argument out of domain",
"Result too large",
"Not owner",
"I/O error",
"Signal Received", /* as flagged by SIG_ERR */
"", /* RiscOS Error */
"Operation would block",
"Operation now in progress",
"Operation already in progress"
};
#ifdef __STDC__
char *
strerror (register int e)
#else
char *
strerror (e)
register int e;
#endif
{
if (e < 0 || e >= sys_nerr)
return (0);
return (sys_errlist[e]);
}