master
spelling fixes; from Daniel Dickman
remove misc. depend and yacc nits that no longer matter. okay millert@
Restore the xmalloc(), xcalloc(), xreallocarray() and xstrdup() changes. OK deraadt@
Clean up cruft made visible by the NLS unifdefing: * remove setlocale() calls * remove write-only variable AsciiOnly * remove now unused string constants STRLANG, STRLC_CTYPE * remove hardcoded support for ISO8859-1
unifdef BUILTIN (unused), NLS (always set), SHORT_STRINGS (always set) and remove a few unused defines; no binary changes; ok tedu@ zhuk@
Include hostname in shell prompts by default
escape "An" in a %T call, so groff does not flag it as an error;
block SIGHUP in the same places where SIGCHLD is blocked to protect the process lists, because the SIGHUP handler looks at them (and it is very difficult to rewrite the that handler a different way) ok millert
Fix multiple variable definitions to avoid errors with -fno-common.
Delete obsolete /* ARGSUSED */ lint comments.
backout last week of csh diffs. They are disasterously broken, on i386 it becomes entirely unusable.
remove prototypes with no matching function and externs with no var partly checked by millert@
I observed "csh i < file-containing-^T" to hit tenex(), which proceeds to perform tty(4) ioctl operations against a non-tty. That is a pledge violation, you can only do a subset of tty(4) ioctl against a fd which references a tty device. Sidestep this problem if the input descriptor is not a tty ok anton millert
correct indentation; no functional change ok tb@
blkfree() takes no action for NULL pointer so callers can avoid checking.
Kill the alloc command, which tried to measure behaviour based on sbrk. Discussed with guenther.
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.
Fix some minor issues found by coverity.
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Now that we have dup2(), csh can use it instead of close()+dup(). Also, as used here, dup/dup2 will clear the close-on-exec flag, so delete the superfluous fcntl(F_SETFD,0) calls