projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.7.5.6:
[sbcl.git]
/
tools-for-build
/
grovel_headers.c
diff --git
a/tools-for-build/grovel_headers.c
b/tools-for-build/grovel_headers.c
index
9025031
..
0d33082
100644
(file)
--- a/
tools-for-build/grovel_headers.c
+++ b/
tools-for-build/grovel_headers.c
@@
-22,11
+22,12
@@
#include <sys/types.h>
#include <sys/times.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/times.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#include <fcntl.h>
#include <unistd.h>
#define DEFTYPE(lispname,cname) { cname foo; \
#include <fcntl.h>
#include <unistd.h>
#define DEFTYPE(lispname,cname) { cname foo; \
- printf("(def-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)
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(
/* 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");
");
printf("(in-package \"SB!UNIX\")\n\n");
@@
-96,5
+97,10
@@
main(int argc, char *argv[])
defconstant("s-ifsock", S_IFSOCK);
printf("\n");
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;
}
return 0;
}