Home | History | Annotate | only in /src/libexec/getty
History log of /src/libexec/getty
RevisionDateAuthorComments
 1.20 11-Aug-2013  dholland Pass WARNS=5.
 1.19 03-Feb-2010  roy branches: 1.19.6; 1.19.12;
Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.18 16-Mar-2009  lukem Default to WARNS=4
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
 1.17 16-Nov-2006  atatat branches: 1.17.26;
remove stray links
 1.16 16-Nov-2006  christos - remove stray mlinks
- remove gcc4 hacks
 1.15 16-Nov-2006  christos more uucp cleanup
 1.14 11-May-2006  mrg sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
 1.13 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.12 28-Mar-1998  cjs Add uugetty manpage link.
 1.11 19-Oct-1997  cjs Add uugetty capability.
 1.10 08-Oct-1997  mrg merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec.
 1.9 06-Aug-1997  mikel set WARNS?=1
 1.8 31-Jul-1996  thorpej RCS id police.
 1.7 22-Dec-1994  cgd specify man pages the new way.
 1.6 24-Sep-1994  mycroft Minor tweak to aid cross-compiling.
 1.5 17-Aug-1994  pk branches: 1.5.2;
Cleanup import, merge local changes.
 1.4 09-Mar-1994  cgd fix bin/140: use getcap(3) routines
 1.3 08-Mar-1994  mycroft We don't need or want set_ttydefaults().
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.5.2.1 17-Aug-1994  pk file Makefile was added on branch netbsd-1-0 on 1994-08-17 20:10:28 +0000
 1.17.26.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.19.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.19.6.1 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.7 11-Aug-2013  dholland Pass WARNS=5.
 1.6 07-Aug-2003  agc branches: 1.6.54; 1.6.60;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.5 10-Nov-2001  thorpej ANSI'ify.
 1.4 31-Jul-1996  thorpej RCS id police.
 1.3 15-May-1996  jtc Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.
 1.2 17-Aug-1994  pk branches: 1.2.2;
Cleanup import, merge local changes.
 1.1 17-Aug-1994  pk branches: 1.1.1;
Initial revision
 1.1.1.1 17-Aug-1994  pk Import 4.4-Lite version.
 1.2.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.2.2.1 17-Aug-1994  pk file extern.h was added on branch netbsd-1-0 on 1994-08-17 20:10:30 +0000
 1.6.60.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.54.1 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.19 26-Feb-2020  riastradh uugetty is no more
 1.18 29-May-2013  wiz branches: 1.18.28;
- Add the actual binary to `FILES' section;
- bump date.

From Bug Hunting.
 1.17 07-Aug-2003  agc branches: 1.17.54; 1.17.60;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.16 29-Sep-2002  wiz Begin new sentences on new lines.
Patch from Robert Elz (kre at munnari oz au).
 1.15 15-Jan-2002  wiz Whitespace nits, sort sections.
 1.14 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.13 28-Feb-1999  msaitoh sort SEE ALSO section by "sort | sort -n"
 1.12 12-Dec-1998  fair Document (or expand documentation about) the ability of getty(8) to
recognize a PPP bringup sequence and invoke something appropriate, per
PR#6462
 1.11 29-Aug-1998  tsarna Execute ttyaction on termination of rlogind/telnetd sessions.
Also, say a little bit about ttyaction in the getty and login manpages.
 1.10 29-Apr-1998  fair fix bad .Xr references
 1.9 22-Apr-1998  ross Reference ttys(5). (David Brownlee, PR #5339)
 1.8 10-Apr-1998  fair Add .Xr ttyaction 3 per PR#4647
 1.7 20-Oct-1997  enami Fix .Nm usage.
 1.6 19-Oct-1997  cjs Add uugetty capability.
 1.5 31-Jul-1997  perry clean up .Nm entries, and change a silly .Nm gettytab 5 to an .Xr
 1.4 31-Jul-1996  thorpej RCS id police.
 1.3 17-Aug-1994  pk branches: 1.3.2;
Cleanup import, merge local changes.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.3.2.1 17-Aug-1994  pk file getty.8 was added on branch netbsd-1-0 on 1994-08-17 20:10:31 +0000
 1.17.60.1 23-Jun-2013  tls resync from head
 1.17.54.1 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.18.28.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.40 15-Jul-2019  uwe Tweak markup some more.
 1.39 12-Jul-2019  uwe Improve (hopefully) mark up of the capabilities tables.
 1.38 12-Jul-2019  uwe Use proper markup instead of .Em to refer to capabilities, structure
memebers, etc in the text (but not in the tables yet, as those require
more rework).
 1.37 11-Jul-2019  wiz Merge lines. Fixes display problem noted in PR 54361 by he@
 1.36 21-Apr-2012  roy branches: 1.36.32;
Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
 1.35 13-Oct-2006  wiz branches: 1.35.40;
Fix typo in macro.
 1.34 13-Oct-2006  wiz Sort SEE ALSO.
 1.33 06-Oct-2006  elad PR/13478: Greg A. Woods: some tty-related documentation fixes

Patch applied with "minor tweaks" from me, thanks!
 1.32 21-May-2005  christos Support VEOL2 and VSTATUS
 1.31 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.30 20-May-2003  wiz Bump date for "nn" capability.
 1.29 20-May-2003  thorpej Add a "nn" (no name) capability to getty. If set in gettytab, getty
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
 1.28 15-Jan-2002  wiz Sort sections and SEE ALSO.
 1.27 04-Apr-2001  wiz Lowercase getty in xref. Whitespace fixes.
 1.26 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.25 04-Sep-2000  garbled Change "Apart form" to "Apart from".
 1.24 04-Jan-2000  ad branches: 1.24.4;
Oops, fix previous.
 1.23 04-Jan-2000  ad Add two new capabilities to gettytab - idea from FreeBSD:
al - user to auto-login as
if - banner file to display, like /etc/issue
 1.22 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.21 12-Dec-1998  fair Document (or expand documentation about) the ability of getty(8) to
recognize a PPP bringup sequence and invoke something appropriate, per
PR#6462
 1.20 12-Oct-1998  tsarna Add PPP autodetect, based on code from FreeBSD via OpenBSD.
 1.19 22-Apr-1998  ross Reference ttys(5). (David Brownlee, PR #5339)
 1.18 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.17 20-Oct-1997  enami Fix .Nm usage.
 1.16 14-Jul-1997  mikel xref gethostname(3) and uname(3) instead of obsolete gethostname(2)
and uname(2); some other minor cleanup
 1.15 08-Mar-1997  mouse alternate -> alternative, per PR 2643
 1.14 11-Aug-1996  explorer fix extra Ta strings in man page. closes pr bin/2685
 1.13 31-Jul-1996  thorpej RCS id police.
 1.12 24-Sep-1994  mycroft Remove old comment about converting to termios.
 1.11 16-Sep-1994  mycroft Document the % escapes I added, and clean up the description of %h a bit.
 1.10 17-Aug-1994  pk branches: 1.10.2;
The man page says to disable input parity checking if `ap' is on.
 1.9 17-Aug-1994  pk Cleanup import, merge local changes.
 1.8 29-Apr-1994  cgd fix formatting bogon
 1.7 28-Apr-1994  pk Mark a few capabilities as unsupported.
Document some new ones.
 1.6 21-Apr-1994  pk Correct format of `np' item.
 1.5 16-Apr-1994  cgd renamed 'md' to 'mb'
 1.4 16-Apr-1994  cgd quick cut at adding 'md' for MDMBUF
 1.3 12-Apr-1994  cgd document np
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.2.2 17-Aug-1994  pk The man page says to disable input parity checking if `ap' is on.
 1.10.2.1 17-Aug-1994  pk file gettytab.5 was added on branch netbsd-1-0 on 1994-08-17 20:28:00 +0000
 1.24.4.1 15-Nov-2000  tv Pullup 1.25 [hubertf]:
Change "Apart form" to "Apart from".
 1.35.40.1 23-May-2012  yamt sync with head.
 1.36.32.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.4 09-Mar-1994  mycroft Clean up deleted files.
 1.3 07-Dec-1993  mycroft Eliminate two compiler warnings.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.17 11-Aug-2013  dholland Pass WARNS=5.
 1.16 16-Nov-2006  christos branches: 1.16.40; 1.16.46;
pass lint
 1.15 21-May-2005  christos Support VEOL2 and VSTATUS
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.13 20-May-2003  thorpej Add a "nn" (no name) capability to getty. If set in gettytab, getty
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
 1.12 04-Feb-2001  christos remove redundant decls
fix nested extern
 1.11 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.10 04-Jan-2000  ad Add two new capabilities to gettytab - idea from FreeBSD:
al - user to auto-login as
if - banner file to display, like /etc/issue
 1.9 12-Oct-1998  tsarna Add PPP autodetect, based on code from FreeBSD via OpenBSD.
 1.8 31-Jul-1996  thorpej RCS id police.
 1.7 17-Aug-1994  pk branches: 1.7.2;
Cleanup import, merge local changes.
 1.6 28-Apr-1994  pk Towards termios.
 1.5 16-Apr-1994  cgd renamed 'md' to 'mb'
 1.4 16-Apr-1994  cgd quick cut at adding 'md' for MDMBUF
 1.3 23-Mar-1994  cgd cut-and-paste-o's, pointed out by Andras Olah <olah@cs.utwente.nl>
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.7.2.1 17-Aug-1994  pk file gettytab.h was added on branch netbsd-1-0 on 1994-08-17 20:10:35 +0000
 1.16.46.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.40.1 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.18 11-Aug-2013  dholland Pass WARNS=5.
 1.17 03-Dec-2007  isaki branches: 1.17.28; 1.17.34;
white space fix.
 1.16 16-Nov-2006  christos branches: 1.16.8;
fix gcc4 sign issues.
 1.15 21-May-2005  christos Support VEOL2 and VSTATUS
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.13 20-May-2003  thorpej Add a "nn" (no name) capability to getty. If set in gettytab, getty
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
 1.12 11-Jul-2002  wiz 'environment', not 'enviroment'
 1.11 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.10 04-Jan-2000  ad Add two new capabilities to gettytab - idea from FreeBSD:
al - user to auto-login as
if - banner file to display, like /etc/issue
 1.9 12-Oct-1998  tsarna Add PPP autodetect, based on code from FreeBSD via OpenBSD.
 1.8 06-Aug-1997  mikel use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
 1.7 31-Jul-1996  thorpej RCS id police.
 1.6 17-Aug-1994  pk branches: 1.6.2;
Cleanup import, merge local changes.
 1.5 28-Apr-1994  pk Towards termios.
 1.4 16-Apr-1994  cgd renamed 'md' to 'mb'
 1.3 16-Apr-1994  cgd quick cut at adding 'md' for MDMBUF
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.6.2.1 17-Aug-1994  pk file init.c was added on branch netbsd-1-0 on 1994-08-17 20:10:36 +0000
 1.16.8.1 09-Jan-2008  matt sync with HEAD
 1.17.34.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.28.1 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.68 12-Oct-2021  jmcneill getty: Remove 2 second sleep before opening tty

This (apparently very old!) workaround to ensure that DTR stays down long
enough to be detected is now handled by serial drivers themselves. For
console devices (framebuffer, serial console, etc) this was an unnecessary
2 second penalty that we have all been paying since the beginning of time.
 1.67 26-Feb-2020  riastradh uugetty is no more
 1.66 10-Jan-2017  christos branches: 1.66.14;
need <sys/stat.h> for chmod
 1.65 17-Mar-2016  christos branches: 1.65.2;
Add volatile for gcc 5
 1.64 12-Aug-2013  joerg Use __dead.
 1.63 11-Aug-2013  martin Fix another automatic variable that is life both pre- and post the siglongjmp
(which gcc calls "might be clobbered") by marking it volatile: on some
machines, this value might end up in a register loaded before the sigsetjmp,
but not preserved by the siglongjmp later.
Fixes the VAX build.
 1.62 11-Aug-2013  dholland Use siglongjmp to jump out of signal handlers.
 1.61 11-Aug-2013  dholland Pass WARNS=5.
 1.60 04-Nov-2012  christos remove useless include (sys/stat.h) and add useful one (stdio.h)
 1.59 28-Jun-2012  roy branches: 1.59.2;
Don't attempt to parse a termcap/terminfo string ourselves;
always use tputs(3).
 1.58 03-Feb-2010  roy branches: 1.58.6; 1.58.8;
Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.57 04-Jul-2009  mbalmer Remove an old workaround from SCCS times (%M% would insert the filename).
 1.56 20-Jul-2008  lukem branches: 1.56.10;
Remove the \n and tabs from the __COPYRIGHT() strings.
 1.55 13-Apr-2008  dholland branches: 1.55.4;
'_' is functionally alphanumeric in many contexts, including login names.
Since it doesn't have case, treat it like a digit. While here, avoid
setting the associated flag variable by incrementing it.
Fixes PR bin/33521; patch based on one from Dieter Roelants.
 1.54 04-Mar-2008  dholland Sort includes, removing duplicate <time.h>.
 1.53 03-Dec-2007  isaki branches: 1.53.4;
white space fix.
 1.52 17-Jan-2007  hubertf branches: 1.52.4;
Remove duplicated #includes and some trailing whitespace while here.
From Slava Semushin <slava.semushin@gmail.com>
 1.51 16-Nov-2006  christos pass lint
 1.50 28-Dec-2005  christos PR/25605: Frank Kardel: getty leaves ttymodes at read login state when
exec-ing pppd. Fixed as suggested.
 1.49 10-Sep-2005  elad Don't chown/unlink uninitialized lockfile if not uugetty.
From Dr. Wolfgang Stukenbrock, PR/31040.
 1.48 01-Jun-2005  lukem Ensure rval is initialized before we try to check it; it won't be set
if AL or NN are in use.
Detected with gcc -Wuninitialized.
 1.47 17-Mar-2005  christos print ptyfs ptys properly.
 1.46 05-Nov-2004  dsl branches: 1.46.2;
Add (unsigned char) cast to ctype functions
 1.45 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.44 20-May-2003  thorpej Add a "nn" (no name) capability to getty. If set in gettytab, getty
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
 1.43 17-May-2003  itojun use strlcpy
 1.42 14-Dec-2001  christos PR/14941: David Querbach: add support for non-standard MS-Windows PPP client.
 1.41 10-Nov-2001  thorpej ANSI'ify.
 1.40 10-Nov-2001  thorpej Const'ify partab[].
 1.39 02-Nov-2001  christos Update to the new t_agetstr() API.
 1.38 19-Feb-2001  cgd convert to use getprogname()
 1.37 04-Feb-2001  christos remove redundant decls
fix nested extern
 1.36 10-Jan-2001  lukem - don't use LOG_ODELAY; it's the default
- use LOG_WARNING (instead of LOG_ERR) for non-fatal errors
 1.35 28-Dec-2000  sommerfeld Add new :cs: modifier to gettytab which clears the screen using the
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
 1.34 08-Oct-2000  bjh21 Clean-up of grotty SCCS workaround. It's now almost not grotty at all.
This is the last part of PR bin/10049.
 1.33 08-Oct-2000  bjh21 Don't run over the end of the banner buffer if it ends with '%'.
From PR bin/10049
 1.32 19-Sep-2000  mjl Use strlcpy/strlcat instead of strn* plus manual termination.
Use sizeof() instead of hardcoded length. Clean up NULL vs 0
confusion. sizeof(char) is 1, really.
 1.31 14-Jan-2000  ad branches: 1.31.4;
- Either QVT/Term or the NT 'clipboard' converts tabs to spaces. I pasted in
some code via QVT/Term. Sigh. Fix it.
- Teeny KNF nit.
 1.30 04-Jan-2000  ad Add two new capabilities to gettytab - idea from FreeBSD:
al - user to auto-login as
if - banner file to display, like /etc/issue
 1.29 15-Dec-1999  drochner add one byte to the username character array and make sure the string
passed to "login" is '\0'-terminated
 1.28 15-Jan-1999  kml branches: 1.28.2; 1.28.6;
Ensure that all of the initial message (im=) gets flushed to the
screen; previously, the last buffer worth of text would fail
to be printed.
 1.27 12-Oct-1998  tsarna Add PPP autodetect, based on code from FreeBSD via OpenBSD.
 1.26 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.25 30-Mar-1998  mrg remove register.
 1.24 18-Nov-1997  thorpej Const'ify some things, rename local puts() to xputs(), since it has
a different prototype than the one in <stdio.h>
 1.23 19-Oct-1997  cjs Add uugetty capability.
 1.22 06-Aug-1997  mikel use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
 1.21 06-Aug-1997  mikel don't include <signal.h> twice
 1.20 29-Apr-1997  tls fix a couple of unlikely buffer overflows.
 1.19 14-Nov-1996  gwr After the chown(ttyn, 0, 0), call ttyaction(ttyn, "getty", "root")
 1.18 31-Jul-1996  thorpej RCS id police.
 1.17 15-May-1996  jtc Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.
 1.16 08-Feb-1996  mycroft Make sure that the user name cannot ever be interpreted as an option to
login(8). Note: This does *not* fix any security holes.
 1.15 13-Aug-1995  cgd log open failure every 10th try (that was the old behaviour) UNLESS
the error is ENXIO and it's already been logged. (this allows people
to leave getty's running on nonexistent devices without filling their
syslog. while it's arguable that that might not be a good idea, i've
found it to be _very_ useful, because it allows me to rdist /etc/ttys.)
 1.14 19-Jun-1995  jtc sys/termios.h -> termios.h
 1.13 18-Sep-1994  mycroft Fix typo in date format.
 1.12 05-Sep-1994  pk Use tcflush().
 1.11 05-Sep-1994  pk Set control flags properly while in read mode.
Supply process ID when syslogging.
 1.10 24-Aug-1994  mycroft Fix pad insertion for termios.
 1.9 24-Aug-1994  mycroft branches: 1.9.2;
Use cfset[io]speed() to set termios speeds, per POSIX.
 1.8 17-Aug-1994  pk Cleanup import, merge local changes.
 1.7 28-Apr-1994  pk Towards termios.
 1.6 17-Mar-1994  pk TIOCFLUSH requires argument
 1.5 09-Mar-1994  cgd fix bin/140: use getcap(3) routines
 1.4 08-Mar-1994  mycroft We don't need or want set_ttydefaults().
 1.3 29-Aug-1993  mycroft Add some more magic cookies for the `im' string to display info from
uname(2):

%s sysname
%r release
%v version
%m machine
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.2.2 24-Aug-1994  mycroft update from trunk
 1.9.2.1 24-Aug-1994  mycroft file main.c was added on branch netbsd-1-0 on 1994-08-24 17:12:38 +0000
 1.28.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.28.2.1 20-Dec-1999  he Pull up revision 1.29 (via patch, requested by drochner):
Make room for a terminating '\0' in the username string and make
sure the user name passed to "login" is terminated.
 1.31.4.1 17-Oct-2000  tv Pullup 1.33 [bjh21]:
Don't run over the end of the banner buffer if it ends with '%'.
 1.46.2.2 13-Jun-2005  tron Pull up revision 1.48 (requested by lukem in ticket #398):
Ensure rval is initialized before we try to check it; it won't be set
if AL or NN are in use.
Detected with gcc -Wuninitialized.
 1.46.2.1 19-Mar-2005  tron Pull up revision 1.47 (requested by christos in ticket #24):
print ptyfs ptys properly.
 1.52.4.2 23-Mar-2008  matt sync with HEAD
 1.52.4.1 09-Jan-2008  matt sync with HEAD
 1.53.4.1 24-Mar-2008  keiichi sync with head.
 1.55.4.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.56.10.1 30-Apr-2010  matt Syslog if login_tty fails
 1.58.8.1 05-Jul-2012  riz Pull up following revision(s) (requested by roy in ticket #391):
libexec/getty/main.c: revision 1.59
Don't attempt to parse a termcap/terminfo string ourselves;
always use tputs(3).
 1.58.6.3 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.58.6.2 16-Jan-2013  yamt sync with (a bit old) head
 1.58.6.1 30-Oct-2012  yamt sync with head
 1.59.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.59.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.65.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.66.14.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.9 04-Feb-2008  christos move gettytab to paths.h
 1.8 07-Aug-2003  agc branches: 1.8.22;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.7 14-Jan-2000  ad Put RCS ID in the right place.
 1.6 06-Jan-1998  perry RCSID Police.
 1.5 19-Oct-1997  cjs Add uugetty capability.
 1.4 31-Jul-1996  thorpej RCS id police.
 1.3 17-Aug-1994  pk branches: 1.3.2;
Cleanup import, merge local changes.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.3.2.1 17-Aug-1994  pk file pathnames.h was added on branch netbsd-1-0 on 1994-08-17 20:10:40 +0000
 1.8.22.1 23-Mar-2008  matt sync with HEAD
 1.35 11-Aug-2013  dholland Don't try to estrdup() NULL; thanks martin@
 1.34 11-Aug-2013  dholland Pass WARNS=5.
 1.33 16-Nov-2006  christos branches: 1.33.40; 1.33.46;
pass lint
 1.32 16-Nov-2006  christos fix gcc4 sign issues.
 1.31 21-May-2005  christos Support VEOL2 and VSTATUS
 1.30 23-Apr-2004  christos add const to cgetent arg.
 1.29 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.28 23-Sep-2002  mycroft null commit
 1.27 23-Sep-2002  itojun poll.h, not sys/poll.h
 1.26 18-Sep-2002  mycroft select() -> poll() and nanosleep()
 1.25 10-Nov-2001  thorpej ANSI'ify.
 1.24 19-Sep-2000  mjl Use strlcpy/strlcat instead of strn* plus manual termination.
Use sizeof() instead of hardcoded length. Clean up NULL vs 0
confusion. sizeof(char) is 1, really.
 1.23 30-Mar-1998  mrg remove register.
 1.22 06-Aug-1997  mikel use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
 1.21 29-Apr-1997  tls fix a couple of unlikely buffer overflows.
 1.20 27-Sep-1996  thorpej Don't truncate long hostnames.
From SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>, PR #2676.
 1.19 31-Jul-1996  thorpej RCS id police.
 1.18 05-Oct-1995  mycroft Update from kernel source.
 1.17 05-Oct-1995  mycroft Change to use SET(), CLR(), and ISSET() macros. Copy current sgtty->termios
conversion code from kernel.
 1.16 05-Oct-1995  mycroft Fix some other problems created during the termios switch.
 1.15 05-Oct-1995  mycroft Simulate the old newline behaviour better, and make sure OPOST
is set if needed.
 1.14 05-Sep-1994  pk Use tcflush().
 1.13 05-Sep-1994  pk Set control flags properly while in read mode.
Supply process ID when syslogging.
 1.12 24-Aug-1994  mycroft Use _POSIX_VDISABLE, not \377.
 1.11 24-Aug-1994  mycroft branches: 1.11.2;
Use cfset[io]speed() to set termios speeds, per POSIX.
 1.10 17-Aug-1994  pk The man page says to disable input parity checking if `ap' is on.
 1.9 17-Aug-1994  pk Cleanup import, merge local changes.
 1.8 15-Aug-1994  pk Handle parity stuff more sensibly; `ep' and `op' take precedence over `ap'.
Update tty_compat().
 1.7 28-Apr-1994  pk Towards termios.
 1.6 16-Apr-1994  cgd renamed 'md' to 'mb'
 1.5 16-Apr-1994  cgd quick cut at adding 'md' for MDMBUF
 1.4 09-Mar-1994  cgd fix bin/140: use getcap(3) routines
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 05-Jun-1993  cgd patch from David Greenman and Rod Grimes (davidg@implode.rain.com and
rgrimes@agora.rain.com) to support 57600 and 115200 baud
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.2.2 24-Aug-1994  mycroft update from trunk
 1.11.2.1 24-Aug-1994  mycroft file subr.c was added on branch netbsd-1-0 on 1994-08-24 17:10:44 +0000
 1.33.46.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.33.40.1 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.3 08-Mar-1994  mycroft Clean up deleted files.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.24 06-Jul-2024  simonb Use the more BSDish "kill -HUP" rather than alien^Wposix style "kill -s HUP".
 1.23 04-Jul-2024  uwe ttys(5): revert duplicate description of kill -HUP

The old one should be easier to see now.
ok riastradh@
 1.22 03-Jul-2024  uwe ttys(5): touch up markup

Make the original SIGHUP example at the end of the text more visible
by using a display to show it. I will let riastradh@ decide how he
wants to deal with that duplicate. The one at the end also mentions
ttyflags(8) which refers to the flags documented in this manpage, so
it's a bit awkward to move that paragraph to the beginning of the
page.
 1.21 03-Jul-2024  riastradh ttys(5): Note how to effect changes.
 1.20 12-Feb-2015  aymeric branches: 1.20.28;
Fix previous commit by using tty00 as an example of dialin peripheral instead
of dialout dty00.
Thanks to mrg@ for pointing it out.
 1.19 12-Nov-2014  aymeric update the example to use dty00 instead of ttyd0 to reflect a current practice
 1.18 21-Apr-2012  roy branches: 1.18.10;
Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
 1.17 06-Oct-2006  elad branches: 1.17.40;
PR/13478: Greg A. Woods: some tty-related documentation fixes

Patch applied with "minor tweaks" from me, thanks!
 1.16 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.
 1.15 15-Jan-2002  wiz Sort sections and fix punctuation nit.
 1.14 07-Nov-2000  lukem provide obvious example of line syntax
 1.13 17-May-2000  fair Deal with PR 9427 - add wording to clarify what sending SIGHUP to init(8)
does and does not do. Also, while we're here, make the list of flags more
readable.
 1.12 15-Jan-1999  tsarna branches: 1.12.2;
Add a "class" entry to ttyent. Closes PR#4638.
 1.11 14-Nov-1998  scottr Grammar police: comprised of -> comprising
 1.10 29-Apr-1998  fair fix bad .Xr references
 1.9 22-Apr-1998  hubertf Add note on how to re-read this file (via PR 5341 by David Brownlee)
 1.8 20-Oct-1997  enami Fix .Nm usage.
 1.7 31-Jul-1996  thorpej RCS id police.
 1.6 17-Aug-1994  pk branches: 1.6.2;
Cleanup import, merge local changes.
 1.5 21-Mar-1994  cgd another flag
 1.4 12-Mar-1994  cgd add some new flags for /etc/ttys
 1.3 07-Aug-1993  cgd merge in changes from netbsd-0-9-ALPHA2
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 17-Aug-1994  pk Import 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd branches: 1.1.1.1.2;
initial import of 386bsd-0.1 sources
 1.1.1.1.2.1 07-Aug-1993  cgd kill extra "The" found by Andreas Schulz <ats@g386bsd.first.gmd.de>
 1.6.2.2 17-Aug-1994  pk Cleanup import, merge local changes.
 1.6.2.1 17-Aug-1994  pk file ttys.5 was added on branch netbsd-1-0 on 1994-08-17 20:10:42 +0000
 1.12.2.1 22-May-2000  he Pull up revision 1.13 (requested by fair):
Fix documentation regarding rtscts/mdmbuf/dtrcts. Fixes PR#9427.
 1.17.40.1 23-May-2012  yamt sync with head.
 1.18.10.2 14-Feb-2015  snj Pull up following revision(s) (requested by aymeric in ticket #510):
libexec/getty/ttys.5: revision 1.20
Fix previous commit by using tty00 as an example of dialin peripheral instead
of dialout dty00.
Thanks to mrg@ for pointing it out.
 1.18.10.1 11-Feb-2015  martin Pull up following revision(s) (requested by aymeric in ticket #508):
libexec/getty/ttys.5: revision 1.19
update the example to use dty00 instead of ttyd0 to reflect a current practice
 1.20.28.1 02-Aug-2025  perseant Sync with HEAD

RSS XML Feed