Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 1 | -3/+3 | |
| | | | | | | 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. | ||||
* | zap trailing whitespace; | 2019-03-28 | 1 | -3/+3 | |
| | |||||
* | Remove/simplify historic shell lesson; fix sentence fragment. ok deraadt@ | 2019-02-15 | 1 | -15/+6 | |
| | |||||
* | Add & update author credits for Mary Ann Horton. | 2018-07-13 | 1 | -3/+3 | |
| | | | | | | | | Add credits for leave(1) and w(1); update credit for script(1). Supported by the Spinellis repo and CSRG SCCS logs. ok brynet millert jca jmc schwarze | ||||
* | add new '-c' option which runs a command instead of an interactive shell | 2018-01-21 | 2 | -14/+36 | |
| | | | | | from Paul de Weerd ok ian@ job@; manpage bits are ok jmc@ | ||||
* | bluhm discovered "script < /dev/null" attempts tty operations in violation | 2017-04-12 | 1 | -9/+16 | |
| | | | | | of pledge. We can wrap isatty() around those codepaths. ok bluhm beck | ||||
* | add "proc" to pledge for script(1) | 2015-10-20 | 1 | -3/+3 | |
| | | | | | | it needs to "forward" SIGWINCH to subprocesses. ok deraadt@ | ||||
* | Change all tame callers to namechange to pledge(2). | 2015-10-09 | 1 | -5/+5 | |
| | |||||
* | move from tame "ioctl" to tame "tty", which provides a better fit for | 2015-10-07 | 1 | -2/+2 | |
| | | | | | this program which uses tcgetattr(). the tcsetattr() calls are outside the tame regions. | ||||
* | Repair tame() error check to be == -1 | 2015-10-04 | 1 | -2/+2 | |
| | |||||
* | script is two processes. the main io-loop process can be locked down with | 2015-10-03 | 1 | -1/+7 | |
| | | | | | | | tame "stdio" since all it does is move data back and forth, while the master process needs "stdio ioctl" to use TCSAFLUSH at the very end. TCSAFLUSH is included in the kernel's rather restrictive ioctl feature lists made available with the "ioctl" ability. | ||||
* | SIGCHLD handler was established before forking into two processes. | 2015-07-19 | 1 | -4/+11 | |
| | | | | | As a result it also ran in the child (incorrect). ok miod | ||||
* | tzfile.h is an internal header that should never have been installed. | 2015-03-15 | 1 | -3/+2 | |
| | | | | | | | | | What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@ | ||||
* | Document what remains of the 2BSD heritage. | 2012-01-15 | 1 | -4/+10 | |
| | | | | | | | | | | | | | 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. | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -14/+1 | |
| | | | | | | | 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 | ||||
* | convert to new .Dd format; | 2007-05-31 | 1 | -2/+2 | |
| | |||||
* | in the write codepaths, errors other than EAGAIN are fatal to the loop; ok otto | 2005-12-12 | 1 | -2/+6 | |
| | |||||
* | new sentence, new line; | 2005-06-16 | 1 | -2/+3 | |
| | |||||
* | Remove old cruft, ok millert@ jmc@ | 2005-06-16 | 1 | -6/+1 | |
| | |||||
* | use STDERR_FILENO; ok cloder | 2005-04-11 | 1 | -3/+3 | |
| | |||||
* | Block SIGALRM during write--we only want it to interrupt read(). | 2004-12-19 | 1 | -2/+7 | |
| | | | | OK deraadt@ | ||||
* | use err/warn and __progname | 2004-10-10 | 1 | -8/+9 | |
| | |||||
* | ARGSUSED before signal handler with unused signo | 2004-09-14 | 1 | -4/+8 | |
| | |||||
* | mostly ansi cleanup; pval ok | 2003-06-10 | 1 | -16/+10 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 2 | -13/+5 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -9/+9 | |
| | |||||
* | After a simplistic rewrite, signal flags were not being noticed until a | 2001-11-18 | 1 | -48/+104 | |
| | | | | | | | succesfull read operation. To avoid this, we must use SA_RESTART, and rewrite most of the guts to handle interrupted read, write, etc, even being careful to check what library routines are called.... input from millert, markus, and espie | ||||
* | correct type on last arg to execl(); nordin@cse.ogi.edu | 2001-07-09 | 1 | -3/+3 | |
| | |||||
* | Remove completely redundant introductory sentences in ENVIRONMENT sections. | 2001-05-01 | 1 | -3/+1 | |
| | |||||
* | comment on a real nasty race | 2001-01-11 | 1 | -2/+3 | |
| | |||||
* | warnx?/errx? paranoia (use "%s" not a bare string unless it is a | 2000-06-30 | 1 | -3/+3 | |
| | | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales). | ||||
* | Propagate window size changes to slave. | 2000-04-16 | 1 | -2/+21 | |
| | |||||
* | Trailing whitespace begone! | 2000-04-12 | 1 | -4/+4 | |
| | |||||
* | not changes in script | 2000-03-23 | 1 | -1/+6 | |
| | |||||
* | Make script give correct return values; adapted from FreeBSD | 2000-03-22 | 1 | -13/+18 | |
| | |||||
* | Various cleanups and standardization. | 2000-03-10 | 1 | -2/+2 | |
| | |||||
* | - ``Option:'' -> ``The options are as follows:'' | 2000-03-06 | 1 | -21/+15 | |
| | | | | | - Correct some mdoc usage. - Nicer ENVIRONMENT section. | ||||
* | - remove trailing white space | 1999-06-05 | 1 | -9/+9 | |
| | | | | | | | - remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/ | ||||
* | union wait is wrong; christos | 1998-12-19 | 1 | -4/+4 | |
| | |||||
* | usr.bin/ man page cleanups, n-s | 1998-09-27 | 1 | -7/+7 | |
| | |||||
* | $OpenBSD$ | 1997-09-21 | 1 | -2/+1 | |
| | |||||
* | save errno in mangly handlers | 1997-08-06 | 1 | -2/+5 | |
| | |||||
* | save errno in sigchld handlers | 1997-08-04 | 1 | -2/+4 | |
| | |||||
* | user err(3) | 1997-07-25 | 1 | -33/+5 | |
| | |||||
* | #if __STDC__ --> #ifdef __STDC__ | 1997-07-25 | 1 | -5/+5 | |
| | |||||
* | Wall | 1997-06-20 | 1 | -2/+5 | |
| | |||||
* | exec with argv[0] as shell, not "sh"; era@iki.fi | 1997-03-25 | 1 | -3/+3 | |
| | |||||
* | getopt(3) returns -1 when out of args, not EOF, whee! | 1997-01-15 | 1 | -3/+3 | |
| | |||||
* | rcsid | 1996-06-26 | 3 | -2/+4 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 3 | -0/+406 | |