#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
+#include <errno.h>
#include "genesis/config.h"
lisp_name, unix_number, unix_number);
}
+#define DEFERRNO(name) defconstant(#name, name)
#define DEFSIGNAL(name) defconstant(#name, name)
int
/* don't need no steenking hand-editing */
printf(
";;;; This is an automatically generated file, please do not hand-edit it.\n\
-;;;; See the program \"grovel_headers.c\".\n\
+;;;; See the program \"grovel-headers.c\".\n\
\n\
");
defconstant("s-ifsock", S_IFSOCK);
printf("\n");
+ printf(";;; error numbers\n");
+ DEFERRNO(ENOENT);
+ DEFERRNO(EINTR);
+ DEFERRNO(EIO);
+ DEFERRNO(EEXIST);
+ DEFERRNO(ESPIPE);
+ DEFERRNO(EWOULDBLOCK);
+ printf("\n");
+
printf(";;; for wait3(2) in run-program.lisp\n");
defconstant("wnohang", WNOHANG);
defconstant("wuntraced", WUNTRACED);
DEFSIGNAL(SIGXCPU);
DEFSIGNAL(SIGXFSZ);
#endif
-#ifdef LISP_FEATURE_SB_THREAD
- /* FIXME OAOOM alert: this information is duplicated in linux-os.h */
- defconstant("sig-dequeue",SIGRTMIN+2);
-#endif
return 0;
}