mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-30 14:31:04 +00:00
bf2c1f2266
This is required by C95 and later; it may be set by character/string conversion functions. Note that the value of 12 conflicts with GNO's existing definition of EPERM. This should not cause much trouble, but GNO could potentially define its own different value for EILSEQ, with the GNO version of ORCALib adjusted accordingly.
34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
/****************************************************************
|
|
*
|
|
* errno.h - standard error numbers
|
|
*
|
|
* February 1989
|
|
* Mike Westerfield
|
|
*
|
|
* Copyright 1989
|
|
* Byte Works, Inc.
|
|
*
|
|
****************************************************************/
|
|
|
|
#ifndef __errno__
|
|
#define __errno__
|
|
|
|
#define EDOM 1 /* domain error */
|
|
#define ERANGE 2 /* # too large, too small, or illegal */
|
|
#define ENOMEM 3 /* Not enough memory */
|
|
#define ENOENT 4 /* No such file or directory */
|
|
#define EIO 5 /* I/O error */
|
|
#define EINVAL 6 /* Invalid argument */
|
|
#define EBADF 7 /* bad file descriptor */
|
|
#define EMFILE 8 /* too many files are open */
|
|
#define EACCES 9 /* access bits prevent the operation */
|
|
#define EACCESS 9 /* alias for EACCES */
|
|
#define EEXIST 10 /* the file exists */
|
|
#define ENOSPC 11 /* the file is too large */
|
|
#define EILSEQ 12 /* encoding error */
|
|
|
|
extern int errno;
|
|
#define errno errno
|
|
|
|
#endif
|