Commit Graph

28 Commits

Author SHA1 Message Date
kml ca59ae7c5c 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.
1999-01-15 23:44:32 +00:00
tsarna 13b21dc12c Add PPP autodetect, based on code from FreeBSD via OpenBSD. 1998-10-12 18:03:48 +00:00
mrg 2beab49a06 - 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
1998-07-06 06:45:41 +00:00
mrg d5088f6ab0 remove register. 1998-03-30 01:52:02 +00:00
thorpej 8cbf1ce96f Const'ify some things, rename local puts() to xputs(), since it has
a different prototype than the one in <stdio.h>
1997-11-18 21:29:11 +00:00
cjs fd97c4a995 Add uugetty capability. 1997-10-19 23:46:07 +00:00
mikel 64521eb343 use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
1997-08-06 07:22:24 +00:00
mikel a6da6f6585 don't include <signal.h> twice 1997-08-06 05:40:28 +00:00
tls 80eef670d5 fix a couple of unlikely buffer overflows. 1997-04-29 21:01:54 +00:00
gwr d2ae1a2c2f After the chown(ttyn, 0, 0), call ttyaction(ttyn, "getty", "root") 1996-11-14 19:25:50 +00:00
thorpej 3ff0b1a74c RCS id police. 1996-07-31 20:33:02 +00:00
jtc 01120f4477 Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 23:46:50 +00:00
mycroft c16462643c Make sure that the user name cannot ever be interpreted as an option to
login(8).  Note: This does *not* fix any security holes.
1996-02-08 06:19:14 +00:00
cgd 6c5f148828 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.)
1995-08-13 04:08:27 +00:00
jtc 1847eaed9f sys/termios.h -> termios.h 1995-06-19 22:47:37 +00:00
mycroft 7e59c0d1fc Fix typo in date format. 1994-09-18 00:14:39 +00:00
pk 6b619f18ed Use tcflush(). 1994-09-05 09:09:43 +00:00
pk 437ee32a52 Set control flags properly while in read mode.
Supply process ID when syslogging.
1994-09-05 08:52:49 +00:00
mycroft 2f65aa5da5 Fix pad insertion for termios. 1994-08-24 16:42:23 +00:00
mycroft d72774f29d Use cfset[io]speed() to set termios speeds, per POSIX. 1994-08-24 07:54:50 +00:00
pk fe82241620 Cleanup import, merge local changes. 1994-08-17 20:10:27 +00:00
pk 7243f6f6fb Towards termios. 1994-04-28 22:12:28 +00:00
pk 0816b2a18c TIOCFLUSH requires argument 1994-03-17 13:55:48 +00:00
cgd 03fe423b30 fix bin/140: use getcap(3) routines 1994-03-09 04:59:55 +00:00
mycroft 7aaedc30b0 We don't need or want set_ttydefaults(). 1994-03-08 06:40:04 +00:00
mycroft cea87043b4 Add some more magic cookies for the `im' string to display info from
uname(2):

	%s	sysname
	%r	release
	%v	version
	%m	machine
1993-08-29 22:47:03 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00