History log of /netbsd-current/bin/stty/stty.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.24 06-Sep-2019 christos

Don't fail when the line discipline ioctl fails (since it secondary
like the other tty ioctls that we only warn about). Do the main
ioctl (tcgetattr) first, since that provides a better error message
(ENOTTY instead of EINVAL).


Revision tags: netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 netbsd-7-2-RELEASE pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 netbsd-7-1-2-RELEASE pgoyette-compat-base netbsd-7-1-1-RELEASE matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.23 12-Sep-2013 christos

- print the line discipline using the new ioctl
- print the queue size


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.22 20-Jun-2012 wiz

branches: 1.22.2;
- remove trailing white space;
- sync `usage' with man page.

From patch by Bug Hunting.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.21 20-Jul-2008 lukem

branches: 1.21.2; 1.21.20;
Remove the \n and tabs from the __COPYRIGHT() strings.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.20 26-May-2008 christos

PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-armv6-base matt-mips64-base hpcarm-cleanup-base netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE wrstuden-fixsa-base abandoned-netbsd-4-base netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-4-base netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.19 07-Aug-2003 agc

branches: 1.19.30; 1.19.32;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.


# 1.18 16-Jun-2003 perry

ANSIfy, from Petri Koistinen in PR 13975


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 fvdl_fs64_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-4-PATCH003 netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base netbsd-1-4-PATCH002 wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.17 02-Mar-1999 christos

s/BSD/STTY_BSD/ where I missed it before.


# 1.16 02-Mar-1999 christos

- char -> unsigned char
- #ifdef BSD4_4 for for non POSIX features
- prefix with STTY_ all the FMT constants to avoid namespace collisions.


# 1.15 28-Jul-1998 mycroft

Delint.


# 1.14 28-Jul-1998 mycroft

Delint.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.13 20-Jul-1997 christos

Fix compiler warnings.
Add WARNS=1


# 1.12 04-Jun-1997 mikel

nuke extra : in usage string


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.11 21-Mar-1995 cgd

convert to new RCS id conventions.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.10 20-Sep-1994 mycroft

branches: 1.10.2;
Merge with 4.4-Lite version.


# 1.9 23-Mar-1994 mycroft

Add VMIN and VTIME support, per Keith Bostic. Use libc err*() and warn*(),
and make usage() a function.


# 1.8 18-Jan-1994 jtc

It's 1994 --- remove stdout redirection check.


# 1.7 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.6 05-Jun-1993 deraadt

reverse of "stty -g" now works. it forgot to actually ioctl() the
changes in.. patch posted by <ache@astral.msk.su>


# 1.5 01-Jun-1993 cgd

rcsid cleanup


# 1.4 19-Apr-1993 mycroft

Don't overrun end of argument list.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 23-Mar-1993 cgd

changed "Id" to "Header" for rcsids


# 1.2 22-Mar-1993 cgd

added rcs ids to all files


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.23 12-Sep-2013 christos

- print the line discipline using the new ioctl
- print the queue size


# 1.22 20-Jun-2012 wiz

branches: 1.22.2;
- remove trailing white space;
- sync `usage' with man page.

From patch by Bug Hunting.


# 1.21 19-Jul-2008 lukem

branches: 1.21.2; 1.21.20;
Remove the \n and tabs from the __COPYRIGHT() strings.


# 1.20 26-May-2008 christos

PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale


# 1.19 07-Aug-2003 agc

branches: 1.19.30; 1.19.32;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.


# 1.18 16-Jun-2003 perry

ANSIfy, from Petri Koistinen in PR 13975


# 1.17 01-Mar-1999 christos

s/BSD/STTY_BSD/ where I missed it before.


# 1.16 01-Mar-1999 christos

- char -> unsigned char
- #ifdef BSD4_4 for for non POSIX features
- prefix with STTY_ all the FMT constants to avoid namespace collisions.


# 1.15 28-Jul-1998 mycroft

Delint.


# 1.14 27-Jul-1998 mycroft

Delint.


# 1.13 20-Jul-1997 christos

Fix compiler warnings.
Add WARNS=1


# 1.12 03-Jun-1997 mikel

nuke extra : in usage string


# 1.11 21-Mar-1995 cgd

convert to new RCS id conventions.


# 1.10 19-Sep-1994 mycroft

branches: 1.10.2;
Merge with 4.4-Lite version.


# 1.9 22-Mar-1994 mycroft

Add VMIN and VTIME support, per Keith Bostic. Use libc err*() and warn*(),
and make usage() a function.


# 1.8 18-Jan-1994 jtc

It's 1994 --- remove stdout redirection check.


# 1.7 01-Aug-1993 mycroft

Add RCS identifiers.


# 1.6 05-Jun-1993 deraadt

reverse of "stty -g" now works. it forgot to actually ioctl() the
changes in.. patch posted by <ache@astral.msk.su>


# 1.5 01-Jun-1993 cgd

rcsid cleanup


# 1.4 19-Apr-1993 mycroft

Don't overrun end of argument list.


# 1.3 22-Mar-1993 cgd

changed "Id" to "Header" for rcsids


# 1.2 22-Mar-1993 cgd

added rcs ids to all files


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.1.1.2 19-Sep-1994 mycroft

Import original 4.4-Lite version.


# 1.1.1.1 21-Mar-1993 cgd

initial import of 386bsd-0.1 sources


# 1.10.2.2 19-Sep-1994 mycroft

Merge with 4.4-Lite version.


# 1.10.2.1 19-Sep-1994 mycroft

file stty.c was added on branch netbsd-1-0 on 1994-09-20 04:52:13 +0000


# 1.19.32.2 17-Sep-2008 wrstuden

Sync with wrstuden-revivesa-base-2.


# 1.19.32.1 22-Jun-2008 wrstuden

Sync w/ -current. 34 merge conflicts to follow.


# 1.19.30.1 03-Jun-2008 yamt

sync with head


# 1.21.20.1 27-Jun-2012 riz

Pull up following revision(s) (requested by wiz in ticket #364):
bin/stty/stty.1: revision 1.40
bin/stty/stty.1: revision 1.41
bin/stty/stty.c: revision 1.22
- improve wording, and create more consistency within the text;
- correct `SYNOPSIS';
- improve macro usage;
- mention argument name for `-f' (and change list width for it);
- correct misplacement of periods (`.') and a parenthese (`(');
- fix typo;
- bump date.
From Bug Hunting.
- remove trailing white space;
- sync `usage' with man page.
From patch by Bug Hunting.
Remove another Pf. From Bug Hunting.


# 1.21.2.2 22-May-2014 yamt

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")


# 1.21.2.1 30-Oct-2012 yamt

sync with head


# 1.22.2.1 19-Aug-2014 tls

Rebase to HEAD as of a few days ago.