Initial revision
This commit is contained in:
parent
d2f7f252b2
commit
0a7c058d01
47
lang/cem/libcc.ansi/errno/errlist.c
Normal file
47
lang/cem/libcc.ansi/errno/errlist.c
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
/*
|
||||||
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||||
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||||
|
*/
|
||||||
|
/* $Header$ */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
const char *_sys_errlist[] = {
|
||||||
|
"Error 0",
|
||||||
|
"Not owner",
|
||||||
|
"No such file or directory",
|
||||||
|
"No such process",
|
||||||
|
"Interrupted system call",
|
||||||
|
"I/O error",
|
||||||
|
"No such device or address",
|
||||||
|
"Arg list too long",
|
||||||
|
"Exec format error",
|
||||||
|
"Bad file number",
|
||||||
|
"No children",
|
||||||
|
"No more processes",
|
||||||
|
"Not enough core",
|
||||||
|
"Permission denied",
|
||||||
|
"Bad address",
|
||||||
|
"Block device required",
|
||||||
|
"Mount 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 typewriter",
|
||||||
|
"Text file busy",
|
||||||
|
"File too large",
|
||||||
|
"No space left on device",
|
||||||
|
"Illegal seek",
|
||||||
|
"Read-only file system",
|
||||||
|
"Too many links",
|
||||||
|
"Broken pipe",
|
||||||
|
"Math argument",
|
||||||
|
"Result too large"
|
||||||
|
};
|
||||||
|
|
||||||
|
const int _sys_nerr = sizeof(_sys_errlist) / sizeof(_sys_errlist[0]);
|
11
lang/cem/libcc.ansi/errno/errno.c
Normal file
11
lang/cem/libcc.ansi/errno/errno.c
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
* errno.h - error codes
|
||||||
|
*
|
||||||
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||||
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||||
|
*/
|
||||||
|
/* $Header */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
int errno = 0;
|
Loading…
Reference in a new issue