OpenBSD CVS

CVS log for src/sys/kern/tty_subr.c


[BACK] Up to [local] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Sun Aug 14 01:58:28 2022 UTC (21 months, 4 weeks ago) by jsg
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, HEAD
Changes since 1.35: +1 -2 lines
Diff to previous 1.35 (colored)

remove unneeded includes in sys/kern
ok mpi@ miod@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Dec 2 15:13:49 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.34: +8 -10 lines
Diff to previous 1.34 (colored)

firstc() and nextc() use an int of global static storage.  Make this
a pointer to a local variable to allow concurrent use if that ever
needs to happen in the future.
ok mpi kettenis

Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 1 17:04:26 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +5 -13 lines
Diff to previous 1.33 (colored)

late allocation of clist in putc() and b_to_q() hasn't been required in
a decade, because all tty drivers preallocate.
ok kettenis

Revision 1.33 / (download) - annotate - [select for diffs], Mon Mar 14 23:08:06 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: 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, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.32: +6 -6 lines
Diff to previous 1.32 (colored)

Change a bunch of (<blah> *)0 to NULL.

ok beck@ deraadt@

Revision 1.32 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:51 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.31 / (download) - annotate - [select for diffs], Wed Dec 10 02:44:47 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

convert bcopy to memcpy. ok millert

Revision 1.30 / (download) - annotate - [select for diffs], Mon Nov 3 03:08:00 2014 UTC (9 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

pass size argument to free()
ok doug tedu

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 13 15:52:38 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

bzero -> memset. for the speeds.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jul 12 18:43:32 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jul 9 15:46:22 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

use explicit_bzero for stack and freed variables

Revision 1.26 / (download) - annotate - [select for diffs], Thu May 24 19:46:27 2012 UTC (12 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

A couple of trivial spacing and comment fixes.

ok miod blambert

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 24 19:30:45 2012 UTC (12 years ago) by nicm
Branch: MAIN
Changes since 1.24: +3 -1 lines
Diff to previous 1.24 (colored)

unputc should clear the character removed in the buffers like getc.

ok matthew miod deraadt

Revision 1.24 / (download) - annotate - [select for diffs], Thu May 24 19:22:46 2012 UTC (12 years ago) by nicm
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

When clearing quote bits in getc and q_to_b, clear from the c_cf (the
first, that is being removed) rather than c_cl (the last).

ok matthew miod deraadt

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 11 17:35:23 2010 UTC (13 years, 7 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.22: +3 -12 lines
Diff to previous 1.22 (colored)

Kill unused cinit(), and skip some diagnostic printf if option
DIAGNOSTIC is not set. ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 13 21:10:34 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.21: +6 -4 lines
Diff to previous 1.21 (colored)

>15 year old buffer-read-1-byte-too-far in clrbits() [code I wrote, yeah]
with a subtle change to make it more clear (and more cache friendly)
netbsd pr 42312, found by tlambert@apple.com
ok miod

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jul 19 08:16:06 2009 UTC (14 years, 10 months ago) by blambert
Branch: MAIN
Changes since 1.20: +11 -15 lines
Diff to previous 1.20 (colored)

clalloc() can't fail, so there's no need to handle failure cases.
Change to void function.
Also, no need to have global tty stats pointer, so just return it
from clalloc, as the caller frees it immediately anyway.

ok miod@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Mar 31 22:40:34 2008 UTC (16 years, 2 months ago) by deraadt
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
Changes since 1.19: +7 -3 lines
Diff to previous 1.19 (colored)

purge memory in the tty clist rings as we advance; tested by a few

Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 7 15:00:20 2007 UTC (16 years, 9 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.18: +5 -7 lines
Diff to previous 1.18 (colored)

Use M_ZERO in a few more places to shave bytes from the kernel.

eyeballed and ok dlg@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Dec 21 12:43:49 2005 UTC (18 years, 5 months ago) by jsg
Branch: MAIN
CVS Tags: 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
Changes since 1.17: +23 -50 lines
Diff to previous 1.17 (colored)

ansi/deregister. No binary change.

Revision 1.6.16.5 / (download) - annotate - [select for diffs], Sat Jun 7 11:03:40 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.6.16.4: +1 -6 lines
Diff to previous 1.6.16.4 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync SMP branch to -current

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 2 04:00:16 2003 UTC (21 years ago) by deraadt
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, 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.16: +1 -6 lines
Diff to previous 1.16 (colored)

remove terms 3 and 4 of some of my licences

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:29:40 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync UBC branch to -current

Revision 1.6.16.4 / (download) - annotate - [select for diffs], Thu Mar 28 11:43:04 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.6.16.3: +3 -3 lines
Diff to previous 1.6.16.3 (colored) to branchpoint 1.6 (colored)

Merge in -current from about a week ago

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 14 01:27:05 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

First round of __P removal in sys

Revision 1.6.16.3 / (download) - annotate - [select for diffs], Wed Oct 31 03:26:29 2001 UTC (22 years, 7 months ago) by nate
Branch: SMP
Changes since 1.6.16.2: +3 -55 lines
Diff to previous 1.6.16.2 (colored) to branchpoint 1.6 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 28 13:03:56 2001 UTC (22 years, 8 months ago) by art
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.14: +3 -48 lines
Diff to previous 1.14 (colored)

QBITS is always defined, no point in having all those cofusing ifdefs.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Sep 28 09:14:07 2001 UTC (22 years, 8 months ago) by art
Branch: MAIN
Changes since 1.13: +1 -5 lines
Diff to previous 1.13 (colored)

Redundant prototypes.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jul 5 10:12:25 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.12: +1 -4 lines
Diff to previous 1.12 (colored)

Get rid of REAL_CLISTS. It was never implemented and the tentacles are
everywhhere.

Revision 1.6.16.2 / (download) - annotate - [select for diffs], Wed Jul 4 10:48:42 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.6.16.1: +3 -10 lines
Diff to previous 1.6.16.1 (colored) to branchpoint 1.6 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jun 22 14:14:09 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

KNF

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 16 12:52:58 2001 UTC (23 years, 1 month ago) by ho
Branch: MAIN
Changes since 1.10: +1 -8 lines
Diff to previous 1.10 (colored)

No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)

Revision 1.6.16.1 / (download) - annotate - [select for diffs], Mon May 14 22:32:44 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.6: +17 -13 lines
Diff to previous 1.6 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 25 03:50:53 2001 UTC (23 years, 4 months ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

spelling

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 27 16:13:46 2000 UTC (23 years, 8 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.8: +6 -6 lines
Diff to previous 1.8 (colored)

replace MALLOC/FREE w/ malloc/free for non-constant-sized memory allocations; art@ ok

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 4 16:39:47 2000 UTC (23 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +7 -3 lines
Diff to previous 1.7 (colored)

clear rings before freeing them

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 4 16:33:05 2000 UTC (23 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +7 -7 lines
Diff to previous 1.6 (colored)

KNF

Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 7 19:55:27 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, 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, OPENBSD_2_0_BASE, OPENBSD_2_0
Branch point for: SMP
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

a teeny bit more care

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 7 19:45:57 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

clear quotes not buf; from hbriceno@lcs.mit.edu

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 6 09:52:07 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.3: +9 -2 lines
Diff to previous 1.3 (colored)

catq: must spltty before playing

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 5 22:56:43 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.2: +15 -0 lines
Diff to previous 1.2 (colored)

catq() optimizations; if to queue is empty, swapping clist structures is faster

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 3 17:20:12 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.1: +13 -7 lines
Diff to previous 1.1 (colored)

From NetBSD: 960217 merge

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:52:46 1995 UTC (28 years, 8 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:52:46 1995 UTC (28 years, 8 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.