OpenBSD CVS

CVS log for src/libexec/getty/subr.c


[BACK] Up to [local] / src / libexec / getty

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Thu Jun 14 23:19:27 2018 UTC (5 years, 11 months ago) by gsoares
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, 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, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

silence a compiler warning
OK millert

Revision 1.27 / (download) - annotate - [select for diffs], Sat May 27 07:37:36 2017 UTC (7 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.26: +1 -73 lines
Diff to previous 1.26 (colored)

unifdef XXX_DELAY which is older than i am

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 16 15:41:10 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

More "(<blah> *)0" -> NULL, avoiding any stdarg functions.

Feedback millert@ kettenis@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Dec 22 08:54:16 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

assign pointers to NULL rather than 0

Revision 1.24 / (download) - annotate - [select for diffs], Fri Aug 28 20:28:50 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

remove excess tab at end of line (how did they afford the extra bytes in
the dark ages?)

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 16 04:31:25 2015 UTC (8 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.22: +1 -41 lines
Diff to previous 1.22 (colored)

remove ancient support for edited hostnames. ok deraadt (long ago)

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 12 17:01:23 2014 UTC (10 years, 1 month ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.21: +1 -3 lines
Diff to previous 1.21 (colored)

remove the prototype for compatflags() which was removed in 2013.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 10 20:56:59 2013 UTC (10 years, 5 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.20: +1 -162 lines
Diff to previous 1.20 (colored)

Drop the f0, f1, f2 gettytab capabilities that were used to poke
magic numbers into sgttyb.  The "modern" replacement for f# is the
set of i#, o#, c#, l# to poke magic numbers into termios.
ok miod@

Revision 1.20 / (download) - annotate - [select for diffs], Sun Apr 21 04:25:49 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.19: +12 -13 lines
Diff to previous 1.19 (colored)

use poll + nanosleep instead of select with a fixed size fd_set
ok tedu

Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:31 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: 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.18: +1 -6 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Mon Jun 2 19:38:24 2003 UTC (21 years ago) by millert
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, 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.17: +3 -7 lines
Diff to previous 1.17 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 3 23:39:03 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.16: +13 -20 lines
Diff to previous 1.16 (colored)

KNF

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 27 06:36:40 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

unsigned to unsigned int

Revision 1.15 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:30 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 19 01:08:14 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +25 -25 lines
Diff to previous 1.13 (colored)

clean & KNF

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 8 21:18:08 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

-Wall

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jun 11 15:18:50 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.11: +5 -6 lines
Diff to previous 1.11 (colored)

strncpy vs strlcpy, some strlen missuse.
some other related minor cleanups, and spaces.
millert@ ok

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jan 28 19:34:28 2001 UTC (23 years, 4 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored)

$OpenBSD$

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 6 22:51:42 2000 UTC (23 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)

use fd_set instead of int

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 8 04:30:19 2000 UTC (23 years, 8 months ago) by aaron
Branch: MAIN
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

Convert this strncat() to strlcat() and avoid one-byte oflow; millert@ ok

Revision 1.8 / (download) - annotate - [select for diffs], Sun Apr 6 08:43:44 1997 UTC (27 years, 2 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, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

clean -Wall

Revision 1.7 / (download) - annotate - [select for diffs], Tue Dec 17 19:33:55 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.6: +7 -6 lines
Diff to previous 1.6 (colored)

Add traditional handling of all upper-case input

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 16 20:04:45 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.5: +14 -2 lines
Diff to previous 1.5 (colored)

Implement more tty flags for better portability from other systems:

	XCASE - canonical input/output processing
	IUCLC - translate uppercase to lowercase on input
	OLCUC - translate lowercase to uppercase on output
	OCRNL - translate carriage return to newline on output
	ONOCR - do not output carriage return at column 0
	ONLRET - newline performs carriage return function

In addition the tty compatibility interface supports LCASE properly.

Look at termios(4) for a more complete description of the above flags.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 16 17:14:03 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

strncat like THIS

Revision 1.4 / (download) - annotate - [select for diffs], Mon Dec 16 14:54:12 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

yet another strncat botch

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 31 09:53:42 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

buf oflow

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 7 17:20:45 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

expand hostname to 48 chars; pointed out by msaitoh@spa.is.uec.ac.jp, netbsd pr#2676

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:17 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:43:17 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.