OpenBSD CVS

CVS log for src/sys/dev/cons.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30 / (download) - annotate - [select for diffs], Sat Jul 2 08:50:41 2022 UTC (23 months, 1 week ago) by visa
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.29: +1 -22 lines
Diff to previous 1.29 (colored)

Remove unused device poll functions.

Also remove unneeded includes of <sys/poll.h> and <sys/select.h>.

Some addenda from jsg@.

OK miod@ mpi@

Revision 1.29 / (download) - annotate - [select for diffs], Fri Apr 3 08:24:52 2020 UTC (4 years, 2 months ago) by mpi
Branch: MAIN
CVS Tags: 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
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Fix incoherencies of errors returned by various *kqfilter routines.

EOPNOTSUPP is returned  when there's no "filterops" for a given fd.
EINVAL when the requested filter isn't supported by the "filterops".
ENXIO means the underlying device is no longer valid/present.

ok visa@

Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 19 08:59:52 2018 UTC (6 years, 3 months ago) by mpi
Branch: MAIN
CVS Tags: 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
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Remove almost unused `flags' argument of suser().

The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.

No objection from millert@, ok tedu@, bluhm@

Revision 1.27 / (download) - annotate - [select for diffs], Sat Dec 30 20:46:59 2017 UTC (6 years, 5 months ago) by guenther
Branch: MAIN
Changes since 1.26: +1 -2 lines
Diff to previous 1.26 (colored)

Delete unnecessary <sys/file.h> includes

ok millert@ krw@

Revision 1.26 / (download) - annotate - [select for diffs], Tue May 17 23:43:47 2016 UTC (8 years ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.25: +3 -4 lines
Diff to previous 1.25 (colored)

Allow sendsyslog(2) with LOG_CONS even when /dev/console has not
been opened during init(8).  Only log with cnwrite() if cn_devvp
exists, otherwise use cnputc() as fallback.  While there move extern
declarations to dev/cons.h.
input and OK deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:46 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.24: +1 -2 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Sun Sep 14 14:17:24 2014 UTC (9 years, 8 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)

remove uneeded proc.h includes
ok mpi@ kspillner@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jul 4 16:52:41 2011 UTC (12 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, 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, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Nuke the useless D_KQFILTER flag and just check that d_kqfilter is
filled in. Move D_CLONE down to 0x0001 as suggested by thib.

ok deraadt thib

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jul 2 22:20:07 2011 UTC (12 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

kqueue attach functions should return an errno or 0, not a plain 1. Fix
the obvious cases to return EINVAL and ENXIO.

ok tedu deraadt

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 19 21:53:36 2011 UTC (13 years, 1 month ago) by chl
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Fix dead store. Instead of just remove it, use it properly.

Found by LLVM/Clang Static Analyzer.

ok miod@ krw@

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jun 26 23:24:44 2010 UTC (13 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

Don't #include <sys/user.h> into files that don't need the stuff
it defines.  In some cases, this means pulling in uvm.h or pcb.h
instead, but most of the inclusions were just noise.  Tested on
alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax,
mostly by krw and naddy.
ok krw@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 9 15:44:17 2010 UTC (14 years ago) by miod
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Move declaration of cn_tab from dev/cons.c to dev/cninit.c, or appropriate
md files for ports which do not use dev/cninit.c. This gets rid of a common
at kernel link time.
feedback drahn@ ok deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 17 18:50:58 2007 UTC (16 years, 11 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, 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
Changes since 1.17: +15 -43 lines
Diff to previous 1.17 (colored)

ansify/de-register

ok miod@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 1 03:37:23 2006 UTC (17 years, 7 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

poll errors should be POLLERR, not some random E value
from alexandre ratchov.  ok claudio

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 31 21:22:34 2005 UTC (18 years, 5 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Split the d_type field of cdevsw entries into d_type and d_flags for clarity.
Discussed with and ok deraadt@ millert@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Dec 30 18:11:25 2005 UTC (18 years, 5 months ago) by miod
Branch: MAIN
Changes since 1.14: +6 -6 lines
Diff to previous 1.14 (colored)

Stop TIOCCONS from silently doing nothing if the console device has CN_REMOTE
priority; this might have been bright 12 years ago, but this is wrong (and
does not rely upon any decent semantic). agreed krw@

Revision 1.7.16.3 / (download) - annotate - [select for diffs], Thu Feb 19 10:56:13 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.7.16.2: +14 -10 lines
Diff to previous 1.7.16.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.14 / (download) - annotate - [select for diffs], Tue Sep 23 16:51:12 2003 UTC (20 years, 8 months ago) by millert
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
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Replace select backends with poll backends.  selscan() and pollscan()
now call the poll backend.  With this change we implement greater
poll(2) functionality instead of emulating it via the select backend.
Adapted from NetBSD and including some changes from FreeBSD.
Tested by many, deraadt@ OK

Revision 1.13 / (download) - annotate - [select for diffs], Fri Aug 15 20:32:16 2003 UTC (20 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

change arguments to suser.  suser now takes the process, and a flags
argument.  old cred only calls user suser_ucred.  this will allow future
work to more flexibly implement the idea of a root process.  looks like
something i saw in freebsd, but a little different.
use of suser_ucred vs suser in file system code should be looked at again,
for the moment semantics remain unchanged.
review and input from art@  testing and further review miod@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jun 16 18:44:11 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.11: +10 -6 lines
Diff to previous 1.11 (colored)

Avoid a NULL deref in cnkqfilter() for certain cases.  Modeled after
cnwrite(); closes PR 3317.

Revision 1.7.16.2 / (download) - annotate - [select for diffs], Sat Jun 7 11:02:28 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.7.16.1: +2 -6 lines
Diff to previous 1.7.16.1 (colored) to branchpoint 1.7 (colored)

Sync SMP branch to -current

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:01 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.10: +2 -6 lines
Diff to previous 1.10 (colored)

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

Revision 1.7.16.1 / (download) - annotate - [select for diffs], Mon May 14 22:23:00 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.7: +39 -4 lines
Diff to previous 1.7 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.10 / (download) - annotate - [select for diffs], Tue Apr 17 04:30:49 2001 UTC (23 years, 1 month ago) by aaron
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, UBC_BASE, UBC, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.9: +12 -1 lines
Diff to previous 1.9 (colored)

Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok

Revision 1.9 / (download) - annotate - [select for diffs], Thu Mar 1 20:54:32 2001 UTC (23 years, 3 months ago) by provos
Branch: MAIN
Changes since 1.8: +18 -1 lines
Diff to previous 1.8 (colored)

port kqueue changes from freebsd, plus all required openbsd glue.
okay deraadt@, millert@
from jlemon@freebsd.org:
extend kqueue down to the device layer, backwards compatible approach
suggested by peter@freebsd.org

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 9 20:48:24 2001 UTC (23 years, 4 months ago) by mickey
Branch: MAIN
Changes since 1.7: +11 -4 lines
Diff to previous 1.7 (colored)

check dev in cn_tab for sanity, better than pagefaulting

Revision 1.7 / (download) - annotate - [select for diffs], Sun Apr 21 22:19:48 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_8_BASE, OPENBSD_2_8, 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.6: +3 -3 lines
Diff to previous 1.6 (colored)

partial sync with netbsd 960418, more to come

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 18 04:05:39 1996 UTC (28 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Fix includes ordering.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Mar 30 02:03:43 1996 UTC (28 years, 2 months ago) by mickey
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Add $OpenBSD$, fix comments.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 2 00:29:23 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.3: +0 -0 lines
Diff to previous 1.3 (colored)

From NetBSD: sync with 960217 sources

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 27 09:43:19 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.2: +5 -4 lines
Diff to previous 1.2 (colored)

From NetBSD: update to 960217 sources

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 14 06:10:16 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

from netbsd; fix definition of nullcnpollc, and add a prototype for it

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