Up to [local] / src / bin / stty
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.22 / (download) - annotate - [select for diffs], Sat Oct 23 16:45:32 2021 UTC (2 years, 7 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
HEAD
Changes since 1.21: +6 -1 lines
Diff to previous 1.21 (colored)
stty(1) can't be pledged for all modes, but it can be unveiled. the only file to be opened is on stty -f `file', so call unveil(2) afterwards to restrict all fs access. OK deraadt@
Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:00 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.20: +7 -7 lines
Diff to previous 1.20 (colored)
When system calls indicate an error they return -1, not some arbitrary 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.
Revision 1.20 / (download) - annotate - [select for diffs], Sat Jul 23 08:57:18 2016 UTC (7 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0
Changes since 1.19: +5 -1 lines
Diff to previous 1.19 (colored)
Before terminal characteristics are displayed, stty(1) activates 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@
Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 23 14:52:42 2016 UTC (8 years, 2 months ago) by mmcc
Branch: MAIN
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored)
header cleanup from Edgar Pettijohn, with a correction from deraadt@
Revision 1.18 / (download) - annotate - [select for diffs], Fri Nov 20 15:58:28 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.17: +5 -4 lines
Diff to previous 1.17 (colored)
Cannot pledge bottom half of setting, because of the ioctl backing "extproc", "ostart" and "ostop" are not allowed (yet?)
Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 11 15:27:19 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +11 -3 lines
Diff to previous 1.16 (colored)
pledge "stdio tty" works once the kernel allows TIOCGWINSZ. Do the pledge 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)
Revision 1.16 / (download) - annotate - [select for diffs], Sun Feb 15 11:42:30 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)
-a is documented
Revision 1.15 / (download) - annotate - [select for diffs], Thu Nov 21 15:54:46 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)
add unsigned char casts for specific calls to ctype.h macros. ok guenther step
Revision 1.14 / (download) - annotate - [select for diffs], Wed Oct 28 20:58:38 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.13: +6 -2 lines
Diff to previous 1.13 (colored)
Use strtonum() instead of atoi() so that ridiculous sloppy things like ispeed -38400 baud; ospeed 38400 baud; 24 rows; 80 columns; and % stty rows -45; stty size 65491 80 don't happen. ok millert guenther
Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:22 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +1 -15 lines
Diff to previous 1.12 (colored)
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and 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
Revision 1.12 / (download) - annotate - [select for diffs], Sat May 17 23:31:52 2008 UTC (16 years ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)
documentation tweaks. ok (some time ago) jmc@
Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 11 23:42:12 2003 UTC (21 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.10: +4 -6 lines
Diff to previous 1.10 (colored)
ansification, art ok
Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 2 23:32:09 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.9: +3 -7 lines
Diff to previous 1.9 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.9 / (download) - annotate - [select for diffs], Thu Sep 6 13:29:08 2001 UTC (22 years, 9 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2,
OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)
o) __progname aria; millert@ ok.
Revision 1.8 / (download) - annotate - [select for diffs], Sun May 20 08:15:03 2001 UTC (23 years ago) by mickey
Branch: MAIN
Changes since 1.7: +6 -5 lines
Diff to previous 1.7 (colored)
exit and use __progname
Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 6 02:49:55 2000 UTC (23 years, 8 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)
Sync usage() with man page.
Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 1 18:30:35 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6,
OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4,
OPENBSD_2_3_BASE,
OPENBSD_2_3,
OPENBSD_2_2_BASE,
OPENBSD_2_2
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)
i am bored enough to fix terminal space/tab uglies
Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 4 04:39:33 1997 UTC (27 years ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)
bye bye :, mikel
Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 2 12:41:10 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1,
OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)
zap getopt() case of -?, come on, it is the default!
Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 2 12:08:25 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)
not a terminal; from freebsd
Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 23 14:21:53 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)
update rcsid
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:37:26 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:37:26 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Initial revision