master
Add builtin XMODEM send support with ~X, only tested with lrz -X so far.
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
remove unused Pp macro;
Map ucom unit number to cuaU number using the same scheme as MAKEDEV uses.
Add -E to change the escape character, from Artturi Alm.
Once we've set up termios, lines need to be \r\n terminated, and we need to reset termios before exiting. So add custom versions of err(), errx(), warn(), warnx() to handle this.
Include stdint.h for the uint{8,16}_t types. OK nicm@