|
|
1.1 root 1: /***
2: *errno.h - system wide error numbers (set by system calls)
3: *
1.1.1.4 ! root 4: * Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved.
1.1 root 5: *
6: *Purpose:
7: * This file defines the system-wide error numbers (set by
8: * system calls). Conforms to the XENIX standard. Extended
9: * for compatibility with Uniforum standard.
10: * [System V]
11: *
12: ****/
13:
14: #ifndef _INC_ERRNO
15:
16: #ifdef __cplusplus
17: extern "C" {
18: #endif
19:
20:
1.1.1.3 root 21: /*
22: * Conditional macro definition for function calling type and variable type
23: * qualifiers.
24: */
25: #if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
26:
27: /*
28: * Definitions for MS C8-32 (386/486) compiler
29: */
30: #define _CRTAPI1 __cdecl
31: #define _CRTAPI2 __cdecl
32:
33: #else
34:
35: /*
36: * Other compilers (e.g., MIPS)
37: */
38: #define _CRTAPI1
39: #define _CRTAPI2
40:
1.1.1.2 root 41: #endif
1.1 root 42:
1.1.1.3 root 43:
1.1 root 44: /* declare reference to errno */
45:
46: #ifdef _MT
1.1.1.3 root 47: extern int * _CRTAPI1 _errno(void);
1.1 root 48: #define errno (*_errno())
49: #else
50: extern int errno;
51: #endif
52:
53: /* Error Codes */
54:
55: #define EPERM 1
56: #define ENOENT 2
57: #define ESRCH 3
58: #define EINTR 4
59: #define EIO 5
60: #define ENXIO 6
61: #define E2BIG 7
62: #define ENOEXEC 8
63: #define EBADF 9
64: #define ECHILD 10
65: #define EAGAIN 11
66: #define ENOMEM 12
67: #define EACCES 13
68: #define EFAULT 14
69: #define EBUSY 16
70: #define EEXIST 17
71: #define EXDEV 18
72: #define ENODEV 19
73: #define ENOTDIR 20
74: #define EISDIR 21
75: #define EINVAL 22
76: #define ENFILE 23
77: #define EMFILE 24
78: #define ENOTTY 25
79: #define EFBIG 27
80: #define ENOSPC 28
81: #define ESPIPE 29
82: #define EROFS 30
83: #define EMLINK 31
84: #define EPIPE 32
85: #define EDOM 33
86: #define ERANGE 34
1.1.1.4 ! root 87: #define EDEADLK 36
! 88: #define ENAMETOOLONG 38
! 89: #define ENOLCK 39
! 90: #define ENOSYS 40
! 91: #define ENOTEMPTY 41
! 92: #define EILSEQ 42
! 93:
! 94: /*
! 95: * Support EDEADLOCK for compatibiity with older MS-C versions.
! 96: */
! 97: #define EDEADLOCK EDEADLK
1.1 root 98:
99: #ifdef __cplusplus
100: }
101: #endif
102:
103: #define _INC_ERRNO
104: #endif /* _INC_ERRNO */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.