Signal floating-point-overflow from bignum-to-float.
[sbcl.git] / tools-for-build / grovel-headers-win32.h
blob7d79e953d09f377bc5909ca7029a9419100970ef
2 printf("(in-package \"SB!WIN32\")\n\n");
4 defconstant ("input-record-size", sizeof (INPUT_RECORD));
6 defconstant ("MAX_PATH", MAX_PATH);
8 printf(";;; CSIDL\n");
10 defconstant ("CSIDL_DESKTOP", CSIDL_DESKTOP);
11 defconstant ("CSIDL_INTERNET", CSIDL_INTERNET);
12 defconstant ("CSIDL_PROGRAMS", CSIDL_PROGRAMS);
13 defconstant ("CSIDL_CONTROLS", CSIDL_CONTROLS);
14 defconstant ("CSIDL_PRINTERS", CSIDL_PRINTERS);
15 defconstant ("CSIDL_PERSONAL", CSIDL_PERSONAL);
16 defconstant ("CSIDL_FAVORITES", CSIDL_FAVORITES);
17 defconstant ("CSIDL_STARTUP", CSIDL_STARTUP);
18 defconstant ("CSIDL_RECENT", CSIDL_RECENT);
19 defconstant ("CSIDL_SENDTO", CSIDL_SENDTO);
20 defconstant ("CSIDL_BITBUCKET", CSIDL_BITBUCKET);
21 defconstant ("CSIDL_STARTMENU", CSIDL_STARTMENU);
22 defconstant ("CSIDL_DESKTOPDIRECTORY", CSIDL_DESKTOPDIRECTORY);
23 defconstant ("CSIDL_DRIVES", CSIDL_DRIVES);
24 defconstant ("CSIDL_NETWORK", CSIDL_NETWORK);
25 defconstant ("CSIDL_NETHOOD", CSIDL_NETHOOD);
26 defconstant ("CSIDL_FONTS", CSIDL_FONTS);
27 defconstant ("CSIDL_TEMPLATES", CSIDL_TEMPLATES);
28 defconstant ("CSIDL_COMMON_STARTMENU", CSIDL_COMMON_STARTMENU);
29 defconstant ("CSIDL_COMMON_PROGRAMS", CSIDL_COMMON_PROGRAMS);
30 defconstant ("CSIDL_COMMON_STARTUP", CSIDL_COMMON_STARTUP);
31 defconstant ("CSIDL_COMMON_DESKTOPDIRECTORY", CSIDL_COMMON_DESKTOPDIRECTORY);
32 defconstant ("CSIDL_APPDATA", CSIDL_APPDATA);
33 defconstant ("CSIDL_PRINTHOOD", CSIDL_PRINTHOOD);
34 defconstant ("CSIDL_LOCAL_APPDATA", CSIDL_LOCAL_APPDATA);
35 defconstant ("CSIDL_ALTSTARTUP", CSIDL_ALTSTARTUP);
36 defconstant ("CSIDL_COMMON_ALTSTARTUP", CSIDL_COMMON_ALTSTARTUP);
37 defconstant ("CSIDL_COMMON_FAVORITES", CSIDL_COMMON_FAVORITES);
38 defconstant ("CSIDL_INTERNET_CACHE", CSIDL_INTERNET_CACHE);
39 defconstant ("CSIDL_COOKIES", CSIDL_COOKIES);
40 defconstant ("CSIDL_HISTORY", CSIDL_HISTORY);
41 defconstant ("CSIDL_COMMON_APPDATA", CSIDL_COMMON_APPDATA);
42 defconstant ("CSIDL_WINDOWS", CSIDL_WINDOWS);
43 defconstant ("CSIDL_SYSTEM", CSIDL_SYSTEM);
44 defconstant ("CSIDL_PROGRAM_FILES", CSIDL_PROGRAM_FILES);
45 defconstant ("CSIDL_MYPICTURES", CSIDL_MYPICTURES);
46 defconstant ("CSIDL_PROFILE", CSIDL_PROFILE);
47 defconstant ("CSIDL_SYSTEMX86", CSIDL_SYSTEMX86);
48 defconstant ("CSIDL_PROGRAM_FILESX86", CSIDL_PROGRAM_FILESX86);
49 defconstant ("CSIDL_PROGRAM_FILES_COMMON", CSIDL_PROGRAM_FILES_COMMON);
50 defconstant ("CSIDL_PROGRAM_FILES_COMMONX86", CSIDL_PROGRAM_FILES_COMMONX86);
51 defconstant ("CSIDL_COMMON_TEMPLATES", CSIDL_COMMON_TEMPLATES);
52 defconstant ("CSIDL_COMMON_DOCUMENTS", CSIDL_COMMON_DOCUMENTS);
53 defconstant ("CSIDL_COMMON_ADMINTOOLS", CSIDL_COMMON_ADMINTOOLS);
54 defconstant ("CSIDL_ADMINTOOLS", CSIDL_ADMINTOOLS);
55 defconstant ("CSIDL_CONNECTIONS", CSIDL_CONNECTIONS);
56 defconstant ("CSIDL_COMMON_MUSIC", CSIDL_COMMON_MUSIC);
57 defconstant ("CSIDL_COMMON_PICTURES", CSIDL_COMMON_PICTURES);
58 defconstant ("CSIDL_COMMON_VIDEO", CSIDL_COMMON_VIDEO);
59 defconstant ("CSIDL_RESOURCES", CSIDL_RESOURCES);
60 defconstant ("CSIDL_RESOURCES_LOCALIZED", CSIDL_RESOURCES_LOCALIZED);
61 defconstant ("CSIDL_COMMON_OEM_LINKS", CSIDL_COMMON_OEM_LINKS);
62 defconstant ("CSIDL_CDBURN_AREA", CSIDL_CDBURN_AREA);
63 defconstant ("CSIDL_COMPUTERSNEARME", CSIDL_COMPUTERSNEARME);
64 defconstant ("CSIDL_FLAG_DONT_VERIFY", CSIDL_FLAG_DONT_VERIFY);
65 defconstant ("CSIDL_FLAG_CREATE", CSIDL_FLAG_CREATE);
66 defconstant ("CSIDL_FLAG_MASK", CSIDL_FLAG_MASK);
68 printf(";;; Exceptions\n");
69 defconstant("+exception-access-violation+", EXCEPTION_ACCESS_VIOLATION);
70 defconstant("+exception-array-bounds-exceeded+", EXCEPTION_ARRAY_BOUNDS_EXCEEDED);
71 defconstant("+exception-breakpoint+", EXCEPTION_BREAKPOINT);
72 defconstant("+exception-datatype-misalignment+", EXCEPTION_DATATYPE_MISALIGNMENT);
73 defconstant("+exception-flt-denormal-operand+", EXCEPTION_FLT_DENORMAL_OPERAND);
74 defconstant("+exception-flt-divide-by-zero+", EXCEPTION_FLT_DIVIDE_BY_ZERO);
75 defconstant("+exception-flt-inexact-result+", EXCEPTION_FLT_INEXACT_RESULT);
76 defconstant("+exception-flt-invalid-operation+", EXCEPTION_FLT_INVALID_OPERATION);
77 defconstant("+exception-flt-overflow+", EXCEPTION_FLT_OVERFLOW);
78 defconstant("+exception-flt-stack-check+", EXCEPTION_FLT_STACK_CHECK);
79 defconstant("+exception-flt-underflow+", EXCEPTION_FLT_UNDERFLOW);
80 defconstant("+exception-illegal-instruction+", EXCEPTION_ILLEGAL_INSTRUCTION);
81 defconstant("+exception-in-page-error+", EXCEPTION_IN_PAGE_ERROR);
82 defconstant("+exception-int-divide-by-zero+", EXCEPTION_INT_DIVIDE_BY_ZERO);
83 defconstant("+exception-int-overflow+", EXCEPTION_INT_OVERFLOW);
84 defconstant("+exception-invalid-disposition+", EXCEPTION_INVALID_DISPOSITION);
85 defconstant("+exception-noncontinuable-exception+", EXCEPTION_NONCONTINUABLE_EXCEPTION);
86 defconstant("+exception-priv-instruction+", EXCEPTION_PRIV_INSTRUCTION);
87 defconstant("+exception-single-step+", EXCEPTION_SINGLE_STEP);
88 defconstant("+exception-stack-overflow+", EXCEPTION_STACK_OVERFLOW);
89 defconstant("+dbg-printexception-c+", DBG_PRINTEXCEPTION_C);
91 defconstant("+exception-maximum-parameters+", EXCEPTION_MAXIMUM_PARAMETERS);
93 printf(";;; FormatMessage\n");
95 defconstant("format-message-allocate-buffer", FORMAT_MESSAGE_ALLOCATE_BUFFER);
96 defconstant("format-message-from-system", FORMAT_MESSAGE_FROM_SYSTEM);
97 defconstant("format-message-max-width-mask", FORMAT_MESSAGE_MAX_WIDTH_MASK);
98 defconstant("format-message-ignore-inserts", FORMAT_MESSAGE_IGNORE_INSERTS);
100 printf(";;; Errors\n");
102 printf(";;; Errors\n");
104 defconstant("ERROR_ENVVAR_NOT_FOUND", ERROR_ENVVAR_NOT_FOUND);
105 defconstant("ERROR_ALREADY_EXISTS", ERROR_ALREADY_EXISTS);
106 defconstant("ERROR_FILE_EXISTS", ERROR_FILE_EXISTS);
107 defconstant("ERROR_FILE_NOT_FOUND", ERROR_FILE_NOT_FOUND);
108 defconstant("ERROR_ACCESS_DENIED", ERROR_ACCESS_DENIED);
110 defconstant("error-io-pending", ERROR_IO_PENDING);
111 defconstant("error-broken-pipe", ERROR_BROKEN_PIPE);
112 defconstant("error-handle-eof", ERROR_HANDLE_EOF);
115 printf(";;; GetComputerName\n");
117 defconstant ("MAX_COMPUTERNAME_LENGTH", MAX_COMPUTERNAME_LENGTH);
118 defconstant ("ERROR_BUFFER_OVERFLOW", ERROR_BUFFER_OVERFLOW);
120 printf(";;; Windows Types\n");
121 DEFTYPE("int-ptr", INT_PTR);
122 DEFTYPE("dword", DWORD);
123 DEFTYPE("bool", BOOL);
124 DEFTYPE("uint", UINT);
125 DEFTYPE("ulong", ULONG);
127 printf(";;; File Desired Access\n");
128 defconstant ("FILE_GENERIC_READ", FILE_GENERIC_READ);
129 defconstant ("FILE_GENERIC_WRITE", FILE_GENERIC_WRITE);
130 defconstant ("FILE_GENERIC_EXECUTE", FILE_GENERIC_EXECUTE);
131 defconstant ("FILE_SHARE_READ", FILE_SHARE_READ);
132 defconstant ("FILE_SHARE_WRITE", FILE_SHARE_WRITE);
133 defconstant ("FILE_SHARE_DELETE", FILE_SHARE_DELETE);
135 printf(";;; File Creation Dispositions\n");
136 defconstant("CREATE_NEW", CREATE_NEW);
137 defconstant("CREATE_ALWAYS", CREATE_ALWAYS);
138 defconstant("OPEN_EXISTING", OPEN_EXISTING);
139 defconstant("OPEN_ALWAYS", OPEN_ALWAYS);
140 defconstant("TRUNCATE_EXISTING", TRUNCATE_EXISTING);
142 printf(";;; Desired Access\n");
143 defconstant("ACCESS_GENERIC_READ", GENERIC_READ);
144 defconstant("ACCESS_GENERIC_WRITE", GENERIC_WRITE);
145 defconstant("ACCESS_GENERIC_EXECUTE", GENERIC_EXECUTE);
146 defconstant("ACCESS_GENERIC_ALL", GENERIC_ALL);
147 defconstant("ACCESS_FILE_APPEND_DATA", FILE_APPEND_DATA);
148 defconstant("ACCESS_DELETE", DELETE);
150 printf(";;; Handle Information Flags\n");
151 defconstant("HANDLE_FLAG_INHERIT", HANDLE_FLAG_INHERIT);
152 defconstant("HANDLE_FLAG_PROTECT_FROM_CLOSE", HANDLE_FLAG_PROTECT_FROM_CLOSE);
154 printf(";;; Standard Handle Keys\n");
155 defconstant("STD_INPUT_HANDLE", STD_INPUT_HANDLE);
156 defconstant("STD_OUTPUT_HANDLE", STD_OUTPUT_HANDLE);
157 defconstant("STD_ERROR_HANDLE", STD_ERROR_HANDLE);
159 printf(";;; WinCrypt\n");
160 defconstant("crypt-verifycontext", CRYPT_VERIFYCONTEXT);
161 defconstant("crypt-silent", CRYPT_SILENT);
162 defconstant("prov-rsa-full", PROV_RSA_FULL);
164 defconstant("pipe-access-duplex", PIPE_ACCESS_DUPLEX);
165 defconstant("pipe-access-inbound", PIPE_ACCESS_INBOUND);
166 defconstant("pipe-access-outbound", PIPE_ACCESS_OUTBOUND);
167 defconstant("pipe-type-byte", PIPE_TYPE_BYTE);
169 defconstant("wait-abandoned", WAIT_ABANDONED);
170 defconstant("wait-object-0", WAIT_OBJECT_0);
171 defconstant("wait-timeout", WAIT_TIMEOUT);
172 defconstant("wait-failed", WAIT_FAILED);
174 defconstant("still-active", STILL_ACTIVE);
176 /* FIXME: SB-UNIX and SB-WIN32 really need to be untangled. */
177 printf("(in-package \"SB!UNIX\")\n\n");
178 printf(";;; Unix-like constants and types on Windows\n");
179 defconstant("o_rdonly", _O_RDONLY);
180 defconstant("o_wronly", _O_WRONLY);
181 defconstant("o_rdwr", _O_RDWR);
182 defconstant("o_creat", _O_CREAT);
183 defconstant("o_trunc", _O_TRUNC);
184 defconstant("o_append", _O_APPEND);
185 defconstant("o_excl", _O_EXCL);
186 defconstant("o_binary", _O_BINARY);
187 defconstant("o_noinherit", _O_NOINHERIT);
189 defconstant("enoent", ENOENT);
190 defconstant("eexist", EEXIST);
191 defconstant("eintr", EINTR);
192 defconstant("eagain", EAGAIN);
193 defconstant("ebadf", EBADF);
195 defconstant("s-ifmt", S_IFMT);
196 defconstant("s-ifdir", S_IFDIR);
197 defconstant("s-ifreg", S_IFREG);
199 DEFTYPE("ino-t", ino_t);
200 DEFTYPE("time-t", time_t);
201 DEFTYPE("off-t", off_t);
202 DEFTYPE("size-t", size_t);
203 DEFTYPE("ssize-t", size_t);
204 DEFTYPE("mode-t", mode_t);
206 DEFTYPE("wst-dev-t", wst_dev_t);
207 DEFTYPE("wst-ino-t", wst_ino_t);
208 DEFTYPE("wst-off-t", wst_off_t);
209 DEFTYPE("wst-blksize-t", wst_blksize_t);
210 DEFTYPE("wst-blkcnt-t", wst_blkcnt_t);
211 DEFTYPE("wst-nlink-t", wst_nlink_t);
212 DEFTYPE("wst-uid-t", wst_uid_t);
213 DEFTYPE("wst-gid-t", wst_gid_t);
215 /* KLUDGE */
216 defconstant("fd-setsize", 1024);
217 printf("\n");