diff options
Diffstat (limited to 'src/plibc.h')
-rw-r--r-- | src/plibc.h | 47 |
1 files changed, 3 insertions, 44 deletions
diff --git a/src/plibc.h b/src/plibc.h index f91516ba..f06e5c6c 100644 --- a/src/plibc.h +++ b/src/plibc.h | |||
@@ -22,7 +22,7 @@ | |||
22 | * @brief PlibC header | 22 | * @brief PlibC header |
23 | * @attention This file is usually not installed under Unix, | 23 | * @attention This file is usually not installed under Unix, |
24 | * so ship it with your application | 24 | * so ship it with your application |
25 | * @version $Revision: 1.17 $ | 25 | * @version $Revision: 1.19 $ |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #ifndef _PLIBC_H_ | 28 | #ifndef _PLIBC_H_ |
@@ -68,48 +68,6 @@ extern "C" { | |||
68 | #define int32_t long | 68 | #define int32_t long |
69 | 69 | ||
70 | /* Thanks to the Cygwin project */ | 70 | /* Thanks to the Cygwin project */ |
71 | #define EPERM 1 /* Not super-user */ | ||
72 | #define ENOENT 2 /* No such file or directory */ | ||
73 | #define ESRCH 3 /* No such process */ | ||
74 | #define EINTR 4 /* Interrupted system call */ | ||
75 | #define EIO 5 /* I/O error */ | ||
76 | #define ENXIO 6 /* No such device or address */ | ||
77 | #define E2BIG 7 /* Arg list too long */ | ||
78 | #define ENOEXEC 8 /* Exec format error */ | ||
79 | #define EBADF 9 /* Bad file number */ | ||
80 | #define ECHILD 10 /* No children */ | ||
81 | #define EAGAIN 11 /* Resource unavailable or operation would block, try again */ | ||
82 | #define ENOMEM 12 /* Not enough memory */ | ||
83 | #define EACCES 13 /* Permission denied */ | ||
84 | #define EFAULT 14 /* Bad address */ | ||
85 | #define ENOTBLK 15 /* Block device required */ | ||
86 | #define EBUSY 16 /* Mount device busy */ | ||
87 | #define EEXIST 17 /* File exists */ | ||
88 | #define EXDEV 18 /* Cross-device link */ | ||
89 | #define ENODEV 19 /* No such device */ | ||
90 | #define ENOTDIR 20 /* Not a directory */ | ||
91 | #define EISDIR 21 /* Is a directory */ | ||
92 | #define EINVAL 22 /* Invalid argument */ | ||
93 | #define ENFILE 23 /* Too many open files in system */ | ||
94 | #define EMFILE 24 /* Too many open files */ | ||
95 | #define ENOTTY 25 /* Not a typewriter */ | ||
96 | #define ETXTBSY 26 /* Text file busy */ | ||
97 | #define EFBIG 27 /* File too large */ | ||
98 | #define ENOSPC 28 /* No space left on device */ | ||
99 | #define ESPIPE 29 /* Illegal seek */ | ||
100 | #define EROFS 30 /* Read only file system */ | ||
101 | #define EMLINK 31 /* Too many links */ | ||
102 | #define EPIPE 32 /* Broken pipe */ | ||
103 | #define EDOM 33 /* Math arg out of domain of func */ | ||
104 | #define ERANGE 34 /* Math result not representable */ | ||
105 | #define ENOMSG 35 /* No message of desired type */ | ||
106 | #define EIDRM 36 /* Identifier removed */ | ||
107 | #define ECHRNG 37 /* Channel number out of range */ | ||
108 | #define EL2NSYNC 38 /* Level 2 not synchronized */ | ||
109 | #define L3HLT 39 /* Level 3 halted */ | ||
110 | #define EL3RST 40 /* Level 3 reset */ | ||
111 | #define ELNRNG 41 /* Link number out of range */ | ||
112 | #define EUNATCH 42 /* Protocol driver not attached */ | ||
113 | #define ENOCSI 43 /* No CSI structure available */ | 71 | #define ENOCSI 43 /* No CSI structure available */ |
114 | #define EL2HLT 44 /* Level 2 halted */ | 72 | #define EL2HLT 44 /* Level 2 halted */ |
115 | #ifndef EDEADLK | 73 | #ifndef EDEADLK |
@@ -125,7 +83,7 @@ extern "C" { | |||
125 | #define EBADRQC 54 /* Invalid request code */ | 83 | #define EBADRQC 54 /* Invalid request code */ |
126 | #define EBADSLT 55 /* Invalid slot */ | 84 | #define EBADSLT 55 /* Invalid slot */ |
127 | #ifndef EDEADLOCK | 85 | #ifndef EDEADLOCK |
128 | #define EDEADLOCK 56 /* File locking deadlock error */ | 86 | #define EDEADLOCK EDEADLK /* File locking deadlock error */ |
129 | #endif | 87 | #endif |
130 | #define EBFONT 57 /* Bad font file fmt */ | 88 | #define EBFONT 57 /* Bad font file fmt */ |
131 | #define ENOSTR 60 /* Device not a stream */ | 89 | #define ENOSTR 60 /* Device not a stream */ |
@@ -319,6 +277,7 @@ typedef struct | |||
319 | 277 | ||
320 | BOOL _plibc_CreateShortcut(const char *pszSrc, const char *pszDest); | 278 | BOOL _plibc_CreateShortcut(const char *pszSrc, const char *pszDest); |
321 | BOOL _plibc_DereferenceShortcut(char *pszShortcut); | 279 | BOOL _plibc_DereferenceShortcut(char *pszShortcut); |
280 | char *plibc_ChooseDir(char *pszTitle, unsigned long ulFlags); | ||
322 | long QueryRegistry(HKEY hMainKey, char *pszKey, char *pszSubKey, | 281 | long QueryRegistry(HKEY hMainKey, char *pszKey, char *pszSubKey, |
323 | char *pszBuffer, long *pdLength); | 282 | char *pszBuffer, long *pdLength); |
324 | 283 | ||