xref: /reactos/sdk/lib/crt/stdlib/doserrmap.h (revision 40462c92)
1 /* doserrmap.h: auto-generated from winerror.h and errno.h using undoc'd _dosmaperr. */
2 
3 #ifndef doserrmap_h
4 #define doserrmap_h
5 
6 struct {
7 	unsigned long winerr;
8 	int en;
9 } doserrmap[] = {
10 	{ ERROR_FILE_NOT_FOUND, ENOENT },
11 	{ ERROR_PATH_NOT_FOUND, ENOENT },
12 	{ ERROR_TOO_MANY_OPEN_FILES, EMFILE },
13 	{ ERROR_ACCESS_DENIED, EACCES },
14 	{ ERROR_INVALID_HANDLE, EBADF },
15 	{ ERROR_ARENA_TRASHED, ENOMEM },
16 	{ ERROR_NOT_ENOUGH_MEMORY, ENOMEM },
17 	{ ERROR_INVALID_BLOCK, ENOMEM },
18 	{ ERROR_BAD_ENVIRONMENT, E2BIG },
19 	{ ERROR_BAD_FORMAT, ENOEXEC },
20 	{ ERROR_INVALID_DRIVE, ENOENT },
21 	{ ERROR_CURRENT_DIRECTORY, EACCES },
22 	{ ERROR_NOT_SAME_DEVICE, EXDEV },
23 	{ ERROR_NO_MORE_FILES, ENOENT },
24 	{ ERROR_WRITE_PROTECT, EACCES },
25 	{ ERROR_BAD_UNIT, EACCES },
26 	{ ERROR_NOT_READY, EACCES },
27 	{ ERROR_BAD_COMMAND, EACCES },
28 	{ ERROR_CRC, EACCES },
29 	{ ERROR_BAD_LENGTH, EACCES },
30 	{ ERROR_SEEK, EACCES },
31 	{ ERROR_NOT_DOS_DISK, EACCES },
32 	{ ERROR_SECTOR_NOT_FOUND, EACCES },
33 	{ ERROR_OUT_OF_PAPER, EACCES },
34 	{ ERROR_WRITE_FAULT, EACCES },
35 	{ ERROR_READ_FAULT, EACCES },
36 	{ ERROR_GEN_FAILURE, EACCES },
37 	{ ERROR_SHARING_VIOLATION, EACCES },
38 	{ ERROR_LOCK_VIOLATION, EACCES },
39 	{ ERROR_WRONG_DISK, EACCES },
40 	{ ERROR_SHARING_BUFFER_EXCEEDED, EACCES },
41 	{ ERROR_BAD_NETPATH, ENOENT },
42 	{ ERROR_NETWORK_ACCESS_DENIED, EACCES },
43 	{ ERROR_BAD_NET_NAME, ENOENT },
44 	{ ERROR_FILE_EXISTS, EEXIST },
45 	{ ERROR_CANNOT_MAKE, EACCES },
46 	{ ERROR_FAIL_I24, EACCES },
47 	{ ERROR_NO_PROC_SLOTS, EAGAIN },
48 	{ ERROR_DRIVE_LOCKED, EACCES },
49 	{ ERROR_BROKEN_PIPE, EPIPE },
50 	{ ERROR_DISK_FULL, ENOSPC },
51 	{ ERROR_INVALID_TARGET_HANDLE, EBADF },
52 	{ ERROR_WAIT_NO_CHILDREN, ECHILD },
53 	{ ERROR_CHILD_NOT_COMPLETE, ECHILD },
54 	{ ERROR_DIRECT_ACCESS_HANDLE, EBADF },
55 	{ ERROR_SEEK_ON_DEVICE, EACCES },
56 	{ ERROR_DIR_NOT_EMPTY, ENOTEMPTY },
57 	{ ERROR_NOT_LOCKED, EACCES },
58 	{ ERROR_BAD_PATHNAME, ENOENT },
59 	{ ERROR_MAX_THRDS_REACHED, EAGAIN },
60 	{ ERROR_LOCK_FAILED, EACCES },
61 	{ ERROR_ALREADY_EXISTS, EEXIST },
62 	{ ERROR_INVALID_STARTING_CODESEG, ENOEXEC },
63 	{ ERROR_INVALID_STACKSEG, ENOEXEC },
64 	{ ERROR_INVALID_MODULETYPE, ENOEXEC },
65 	{ ERROR_INVALID_EXE_SIGNATURE, ENOEXEC },
66 	{ ERROR_EXE_MARKED_INVALID, ENOEXEC },
67 	{ ERROR_BAD_EXE_FORMAT, ENOEXEC },
68 	{ ERROR_ITERATED_DATA_EXCEEDS_64k, ENOEXEC },
69 	{ ERROR_INVALID_MINALLOCSIZE, ENOEXEC },
70 	{ ERROR_DYNLINK_FROM_INVALID_RING, ENOEXEC },
71 	{ ERROR_IOPL_NOT_ENABLED, ENOEXEC },
72 	{ ERROR_INVALID_SEGDPL, ENOEXEC },
73 	{ ERROR_AUTODATASEG_EXCEEDS_64k, ENOEXEC },
74 	{ ERROR_RING2SEG_MUST_BE_MOVABLE, ENOEXEC },
75 	{ ERROR_RELOC_CHAIN_XEEDS_SEGLIM, ENOEXEC },
76 	{ ERROR_INFLOOP_IN_RELOC_CHAIN, ENOEXEC },
77 	{ ERROR_FILENAME_EXCED_RANGE, ENOENT },
78 	{ ERROR_NESTING_NOT_ALLOWED, EAGAIN },
79 	{ ERROR_NOT_ENOUGH_QUOTA, ENOMEM }
80 };
81 
82 #endif /* doserrmap_h */
83