* debian/*: added
* linux/syscallent.h: fix typo and add the reserved stream syscalls
* defs.h, file.c, io.c: fix signed/unsigned issues
+ * syscall.c: check for negative u_errors
2001-12-17 Wichert Akkerman <wakkerma@debian.org>
#endif /* LINUX */
default:
tprintf("= -1 ");
- if (u_error < nerrnos && u_error < sys_nerr)
+ if (u_error < 0)
+ tprintf("E??? (errno %ld)", u_error);
+ else if (u_error < nerrnos && u_error < sys_nerr)
tprintf("%s (%s)", errnoent[u_error],
sys_errlist[u_error]);
else if (u_error < nerrnos)