summaryrefslogtreecommitdiffstats
path: root/bin/csh (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't call sysconf() in a loop conditional when the loop won't affect itguenther2016-08-141-2/+3
| | | | ok natano@ tedu@
* Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL).krw2016-04-161-2/+2
| | | | | | No functional change. ok millert@
* Use fcntl(fd, F_SETFL, flags) to clear O_NONBLOCK instead ofmillert2016-03-201-4/+5
| | | | ioctl(fd, FIONBIO, ...). OK krw@
* Turn off the close-on-exec bit with fcntl() instead of ioctl().krw2016-03-192-7/+5
| | | | | | Remove some now useless "#include <ioctl.h>" lines. Inspired by & ok millert@
* Replace ioctl(fd, FIOCLEX) with fcntl(fd, F_SETFD, FD_CLOEXEC)millert2016-03-181-8/+8
| | | | No functional change. "I like the idea" from guenther@
* Replace handrolled xfree() function by directly using free(3)mestre2015-12-2619-153/+145
| | | | OK mmcc@
* Remove a needless allocation cast. No binary change.mmcc2015-12-221-2/+2
|
* exit() after perror() for pledge failure. Perhaps this got introducedderaadt2015-11-111-2/+4
| | | | | as a test idiom, either when pledge was young or during the transition to strings.... dunno
* unifdef _PATH_*naddy2015-10-283-19/+3
|
* miscellaneous cruft:naddy2015-10-268-97/+10
| | | | | | | * remove lint * unifdef S_IFLNK, S_ISFIFO, S_ISLNK, S_ISSOCK, O_APPEND * remove 0, NOTUSED, notdef -- untouched since original import * remove IIASA
* remove the profiling and debugging ifdefs; ok zhuk@naddy2015-10-266-131/+7
|
* document the -p and -l file enquiries and explicitly do not document -snaddy2015-10-261-2/+6
| | | | with/ok schwarze@
* Remove the #define Strfoo() s_strfoo() redirection and move everythingnaddy2015-10-263-42/+26
| | | | directly to Strfoo(). Purely mechanical. ok deraadt@
* Clean up cruft made visible by the NLS unifdefing:naddy2015-10-266-142/+9
| | | | | | | | | * remove setlocale() calls * remove write-only variable AsciiOnly * remove now unused string constants STRLANG, STRLC_CTYPE * remove hardcoded support for ISO8859-1 ok millert@
* unifdef BUILTIN (unused), NLS (always set), SHORT_STRINGS (always set)naddy2015-10-2613-221/+15
| | | | and remove a few unused defines; no binary changes; ok tedu@ zhuk@
* setlocale() before pledge()... until we learn morederaadt2015-10-221-5/+6
|
* With TIOCSTI supported in pledge "tty proc", csh is good enough to runderaadt2015-10-181-1/+5
| | | | | | with pledge "stdio rpath wpath cpath fattr getpw proc exec tty". (Note that ksh "emacs mode" is also a abus^Wconsumer of TIOCSTI, but we had let that slide for a week since noone uses it...)
* Score a hat trick in code cleanup: #ifdef pdp11, /* confuse lint */,guenther2015-09-291-38/+7
| | | | | | and recursive formatting of integers. Just use snprintf() and a hammer. ok beck@ deraadt@ miod@
* lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */guenther2015-09-271-2/+1
| | | | (others require more care)
* stray char jumped inderaadt2015-06-171-1/+1
|
* delete completely bogus (floating? was there an old variable declderaadt2015-06-171-2/+1
| | | | | in the past?) comment about FILEC noted by Peter Brottveit Bock
* remove -DFILEC; code does not compile for the -UFILEC case, and anyways,deraadt2015-06-178-35/+9
| | | | | who wants csh without FILEC?? from Peter Brottveit Bock, but redone using unifdef
* better description of internal copyn() functionderaadt2015-06-031-3/+2
|
* Convert many atoi() calls to strtonum(), adding range checks and failurederaadt2015-04-181-6/+14
| | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
* Reduce usage of predefined strings in manpages.bentley2015-02-281-3/+3
| | | | | | | | | | | Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
* delete tons more caststedu2015-02-087-35/+30
|
* remove ptr_t typedef. void * is good enough for csh.tedu2015-02-084-20/+18
|
* delete many more ptr_t caststedu2015-02-089-68/+68
|
* delete lots of unnecessary ptr_t casts, and drop a little NULL in as welltedu2015-02-088-85/+84
|
* it's safe to call free with nulltedu2015-02-081-2/+1
|
* remove #ifndef #define blocks trying to handle lack of BUFSIZderaadt2015-01-191-4/+1
| | | | ok millert
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-166-39/+42
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* remove .Tn; from Jan Stary <hans at stare dot cz>schwarze2015-01-151-14/+6
|
* put back some information what the character classes actually mean;schwarze2014-12-091-1/+5
| | | | | | while here, remove the lie that regex(3) character classes would depend on the locale; ok jmc@
* no more ctype(3);jmc2014-12-091-4/+2
|
* no need for realloc() front ends anymorederaadt2014-10-173-17/+3
|
* Use reallocarray() and remove a few archaic memory allocation practices.deraadt2014-10-1612-75/+68
| | | | ok deraadt
* Kill the alloc command, which tried to measure behaviour based on sbrk.deraadt2014-10-164-43/+5
| | | | Discussed with guenther.
* remove unused variablechl2014-10-131-2/+1
| | | | ok guenther@
* Instead of using a variable format string to change the field width,guenther2014-07-141-8/+7
| | | | use %*s and just put the width in a variable
* If a constant string needs a name, use a static const array insteadguenther2014-07-121-2/+2
| | | | | | of a pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings.
* correct readlink termination. from Doug Hogantedu2014-07-111-2/+2
|
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-11/+11
|
* catch up with elf(5)/stab(5) removal;jmc2013-10-201-3/+2
| | | | ok miod
* fix a few obvious .Ar markup errors (unfortunately, there are many more)schwarze2013-10-191-4/+4
| | | | found while working on mandoc apropos
* Correct format string mismatches turned up by -Wformat=2guenther2013-08-221-6/+7
| | | | suggestions and ok millert@
* Remove no longer needed vax CFLAGS workarounds.miod2013-07-131-6/+1
|
* handle larger time_t typesderaadt2013-04-161-2/+3
|
* Don't die with SIGFPE on INT_MIN / -1 or % -1. Instead make INT_MIN /nicm2013-03-281-4/+13
| | | | | | -1 == INT_MIN and % -1 == 0. ok matthew deraadt
* remove some unnecessary sys/param.h inclusionsderaadt2012-12-042-5/+3
|