|
|
1.1 root 1: /***
2: *errno.h - system wide error numbers (set by system calls)
3: *
4: * Copyright (c) 1985-1990, Microsoft Corporation. All rights reserved.
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:
21: #if (_MSC_VER <= 600)
22: #define __cdecl _cdecl
23: #endif
24:
25: /* declare reference to errno */
26:
27: #ifdef _MT
28: extern int * _errno(void);
29: #define errno (*_errno())
30: #else
31: extern int errno;
32: #endif
33:
34: /* Error Codes */
35:
36: #define EZERO 0
37: #define EPERM 1
38: #define ENOENT 2
39: #define ESRCH 3
40: #define EINTR 4
41: #define EIO 5
42: #define ENXIO 6
43: #define E2BIG 7
44: #define ENOEXEC 8
45: #define EBADF 9
46: #define ECHILD 10
47: #define EAGAIN 11
48: #define ENOMEM 12
49: #define EACCES 13
50: #define EFAULT 14
51: #define ENOTBLK 15
52: #define EBUSY 16
53: #define EEXIST 17
54: #define EXDEV 18
55: #define ENODEV 19
56: #define ENOTDIR 20
57: #define EISDIR 21
58: #define EINVAL 22
59: #define ENFILE 23
60: #define EMFILE 24
61: #define ENOTTY 25
62: #define ETXTBSY 26
63: #define EFBIG 27
64: #define ENOSPC 28
65: #define ESPIPE 29
66: #define EROFS 30
67: #define EMLINK 31
68: #define EPIPE 32
69: #define EDOM 33
70: #define ERANGE 34
71: #define EUCLEAN 35
72: #define EDEADLOCK 36
73:
74: #ifdef __cplusplus
75: }
76: #endif
77:
78: #define _INC_ERRNO
79: #endif /* _INC_ERRNO */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.