summaryrefslogtreecommitdiffstats
path: root/usr.bin/script (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-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;jmc2019-03-281-3/+3
|
* Remove/simplify historic shell lesson; fix sentence fragment. ok deraadt@ian2019-02-151-15/+6
|
* Add & update author credits for Mary Ann Horton.cheloha2018-07-131-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 shelljasper2018-01-212-14/+36
| | | | | from Paul de Weerd ok ian@ job@; manpage bits are ok jmc@
* bluhm discovered "script < /dev/null" attempts tty operations in violationderaadt2017-04-121-9/+16
| | | | | of pledge. We can wrap isatty() around those codepaths. ok bluhm beck
* add "proc" to pledge for script(1)semarie2015-10-201-3/+3
| | | | | | it needs to "forward" SIGWINCH to subprocesses. ok deraadt@
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-5/+5
|
* move from tame "ioctl" to tame "tty", which provides a better fit forderaadt2015-10-071-2/+2
| | | | | this program which uses tcgetattr(). the tcsetattr() calls are outside the tame regions.
* Repair tame() error check to be == -1deraadt2015-10-041-2/+2
|
* script is two processes. the main io-loop process can be locked down withderaadt2015-10-031-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.deraadt2015-07-191-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.millert2015-03-151-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.schwarze2012-01-151-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 (andderaadt2009-10-271-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;jmc2007-05-311-2/+2
|
* in the write codepaths, errors other than EAGAIN are fatal to the loop; ok ottoderaadt2005-12-121-2/+6
|
* new sentence, new line;jmc2005-06-161-2/+3
|
* Remove old cruft, ok millert@ jmc@ian2005-06-161-6/+1
|
* use STDERR_FILENO; ok cloderderaadt2005-04-111-3/+3
|
* Block SIGALRM during write--we only want it to interrupt read().millert2004-12-191-2/+7
| | | | OK deraadt@
* use err/warn and __prognamemickey2004-10-101-8/+9
|
* ARGSUSED before signal handler with unused signoderaadt2004-09-141-4/+8
|
* mostly ansi cleanup; pval okderaadt2003-06-101-16/+10
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-032-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.millert2002-02-161-9/+9
|
* After a simplistic rewrite, signal flags were not being noticed until aderaadt2001-11-181-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.eduderaadt2001-07-091-3/+3
|
* Remove completely redundant introductory sentences in ENVIRONMENT sections.aaron2001-05-011-3/+1
|
* comment on a real nasty racederaadt2001-01-111-2/+3
|
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-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.espie2000-04-161-2/+21
|
* Trailing whitespace begone!aaron2000-04-121-4/+4
|
* not changes in scriptericj2000-03-231-1/+6
|
* Make script give correct return values; adapted from FreeBSDericj2000-03-221-13/+18
|
* Various cleanups and standardization.aaron2000-03-101-2/+2
|
* - ``Option:'' -> ``The options are as follows:''aaron2000-03-061-21/+15
| | | | | - Correct some mdoc usage. - Nicer ENVIRONMENT section.
* - remove trailing white spaceaaron1999-06-051-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; christosderaadt1998-12-191-4/+4
|
* usr.bin/ man page cleanups, n-saaron1998-09-271-7/+7
|
* $OpenBSD$deraadt1997-09-211-2/+1
|
* save errno in mangly handlersderaadt1997-08-061-2/+5
|
* save errno in sigchld handlersderaadt1997-08-041-2/+4
|
* user err(3)mickey1997-07-251-33/+5
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-5/+5
|
* Wallderaadt1997-06-201-2/+5
|
* exec with argv[0] as shell, not "sh"; era@iki.fideraadt1997-03-251-3/+3
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* rcsidderaadt1996-06-263-2/+4
|
* initial import of NetBSD treederaadt1995-10-183-0/+406