Subject: [PATCH 3/4] Add Hurd signal and error definitions

From: David Michael <[email-masked]>
Date: Wed, 22 Jul 2015 12:52:27 -0400

* libguile/cpp-E.syms (EAUTH, EBACKGROUND): New definitions.
  (EBADRPC, ED, EDIED, EFTYPE, EGRATUITOUS, EGREGIOUS): Likewise.
  (EIEIO, ENEEDAUTH, EPROCLIM, EPROCUNAVAIL): Likewise.
  (EPROGMISMATCH, EPROGUNAVAIL, ERPCMISMATCH): Likewise.
* libguile/cpp-SIG.syms (SIGEMT, SIGEV_MAX_SIZE): Likewise.
  (SIGEV_PAD_SIZE, SIGINFO, SIGLOST): Likewise.
---

This adds all error and signal symbols found on Hurd.  Their comments
follow.

#define	EAUTH           _HURD_ERRNO (80)/* Authentication error */
#define	EBACKGROUND     _HURD_ERRNO (100)/* Inappropriate operation for background process */
#define	EBADRPC         _HURD_ERRNO (72)/* RPC struct is bad */
#define	ED              _HURD_ERRNO (102)/* ? */
#define	EDIED           _HURD_ERRNO (101)/* Translator died */
#define	EFTYPE          _HURD_ERRNO (79)/* Inappropriate file type or format */
#define	EGRATUITOUS     _HURD_ERRNO (105)/* Gratuitous error */
#define	EGREGIOUS       _HURD_ERRNO (103)/* You really blew it this time */
#define	EIEIO           _HURD_ERRNO (104)/* Computer bought the farm */
#define	ENEEDAUTH       _HURD_ERRNO (81)/* Need authenticator */
#define	EPROCLIM        _HURD_ERRNO (67)/* Too many processes */
#define	EPROCUNAVAIL    _HURD_ERRNO (76)/* RPC bad procedure for program */
#define	EPROGMISMATCH   _HURD_ERRNO (75)/* RPC program version wrong */
#define	EPROGUNAVAIL    _HURD_ERRNO (74)/* RPC program not available */
#define	ERPCMISMATCH    _HURD_ERRNO (73)/* RPC version wrong */

#define	SIGEMT		7	/* EMT trap (4.2 BSD).  */
#define SIGINFO		29	/* Information request (4.4 BSD).  */
#define SIGLOST		32	/* Resource lost (Sun); server died (GNU).  */

/* Structure to transport application-defined values with signals.  */
# define SIGEV_MAX_SIZE	64
# define SIGEV_PAD_SIZE	((SIGEV_MAX_SIZE / sizeof (int)) - 3)

 libguile/cpp-E.syms   | 15 +++++++++++++++
 libguile/cpp-SIG.syms |  5 +++++
 2 files changed, 20 insertions(+)

diff --git a/libguile/cpp-E.syms b/libguile/cpp-E.syms
index 3d3b0c3..53302fe 100644
--- a/libguile/cpp-E.syms
+++ b/libguile/cpp-E.syms
@@ -6,11 +6,14 @@ EADV
 EAFNOSUPPORT
 EAGAIN
 EALREADY
+EAUTH
+EBACKGROUND
 EBADE
 EBADF
 EBADFD
 EBADMSG
 EBADR
+EBADRPC
 EBADRQC
 EBADSLT
 EBFONT
@@ -22,19 +25,25 @@ ECOMM
 ECONNABORTED
 ECONNREFUSED
 ECONNRESET
+ED
 EDEADLK
 EDEADLOCK
 EDESTADDRREQ
+EDIED
 EDOM
 EDOTDOT
 EDQUOT
 EEXIST
 EFAULT
 EFBIG
+EFTYPE
+EGRATUITOUS
+EGREGIOUS
 EHOSTDOWN
 EHOSTUNREACH
 EHWPOISON
 EIDRM
+EIEIO
 EILSEQ
 EINPROGRESS
 EINTR
@@ -64,6 +73,7 @@ EMSGSIZE
 EMULTIHOP
 ENAMETOOLONG
 ENAVAIL
+ENEEDAUTH
 ENETDOWN
 ENETRESET
 ENETUNREACH
@@ -105,6 +115,10 @@ EOWNERDEAD
 EPERM
 EPFNOSUPPORT
 EPIPE
+EPROCLIM
+EPROCUNAVAIL
+EPROGMISMATCH
+EPROGUNAVAIL
 EPROTO
 EPROTONOSUPPORT
 EPROTOTYPE
@@ -115,6 +129,7 @@ EREMOTEIO
 ERESTART
 ERFKILL
 EROFS
+ERPCMISMATCH
 ESHUTDOWN
 ESOCKTNOSUPPORT
 ESPIPE
diff --git a/libguile/cpp-SIG.syms b/libguile/cpp-SIG.syms
index bc57376..2a619ce 100644
--- a/libguile/cpp-SIG.syms
+++ b/libguile/cpp-SIG.syms
@@ -5,17 +5,22 @@ SIGBUS
 SIGCHLD
 SIGCLD
 SIGCONT
+SIGEMT
+SIGEV_MAX_SIZE
 SIGEV_NONE
+SIGEV_PAD_SIZE
 SIGEV_SIGNAL
 SIGEV_THREAD
 SIGEV_THREAD_ID
 SIGFPE
 SIGHUP
 SIGILL
+SIGINFO
 SIGINT
 SIGIO
 SIGIOT
 SIGKILL
+SIGLOST
 SIGPIPE
 SIGPOLL
 SIGPROF
-- 
2.1.0