X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel-headers.c;h=125f884b6cf4afbbf8fd70c197667b607cdc1c01;hb=06cc46735ebc73618995281f26fcce096c1110f6;hp=e7a1b70c4573885a53c07abbfbcefcd4c1fa9593;hpb=12a0ad4e13fd09f7809d0eb9066498c447674fbb;p=sbcl.git diff --git a/tools-for-build/grovel-headers.c b/tools-for-build/grovel-headers.c index e7a1b70..125f884 100644 --- a/tools-for-build/grovel-headers.c +++ b/tools-for-build/grovel-headers.c @@ -191,7 +191,13 @@ main(int argc, char *argv[]) printf(";;; Errors\n"); - defconstant ("ERROR_ENVVAR_NOT_FOUND", ERROR_ENVVAR_NOT_FOUND); + printf(";;; Errors\n"); + + defconstant("ERROR_ENVVAR_NOT_FOUND", ERROR_ENVVAR_NOT_FOUND); + defconstant("ERROR_ALREADY_EXISTS", ERROR_ALREADY_EXISTS); + defconstant("ERROR_FILE_EXISTS", ERROR_FILE_EXISTS); + defconstant("ERROR_FILE_NOT_FOUND", ERROR_FILE_NOT_FOUND); + defconstant("ERROR_ACCESS_DENIED", ERROR_ACCESS_DENIED); printf(";;; GetComputerName\n"); @@ -205,6 +211,39 @@ main(int argc, char *argv[]) DEFTYPE("uint", UINT); DEFTYPE("ulong", ULONG); + printf(";;; File Desired Access\n"); + defconstant ("FILE_GENERIC_READ", FILE_GENERIC_READ); + defconstant ("FILE_GENERIC_WRITE", FILE_GENERIC_WRITE); + defconstant ("FILE_GENERIC_EXECUTE", FILE_GENERIC_EXECUTE); + defconstant ("FILE_SHARE_READ", FILE_SHARE_READ); + defconstant ("FILE_SHARE_WRITE", FILE_SHARE_WRITE); + defconstant ("FILE_SHARE_DELETE", FILE_SHARE_DELETE); + + printf(";;; File Creation Dispositions\n"); + defconstant("CREATE_NEW", CREATE_NEW); + defconstant("CREATE_ALWAYS", CREATE_ALWAYS); + defconstant("OPEN_EXISTING", OPEN_EXISTING); + defconstant("OPEN_ALWAYS", OPEN_ALWAYS); + defconstant("TRUNCATE_EXISTING", TRUNCATE_EXISTING); + + printf(";;; Desired Access\n"); + defconstant("ACCESS_GENERIC_READ", GENERIC_READ); + defconstant("ACCESS_GENERIC_WRITE", GENERIC_WRITE); + defconstant("ACCESS_GENERIC_EXECUTE", GENERIC_EXECUTE); + defconstant("ACCESS_GENERIC_ALL", GENERIC_ALL); + defconstant("ACCESS_FILE_APPEND_DATA", FILE_APPEND_DATA); + defconstant("ACCESS_DELETE", DELETE); + + printf(";;; Handle Information Flags\n"); + defconstant("HANDLE_FLAG_INHERIT", HANDLE_FLAG_INHERIT); + defconstant("HANDLE_FLAG_PROTECT_FROM_CLOSE", HANDLE_FLAG_PROTECT_FROM_CLOSE); + + printf(";;; Standard Handle Keys\n"); + defconstant("STD_INPUT_HANDLE", STD_INPUT_HANDLE); + defconstant("STD_OUTPUT_HANDLE", STD_OUTPUT_HANDLE); + defconstant("STD_ERROR_HANDLE", STD_ERROR_HANDLE); + + /* FIXME: SB-UNIX and SB-WIN32 really need to be untangled. */ printf("(in-package \"SB!UNIX\")\n\n"); printf(";;; Unix-like constants and types on Windows\n"); @@ -216,17 +255,16 @@ main(int argc, char *argv[]) defconstant("o_append", _O_APPEND); defconstant("o_excl", _O_EXCL); defconstant("o_binary", _O_BINARY); + defconstant("o_noinherit", _O_NOINHERIT); defconstant("enoent", ENOENT); defconstant("eexist", EEXIST); defconstant("eintr", EINTR); defconstant("eagain", EAGAIN); + defconstant("ebadf", EBADF); defconstant("s-ifmt", S_IFMT); - defconstant("s-ififo", S_IFIFO); - defconstant("s-ifchr", S_IFCHR); defconstant("s-ifdir", S_IFDIR); - defconstant("s-ifblk", S_IFBLK); defconstant("s-ifreg", S_IFREG); DEFTYPE("ino-t", ino_t); @@ -470,13 +508,16 @@ main(int argc, char *argv[]) printf("\n"); #endif + printf("(in-package \"SB!KERNEL\")\n\n"); #ifdef LISP_FEATURE_GENCGC printf(";;; GENCGC related\n"); - printf("(in-package \"SB!KERNEL\")\n"); DEFTYPE("page-index-t", page_index_t); DEFTYPE("generation-index-t", generation_index_t); printf("\n"); #endif + printf(";;; Our runtime types\n"); + DEFTYPE("os-vm-size-t", os_vm_size_t); + return 0; }