#ifndef ERRNO_H #define ERRNO_H 1 /* * ERRNO.H Error code values for $$ferr * * The DECUS C library did not come with a definition file for the code values * that go in $$ferr; in the spirit of an ANSI this file provides * them. * * Note that I have defined the DECUS-C specific code names (E$$xxx) and, * where possible, the corresponding Unix names (Exxxxx). ANSI says that * the code names and numbers are implementation-defined (non-portable) but * its my guess that using names in common with Unix compilers may improve * portability. * * Copyright (c) 1991 Shal Farley * Cheshire Engineering Corporation * 650 Sierra Madre Villa Avenue, Suite 201 * Pasadena, California 91107 * (818) 351-5493 * (818) 351-8645 FAX * shal@alumni.caltech.edu * * This software may be used and distributed for any purpose without license or * royalty payments so long as the above copyright notice is preserved. If you * have any comments, bug fixes, improvements, or new programs based upon this * software I'd like to hear from you. */ #define E$$ILF 2 /* "Illegal file name" */ #define E$$NOR 4 /* "No room for user on device" */ #define E$$FNF 5 /* "Can't find file or account" */ #define E$$NOD 6 /* "Not a valid device" */ #define E$$ILU 7 /* "I/O channel in use" */ #define E$$NOO 9 /* "I/O channel not open" */ #define E$$EOF 11 /* "End of file on device" */ #define E$$FAT 12 /* "Fatal system I/O failure" */ #define E$$ERR 13 /* "User data error on device" */ #define E$$FND 16 /* "File already found" */ #define E$$NOC 17 /* "Too many open files on unit." */ #define E$$NSP 32 /* "No memory space left" */ /* Unix names with obvious equivalents */ #define ETXTBSY 2 /* "Illegal filename" */ #define ENOSPC 4 /* "No space left on device" */ #define ENOENT 5 /* "File not found" */ #define ENODEV 6 /* "No such device" */ #define EBADF 9 /* "File not open" */ #define EIO 12 /* "I/O error" */ #define EEXIST 16 /* "File exists" */ #define EMFILE 17 /* "Too many open files" */ #define ENOMEM 32 /* "Not enough core" */ #if 0 /* Unix names with no obvious equivalents */ /* 0 "Unknown error" */ #define EPERM 0 /* "Not owner" */ #define ESRCH 0 /* "No such process" */ #define EINTR 0 /* "Interrupted system call" */ #define ENXIO 0 /* "No such device or address" */ #define E2BIG 0 /* "Arg list too long" */ #define ENOEXEC 0 /* "Exec format error" */ #define ECHILD 0 /* "No children" */ #define EAGAIN 0 /* "No more processes" */ #define EACCES 0 /* "Permission denied" */ #define EFAULT 0 /* "Bad address" */ #define ENOTBLK 0 /* "Block device required" */ #define EBUSY 0 /* "Device busy" */ #define EXDEV 0 /* "Cross-device link" */ #define ENOTDIR 0 /* "Not a directory" */ #define EISDIR 0 /* "Is a directory" */ #define EINVAL 0 /* "Invalid argument" */ #define ENFILE 0 /* "Directory overflow" */ #define ENOTTY 0 /* "Not a tty" */ #define EFBIG 0 /* "File too large" */ #define ESPIPE 0 /* "Illegal seek" */ #define EROFS 0 /* "Read-only file system" */ #define EMLINK 0 /* "Too many links" */ #define EPIPE 0 /* "Broken pipe" */ #define EDOM 0 /* "Argument too large" */ #define ERANGE 0 /* "Result too large" */ #define ELOCAL 0 /* "Non standard error" */ #endif #endif /* ERRNO_H */