summaryrefslogtreecommitdiff
path: root/bin/csh
AgeCommit message (Collapse)Author
2015-10-18With TIOCSTI supported in pledge "tty proc", csh is good enough to runTheo de Raadt
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...)
2015-09-29Score a hat trick in code cleanup: #ifdef pdp11, /* confuse lint */,Philip Guenther
and recursive formatting of integers. Just use snprintf() and a hammer. ok beck@ deraadt@ miod@
2015-09-27lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */Philip Guenther
(others require more care)
2015-06-17stray char jumped inTheo de Raadt
2015-06-17delete completely bogus (floating? was there an old variable declTheo de Raadt
in the past?) comment about FILEC noted by Peter Brottveit Bock
2015-06-17remove -DFILEC; code does not compile for the -UFILEC case, and anyways,Theo de Raadt
who wants csh without FILEC?? from Peter Brottveit Bock, but redone using unifdef
2015-06-03better description of internal copyn() functionTheo de Raadt
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
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@
2015-02-08delete tons more castsTed Unangst
2015-02-08remove ptr_t typedef. void * is good enough for csh.Ted Unangst
2015-02-08delete many more ptr_t castsTed Unangst
2015-02-08delete lots of unnecessary ptr_t casts, and drop a little NULL in as wellTed Unangst
2015-02-08it's safe to call free with nullTed Unangst
2015-01-19remove #ifndef #define blocks trying to handle lack of BUFSIZTheo de Raadt
ok millert
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>Ingo Schwarze
2014-12-09put back some information what the character classes actually mean;Ingo Schwarze
while here, remove the lie that regex(3) character classes would depend on the locale; ok jmc@
2014-12-09no more ctype(3);Jason McIntyre
2014-10-17no need for realloc() front ends anymoreTheo de Raadt
2014-10-16Use reallocarray() and remove a few archaic memory allocation practices.Theo de Raadt
ok deraadt
2014-10-16Kill the alloc command, which tried to measure behaviour based on sbrk.Theo de Raadt
Discussed with guenther.
2014-10-13remove unused variableCharles Longeau
ok guenther@
2014-07-14Instead of using a variable format string to change the field width,Philip Guenther
use %*s and just put the width in a variable
2014-07-12If a constant string needs a name, use a static const array insteadPhilip Guenther
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.
2014-07-11correct readlink termination. from Doug HoganTed Unangst
2014-01-21obvious .Pa fixes; found with mandocdb(8)Ingo Schwarze
2013-10-20catch up with elf(5)/stab(5) removal;Jason McIntyre
ok miod
2013-10-19fix a few obvious .Ar markup errors (unfortunately, there are many more)Ingo Schwarze
found while working on mandoc apropos
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-07-13Remove no longer needed vax CFLAGS workarounds.Miod Vallat
2013-04-16handle larger time_t typesTheo de Raadt
2013-03-28Don't die with SIGFPE on INT_MIN / -1 or % -1. Instead make INT_MIN /Nicholas Marriott
-1 == INT_MIN and % -1 == 0. ok matthew deraadt
2012-12-04remove some unnecessary sys/param.h inclusionsTheo de Raadt
2012-01-15Document what remains of the 2BSD heritage.Ingo Schwarze
All facts found on the CSRG CD 1 in the 2bsd directory. Feedback and ok jmc@, ok sobrado@. Note the large number of 3BSD -> 2BSD changes. Kirk McKusick asked Cynthia Livingston (cael@, of USENIX, who converted most manuals from man(7) to mdoc(7) for the 4.3BSD-Net/2 release and added lots of historical information around that time) what happened in this respect, and she answered that she often wrote "appeared in 3BSD" when she was unsure of when a utility was added. Thanks to Kirk and Cynthia for that clarification.
2011-11-06union wait is dead, ancient history; stop using itPhilip Guenthe
ok deraadt@
2011-09-03make -column lists pretty again;Jason McIntyre
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
2011-05-02no need to escape `|'; as discussed with schwartzeJason McIntyre
2010-12-23spelling fixes; from Daniel DickmanJason McIntyre
2010-09-23remove reference to msgs(1)Theo de Raadt
2010-08-12Use symbolic names for the file descriptors rather than numeric values.Kevin Lo
Some from damien@, millert@ ok phessler@, millert@
2010-07-22remove some groff \s escapes, which we do not support;Jason McIntyre
2010-07-20exp2() is a function in libm, so rename the csh one..Theo de Raadt
2010-07-15When the first argument or arguments of a macro are opening delimitersIngo Schwarze
(parentheses and/or square brackets), both modern groff and mandoc first output those leading delimiters as plain text, then start the macro scope after these opening delimiters. This is similar to printing trailing punctuation and trailing closing delimiters on a macro line outside and after the macro scope. For example, ".Sq ( text )" is "(`text')", not "`(text)'". Thus, we now need to quote leading opening delimiters when we want them inside the macro scope. These are the cases in src/bin. "makes sense" jmc@
2010-01-10remove references to docs we no longer install;Jason McIntyre
2010-01-04Stop installing many of the incredibly dated and un-authoritative share/docTheo de Raadt
files. If any information found in these documents is worthwhile and you miss it, please make the time to work it into the manual pages (which people actually do read). ok guenther
2009-11-11incorrect range check, > vs >=, on the error list, spotted by parfaitTheo de Raadt
ok otto jsg
2009-10-28some includes got lost in the previous commit;Ingo Schwarze
"go ahead, put it back" deraadt@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-07-22The last paragraphs of the "Built-in commands" section are properlyPhilip Guenthe
part of the '@' command and not general section paragraphs and therefore should be indented with the others. ok jmc@