X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel-headers.c;h=58458b0209207760fbe663051682374d87f88552;hb=f2db6743b1fadeea9e72cb583d857851c87efcd4;hp=a529fcbd8113521fdcb14b2c0e5e2453afaa9b8c;hpb=dcd86042bba514f5dfc39246de9cdbb030648569;p=sbcl.git diff --git a/tools-for-build/grovel-headers.c b/tools-for-build/grovel-headers.c index a529fcb..58458b0 100644 --- a/tools-for-build/grovel-headers.c +++ b/tools-for-build/grovel-headers.c @@ -51,6 +51,11 @@ #include /* for TIOCGPGRP */ #endif +#ifdef LISP_FEATURE_BSD + #include + #include +#endif + #include "wrap.h" #define DEFTYPE(lispname,cname) { cname foo; \ @@ -432,5 +437,18 @@ main(int argc, char *argv[]) defconstant("fpe-fltsub", -1); #endif #endif // !WIN32 + +#ifdef LISP_FEATURE_BSD + printf(";;; sysctl(3) names\n"); + printf("(in-package \"SB!IMPL\")\n\n"); + defconstant("ctl-kern", CTL_KERN); + defconstant("ctl-hw", CTL_HW); + defconstant("ctl-maxname", CTL_MAXNAME); + defconstant("kern-ostype", KERN_OSTYPE); + defconstant("kern-osrelease", KERN_OSRELEASE); + defconstant("hw-model", HW_MODEL); + defconstant("hw-pagesize", HW_PAGESIZE); + printf("\n"); +#endif return 0; }