History log of /freebsd-10.0-release/bin/stty/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


238508 15-Jul-2012 jilles

stty: Mark usage() __dead2.

This reduces code size a little and should fix a scan-build warning.


233992 07-Apr-2012 joel

mdoc: fix column names, indentation, column separation within each row, and
quotation. Also make sure we have the same amount of columns in each row as
the number of columns we specify in the head arguments.

Reviewed by: brueffer


233457 25-Mar-2012 joel

Remove superfluous paragraph macro.


228406 11-Dec-2011 ed

Move 3.5 KB from the data segment to the text segment.

The `struct modes' are only used by the getter-functions in the same
file, so we can safely mark them static and const.


221372 03-May-2011 ru

Don't call -f option's argument "stdin".

MFC after: 3 days


214680 02-Nov-2010 ed

Add a new libc function: cfmakesane(3).

I've noticed various terminal emulators that need to obtain a sane
default termios structure use very complex `hacks'. Even though POSIX
doesn't provide any functionality for this, extend our termios API with
cfmakesane(3), which is similar to the commonly supported cfmakeraw(3),
except that it fills the termios structure with sane defaults.

Change all code in our base system to use this function, instead of
depending on <sys/ttydefaults.h> to provide TTYDEF_*.


213573 08-Oct-2010 uqs

mdoc: drop redundant .Pp and .LP calls

They have no effect when coming in pairs, or before .Bl/.Bd


182052 23-Aug-2008 ed

Make stty(1) use tab0 and tab3 to handle tab completion.

After the MPSAFE TTY import, we have support for the TAB0 and TAB3 flags
to handle tab expansion, while we only used to support OXTABS. Switch
stty(1) to use tab0 and tab3 to print whether tab expansion is turned on
or off. Implement the oxtabs and tabs switches by setting the
appropriate TABx value.

Even though POSIX only lists this as being XSI, we'd better follow it.


181269 04-Aug-2008 cperciva

Mark functions as __dead2 in order to help the LLVM static checker
understand which code paths aren't possible.

This commit eliminates 117 false positive bug reports of the form
"allocate memory; error out if pointer is NULL; use pointer".


180559 16-Jul-2008 ed

Remove OTTYDISC, NETLDISC and NTTYDISC definitions.

When I ported most applications away from <sgtty.h>, I noticed none of
them were actually using these definitions. I kept them in place,
because I didn't want to touch tools like pstat(8) and stty(1).

In preparation for the MPSAFE TTY layer, remove these definitions. This
doesn't have any impact with respect to binary compatibility (see
tty_conf.c).

We couldn now add an #error to <sys/ioctl_compat.h> when included
outside the kernel. Unfortunately, kdump's mkioctls includes this file
unconditionally.

Approved by: philip (mentor)


146636 26-May-2005 ache

Fix: printed output flags (onocr) and (onlret) same as oxtabs

PR: 81256
Submitted by: Arseny Nasokin <tarc@tarc.po.cs.msu.su>


141578 09-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


140353 16-Jan-2005 ru

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


137314 06-Nov-2004 ache

Back out recent TTYDEF_LFLAG_ECHO invention.

This change is NOP, because TTYDEF_LFLAG = TTYDEF_LFLAG_ECHO now,
but to minimize diffs with other BSDs.


137131 02-Nov-2004 phk

stty sane should set the echo bits.

PR: 73423
Submitted by: Michiel Boland <michiel@boland.org>
Overlooked by: phk


131505 03-Jul-2004 ru

Deal with double whitespace.


131484 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


127958 06-Apr-2004 markm

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


114576 03-May-2003 markm

Fix format warning. This is WARNS=9, std=c99 clean on i386.


114433 01-May-2003 obrien

Quiet warnings about copyright[].


99110 30-Jun-2002 obrien

Consistently use FBSDID


90111 02-Feb-2002 imp

o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
o Change
int
foo() {
...
to
int
foo(void)
{
...


87323 04-Dec-2001 obrien

Default to WARNS=2. Binary builds that cannot handle this must explicitly
set WARNS=0.

Reviewed by: mike


87094 29-Nov-2001 green

Note that stty is a utility and not... err... a program....

Submitted by: ru


87083 29-Nov-2001 green

Stty is a program, not a function.


82237 23-Aug-2001 dd

Implement `stty ek` as documented.

PR: 24063
Submitted by: Seth Kingsley <sethk@osd.bsdi.com>


81687 15-Aug-2001 ru

mdoc(7) police: utilize the new .Ex macro.


81622 14-Aug-2001 ru

mdoc(7) police: s/BSD/.Bx/ where appropriate.


81462 10-Aug-2001 ru

mdoc(7) police: join split punctuation to macro calls.


78624 22-Jun-2001 dd

WARNS= -> WARNS?=

Submitted by: Mike Barcroft <mike@q9media.com>


76882 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC after: 1 week


76810 18-May-2001 kris

BDECFLAGS cleanup


73421 04-Mar-2001 assar

implement OCRNL, ONOCR, and ONLRET

Obtained from: NetBSD


73233 28-Feb-2001 ru

Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.


71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


70056 15-Dec-2000 ru

Prepare for mdoc(7)NG.


69321 28-Nov-2000 jkh

Add support for an "erase2" so that both ^H and DEL can be used
for backspacing.

Submitted By: Rui Pedro Mendes Salgueiro <rps@mat.uc.pt>


68935 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


59790 30-Apr-2000 ache

Fix warn format

Pointed-by: bde


59788 30-Apr-2000 ache

Back out all drainwait changes. It is enough controllable via sysctl or
comcontrol, having it in stty cause too many problems with existing drivers
and tty access permissings of non-superuser.

Asked-by: bde


59787 30-Apr-2000 ache

gfmt: set drainwait only if changed
It allows to restore tty state without a warning for non-superuser


59718 27-Apr-2000 ache

Describe drainwait


59716 27-Apr-2000 ache

part of gfmt really changed commit


59715 27-Apr-2000 ache

gfmt: set 'changed' flags only if something really changed.


59714 27-Apr-2000 ache

Add ability to manipulate with drain wait time


57663 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


56853 29-Jan-2000 peter

Don't report the tablet line discipline, it "doesn't happen (TM)"


50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


46684 08-May-1999 kris

Various spelling/formatting changes.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


37230 28-Jun-1998 bde

Fixed printf format errors.


36599 03-Jun-1998 jkoshy

Correct description of -crtscts.

PR: 6836
Submitted by: Andrew <andrew@ugh.net.au>


36152 18-May-1998 charnier

Correct use of .Nm. Add rcsid.


31686 12-Dec-1997 eivind

Merge from OpenBSD:
>sprintf -> snprintf paranoia

Obtainted from: OpenBSD src/bin/stty/print.c v1.5
by Todd Miller <millert@openbsd.org>


28642 24-Aug-1997 steve

Correct confusing error message when called as 'stty -sane'.

PR: bin/3573


26468 06-Jun-1997 charnier

Typo in usage string. Looks like the man page now.


26365 02-Jun-1997 charnier

Typo (the the -> the).


24348 28-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23789 12-Mar-1997 mpp

Correct the self reference in the description of the "tabs" option.
It should really refer to "oxtabs".

Obtained from: NetBSD-bugs mailing list PR# 3320


22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


20424 14-Dec-1996 steve

-Wall cleaning.


20190 07-Dec-1996 bde

Fixed `stty [-]extproc'. It set extproc to a semi-random state (always
off if there are no other options, always (?) on if another option that
changes the state is processed earlier).


14933 31-Mar-1996 bde

Fixed typo.

Reported by: andreas@knobel.gun.de


12202 11-Nov-1995 bde

Fixed descriptions of ignpar and parmrk.


9393 04-Jul-1995 bde

Improve the recently changed and an old error message: don't report probe
errors.


9384 02-Jul-1995 joerg

stty fails with a non-obvious error message if it's run on a non-tty
stream, such as a rsh or vi pipeline.

The error message is:
stty: TIOCGETD: Operation not supported

It's immediately obvious to the knowledgable hacker type, but not
exactly comforting to the user who's not native to unix. It's
especially confusing if there's a stty command in their .cshrc and
it's showing up on rsh output.

(Fixes PR #bin/573)

Submitted by: peter@haywire.dialix.com (Peter Wemm)


8855 30-May-1995 rgrimes

Remove trailing whitespace.

Reviewed by: phk


8170 29-Apr-1995 bde

Support nonstandard (not yet all supported) flow control options. `ctsflow'
and `rtsflow' are the components of `crtscts'. `dtrflow' and `dsrflow' are
new and not yet supported. `dtrflow' may be useful for Cyclades serial
careds, which have h/w support for it and no h/w support for `rtsflow'.

print.c:
Report NTTYDISC in case the line is in this obsolescent state.


8168 29-Apr-1995 bde

Fix `stty' on the output of `stty -g'. The changes for the gfmt1 option
weren't TIOCSETD'd unless another option changed something.


8148 28-Apr-1995 ache

Fix bugs:
cchars2 not used
can't set or report MIN or TIME == 255
TIOCSETD on wrong fd
PPPDISC is not reported


7165 19-Mar-1995 joerg

You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory.

I (Joerg) finished most of Philippe's cleanup. /bin/sh will still
need *allot* of work, however.

Submitted by: charnier@lirmm.fr (Philippe Charnier)


3044 24-Sep-1994 dg

Added $Id$


1557 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1556,
which included commits to RCS files with non-trunk default branches.