X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel_headers.c;h=0d330824b1535c2ace010f883cbccdbc6f43c82d;hb=3bbbfec26f90bc005c2ff5c8de0ceb0f95f1a52b;hp=4e7afbef50d8c41fe0b4d78c983674d23738e6be;hpb=e33fb894f991b2926d8f3bace9058e4c0b2c3a37;p=sbcl.git diff --git a/tools-for-build/grovel_headers.c b/tools-for-build/grovel_headers.c index 4e7afbe..0d33082 100644 --- a/tools-for-build/grovel_headers.c +++ b/tools-for-build/grovel_headers.c @@ -22,11 +22,12 @@ #include #include #include +#include #include #include #define DEFTYPE(lispname,cname) { cname foo; \ - printf("(define-alien-type "##lispname##" (%s %d))\n", (((foo=-1)<0) ? "sb!alien:signed" : "unsigned"), (8 * (sizeof foo))); } + printf("(define-alien-type " lispname " (%s %d))\n", (((foo=-1)<0) ? "sb!alien:signed" : "unsigned"), (8 * (sizeof foo))); } void defconstant(char* lisp_name, long unix_number) @@ -46,9 +47,9 @@ main(int argc, char *argv[]) /* don't need no steenking hand-editing */ printf( -";;;; This is an automatically generated file, please do not hand-edit it. -;;;; See the program \"grovel_headers.c\". - +";;;; This is an automatically generated file, please do not hand-edit it.\n\ +;;;; See the program \"grovel_headers.c\".\n\ +\n\ "); printf("(in-package \"SB!UNIX\")\n\n"); @@ -96,5 +97,10 @@ main(int argc, char *argv[]) defconstant("s-ifsock", S_IFSOCK); printf("\n"); + printf(";;; for wait3(2) in run-program.lisp\n"); + defconstant("wnohang", WNOHANG); + defconstant("wuntraced", WUNTRACED); + printf("\n"); + return 0; }