X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel-headers.c;h=a529fcbd8113521fdcb14b2c0e5e2453afaa9b8c;hb=007bcd5aac2f3a1e714563bd39f7a2db2d0bf7c2;hp=43ce773f6a3bbd6d2312ffa68b4622ae8c100ade;hpb=8a632c14b592472873cfb214239c9387bc1a1ced;p=sbcl.git diff --git a/tools-for-build/grovel-headers.c b/tools-for-build/grovel-headers.c index 43ce773..a529fcb 100644 --- a/tools-for-build/grovel-headers.c +++ b/tools-for-build/grovel-headers.c @@ -47,6 +47,10 @@ #include "genesis/config.h" +#ifdef LISP_FEATURE_HPUX +#include /* for TIOCGPGRP */ +#endif + #include "wrap.h" #define DEFTYPE(lispname,cname) { cname foo; \ @@ -208,6 +212,8 @@ main(int argc, char *argv[]) defconstant("enoent", ENOENT); defconstant("eexist", EEXIST); + defconstant("eintr", EINTR); + defconstant("eagain", EAGAIN); defconstant("s-ifmt", S_IFMT); defconstant("s-ifdir", S_IFDIR); @@ -304,8 +310,10 @@ main(int argc, char *argv[]) printf("\n"); printf(";;; error numbers\n"); + deferrno("ebadf", EBADF); deferrno("enoent", ENOENT); deferrno("eintr", EINTR); + deferrno("eagain", EAGAIN); deferrno("eio", EIO); deferrno("eexist", EEXIST); deferrno("eloop", ELOOP); @@ -319,11 +327,10 @@ main(int argc, char *argv[]) printf("\n"); printf(";;; various ioctl(2) flags\n"); - defconstant("tiocnotty", TIOCNOTTY); - defconstant("tiocgwinsz", TIOCGWINSZ); - defconstant("tiocswinsz", TIOCSWINSZ); defconstant("tiocgpgrp", TIOCGPGRP); defconstant("tiocspgrp", TIOCSPGRP); + defconstant("tiocgwinsz", TIOCGWINSZ); + defconstant("tiocswinsz", TIOCSWINSZ); /* KLUDGE: These are referenced by old CMUCL-derived code, but * Linux doesn't define them. * @@ -395,7 +402,7 @@ main(int argc, char *argv[]) defsignal("sigwaiting", SIGWAITING); #endif defsignal("sigwinch", SIGWINCH); -#ifndef SIGXCPU +#ifdef SIGXCPU defsignal("sigxcpu", SIGXCPU); #endif #ifdef SIGXFSZ @@ -424,7 +431,6 @@ main(int argc, char *argv[]) #else defconstant("fpe-fltsub", -1); #endif - #endif // !WIN32 return 0; }