Abort on EBADF, EFAULT. Correctly parse numeric errnos.
[adns] / regress / hcommon.c.m4
index b636a75..b64dbd7 100644 (file)
@@ -181,6 +181,8 @@ void Tvbpollfds(const struct pollfd *fds, int nfds) {
 void Tvberrno(int e) {
   const struct Terrno *te;
 
+  assert(e != EBADF);
+  assert(e != EFAULT);
   for (te= Terrnos; te->n && te->v != e; te++);
   if (te->n) Tvba(te->n);
   else Tvbf("E#%d",e);