home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_01
/
LATTIC_3.LZH
/
SRC
/
SYSERR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-19
|
2KB
|
50 lines
/*
*
* Copyright 1988 by Lattice, Inc.
*
* This module defines the error messages corresponding to the codes that
* can appear in errno.
*
*/
#include <errno.h>
int sys_nerr = 34; /* Highest valid error number */
char *sys_errlist[] = {
"Unknown error code",
/* EPERM 1 */ "User is not owner",
/* ENOENT 2 */ "No such file or directory",
/* ESRCH 3 */ "No such process",
/* EINTR 4 */ "Interrupted system call",
/* EIO 5 */ "I/O error",
/* ENXIO 6 */ "No such device or address",
/* E2BIG 7 */ "Arg list is too long",
/* ENOEXEC 8 */ "Exec format error",
/* EBADF 9 */ "Bad file number",
/* ECHILD 10 */ "No child process",
/* EAGAIN 11 */ "No more processes allowed",
/* ENOMEM 12 */ "No memory available",
/* EACCES 13 */ "Access denied",
/* EFAULT 14 */ "Bad address",
/* ENOTBLK 15 */ "Bulk device required",
/* EBUSY 16 */ "Resource is busy",
/* EEXIST 17 */ "File already exists",
/* EXDEV 18 */ "Cross-device link",
/* ENODEV 19 */ "No such device",
/* ENOTDIR 20 */ "Not a directory",
/* EISDIR 21 */ "Is a directory",
/* EINVAL 22 */ "Invalid argument",
/* ENFILE 23 */ "No more files (units) allowed",
/* EMFILE 24 */ "No more files (units) allowed for this process",
/* ENOTTY 25 */ "Not a terminal",
/* ETXTBSY 26 */ "Text file is busy",
/* EFBIG 27 */ "File is too large",
/* ENOSPC 28 */ "No space left",
/* ESPIPE 29 */ "Seek issued to pipe",
/* EROFS 30 */ "Read-only file system",
/* EMLINK 31 */ "Too many links",
/* EPIPE 32 */ "Broken pipe",
/* EDOM 33 */ "Math function argument error",
/* ERANGE 34 */ "Math function result is out of range" };