summaryrefslogtreecommitdiffstats
path: root/bin/stty/stty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-7/+7
| | | | | | 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.
* Before terminal characteristics are displayed, stty(1) activatesbluhm2016-07-231-1/+5
| | | | | | | pledge(2). Then the values cannot be modified anymore. Let stty error out if the display and modify mode are combined on the command line to avoid a pledge violation later on. OK deraadt@
* header cleanupmmcc2016-03-231-2/+4
| | | | from Edgar Pettijohn, with a correction from deraadt@
* Cannot pledge bottom half of setting, because of the ioctl backingderaadt2015-11-201-4/+5
| | | | "extproc", "ostart" and "ostop" are not allowed (yet?)
* pledge "stdio tty" works once the kernel allows TIOCGWINSZ. Do the pledgederaadt2015-10-111-3/+11
| | | | | | after TIOCGETD, which the kernel is unlikely to support (does not feel like a good idea for a program to switch line disc, and therefor not worth allowing the program to ask either)
* -a is documentedtedu2015-02-151-2/+2
|
* add unsigned char casts for specific calls to ctype.h macros.deraadt2013-11-211-2/+2
| | | | ok guenther step
* Use strtonum() instead of atoi() so that ridiculous sloppy things likederaadt2009-10-281-2/+6
| | | | | | | | | ispeed -38400 baud; ospeed 38400 baud; 24 rows; 80 columns; and % stty rows -45; stty size 65491 80 don't happen. ok millert guenther
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+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
* documentation tweaks.sobrado2008-05-171-3/+3
| | | | ok (some time ago) jmc@
* ansification, art okderaadt2003-06-111-6/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* o) __progname aria;mpech2001-09-061-3/+2
| | | | millert@ ok.
* exit and use __prognamemickey2001-05-201-5/+6
|
* Sync usage() with man page.aaron2000-10-061-3/+3
|
* i am bored enough to fix terminal space/tab ugliesderaadt1997-09-011-4/+4
|
* bye bye :, mikelderaadt1997-06-041-3/+3
|
* zap getopt() case of -?, come on, it is the default!deraadt1996-08-021-3/+2
|
* not a terminal; from freebsdderaadt1996-08-021-5/+5
|
* update rcsidderaadt1996-06-231-1/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+166