| [683] | 1 | /* errno.h standard header */ | 
|---|
|  | 2 | #ifndef _ERRNO | 
|---|
|  | 3 | #define _ERRNO | 
|---|
|  | 4 | #ifndef _YVALS | 
|---|
|  | 5 | #include <yvals.h> | 
|---|
|  | 6 | #endif | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #if __MWERKS__ | 
|---|
|  | 9 | #pragma options align=mac68k | 
|---|
|  | 10 | #endif | 
|---|
|  | 11 |  | 
|---|
|  | 12 | /* error codes */ | 
|---|
|  | 13 | #define ESUCCESS        0               /* Successful */ | 
|---|
|  | 14 | #define EPERM           1               /* Not owner */ | 
|---|
|  | 15 | #define ENOENT          2               /* No such file or directory */ | 
|---|
|  | 16 | #define ESRCH           3               /* No such process */ | 
|---|
|  | 17 | #define EINTR           4               /* Interrupted system call */ | 
|---|
|  | 18 | #define EIO             5               /* I/O error */ | 
|---|
|  | 19 | #define ENXIO           6               /* No such device or address */ | 
|---|
|  | 20 | #define E2BIG           7               /* Arg list too long */ | 
|---|
|  | 21 | #define ENOEXEC         8               /* Exec format error */ | 
|---|
|  | 22 | #define EBADF           9               /* Bad file number */ | 
|---|
|  | 23 | #define ECHILD          10              /* No children */ | 
|---|
|  | 24 | #define EDEADLK         11              /* Operation would cause deadlock */ | 
|---|
|  | 25 | #define ENOMEM          12              /* Not enough core */ | 
|---|
|  | 26 | #define EACCES          13              /* Permission denied */ | 
|---|
|  | 27 | #define EFAULT          14              /* Bad address */ | 
|---|
|  | 28 | #define ENOTBLK         15              /* Block device required */ | 
|---|
|  | 29 | #define EBUSY           16              /* Mount device busy */ | 
|---|
|  | 30 | #define EEXIST          17              /* File exists */ | 
|---|
|  | 31 | #define EXDEV           18              /* Cross-device link */ | 
|---|
|  | 32 | #define ENODEV          19              /* No such device */ | 
|---|
|  | 33 | #define ENOTDIR         20              /* Not a directory*/ | 
|---|
|  | 34 | #define EISDIR          21              /* Is a directory */ | 
|---|
|  | 35 | #define EINVAL          22              /* Invalid argument */ | 
|---|
|  | 36 | #define ENFILE          23              /* File table overflow */ | 
|---|
|  | 37 | #define EMFILE          24              /* Too many open files */ | 
|---|
|  | 38 | #define ENOTTY          25              /* Not a typewriter */ | 
|---|
|  | 39 | #define ETXTBSY         26              /* Text file busy */ | 
|---|
|  | 40 | #define EFBIG           27              /* File too large */ | 
|---|
|  | 41 | #define ENOSPC          28              /* No space left on device */ | 
|---|
|  | 42 | #define ESPIPE          29              /* Illegal seek */ | 
|---|
|  | 43 | #define EROFS           30              /* Read-only file system */ | 
|---|
|  | 44 | #define EMLINK          31              /* Too many links */ | 
|---|
|  | 45 | #define EPIPE           32              /* Broken pipe */ | 
|---|
|  | 46 |  | 
|---|
|  | 47 | /* math software */ | 
|---|
|  | 48 | #define EDOM            33              /* Argument too large */ | 
|---|
|  | 49 | #define ERANGE          34              /* Result too large */ | 
|---|
|  | 50 | #define EFPOS   _EFPOS | 
|---|
|  | 51 | #define EILSEQ  _EILSEQ | 
|---|
|  | 52 | /* ADD YOURS HERE */ | 
|---|
|  | 53 | #define _NERR   _ERRMAX /* one more than last code */ | 
|---|
|  | 54 | /* declarations */ | 
|---|
|  | 55 | extern int errno; | 
|---|
|  | 56 |  | 
|---|
|  | 57 | #if __MWERKS__ | 
|---|
|  | 58 | #pragma options align=reset | 
|---|
|  | 59 | #endif | 
|---|
|  | 60 |  | 
|---|
|  | 61 | #endif | 
|---|
|  | 62 |  | 
|---|
|  | 63 | /* | 
|---|
|  | 64 | * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. | 
|---|
|  | 65 | * Consult your license regarding permissions and restrictions. | 
|---|
|  | 66 | */ | 
|---|
|  | 67 |  | 
|---|
|  | 68 | /* Change log: | 
|---|
|  | 69 | *94June04 PlumHall baseline | 
|---|
|  | 70 | *94Oct07 Inserted MW changes. | 
|---|
|  | 71 | */ | 
|---|