OpenBSD CVS

CVS log for src/sbin/kbd/kbd_wscons.c


[BACK] Up to [local] / src / sbin / kbd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Thu May 5 16:12:42 2022 UTC (2 years, 1 month ago) by bluhm
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: +22 -12 lines
Diff to previous 1.35 (colored)

Add error handling if setting the keyboard encoding fails.  After
open of all /dev/wskbd* devices failed, report the error from the
first one.  Also wrap long lines.
OK mpi@

Revision 1.35 / (download) - annotate - [select for diffs], Sun Apr 17 17:33:50 2022 UTC (2 years, 1 month ago) by bluhm
Branch: MAIN
Changes since 1.34: +15 -4 lines
Diff to previous 1.34 (colored)

When kbd -l was executed as regular user, it failed silently.  Try
to open all wskbd devices, but report the first error and exit if
none was successful.
OK deraadt@ espie@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jan 22 06:24:07 2020 UTC (4 years, 4 months ago) by tedu
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.33: +2 -2 lines
Diff to previous 1.33 (colored)

remove semicolons not needed after } statements. ok deraadt

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:44 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.32: +6 -6 lines
Diff to previous 1.32 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Oct 3 13:03:49 2016 UTC (7 years, 8 months ago) by jca
Branch: MAIN
CVS Tags: 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
Changes since 1.31: +4 -10 lines
Diff to previous 1.31 (colored)

Those while loops look better written as for loops

ok kettenis@

Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 30 12:07:23 2016 UTC (7 years, 8 months ago) by kettenis
Branch: MAIN
Changes since 1.30: +81 -17 lines
Diff to previous 1.30 (colored)

Use WSKBDIO_GETENCODINGS ioctl to generate a list of supported keyboard
encodings.  Restores functionality lost when removing the kvm groveling
code.

ok deraadt@, jca@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 27 22:03:49 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +4 -7 lines
Diff to previous 1.29 (colored)

remove more kvm code

Revision 1.29 / (download) - annotate - [select for diffs], Mon Sep 26 21:19:02 2016 UTC (7 years, 8 months ago) by kettenis
Branch: MAIN
Changes since 1.28: +1 -90 lines
Diff to previous 1.28 (colored)

Remove kvm groveling code.  To restore the lost functionality we need to
implement something like a WSKBDIO_GETENCODINGS ioctl that fetches a list
of possible encodings for the specified keyboard from the kernel.  Until
that happens, kbd -l will simple show the same harcoded list of possible
encodings as the installer does.

Prompted by deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:59 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.27: +2 -3 lines
Diff to previous 1.27 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 26 05:22:26 2014 UTC (10 years, 2 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.26: +6 -6 lines
Diff to previous 1.26 (colored)

Drop Apollo Domain keyboard support, now that hp300 has bitten the dust.
Replace it with SGI serial keyboard support (zskbd@zs@hpc).

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 13 10:15:19 2012 UTC (11 years, 10 months ago) by shadchin
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: +4 -4 lines
Diff to previous 1.25 (colored)

Use NULL instead of 0 for pointers

ok gilles@, guenther@

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 23 17:41:21 2008 UTC (15 years, 11 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, OPENBSD_4_8_BASE, OPENBSD_4_8, 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
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

Do not compile the ``kbd needs to be rebuilt'' test if -DNOKVM. Should shave
a few bytes off the installation media filesystems.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 31 22:09:37 2006 UTC (17 years, 10 months ago) by miod
Branch: MAIN
CVS Tags: 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
Changes since 1.23: +5 -4 lines
Diff to previous 1.23 (colored)

Now that we can report either LK201 or LK401 as the keyboard type, do the
right thing there.

Revision 1.23 / (download) - annotate - [select for diffs], Sat May 7 15:31:23 2005 UTC (19 years, 1 month ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.22: +53 -45 lines
Diff to previous 1.22 (colored)

Add support for the domain keyboards, and simplify the kbd -l logic.

Revision 1.22 / (download) - annotate - [select for diffs], Sat May 7 15:14:00 2005 UTC (19 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.21: +10 -2 lines
Diff to previous 1.21 (colored)

Check for kvm_nlist failure to retrieve all keyboard map symbols, and do
not dispaly garbage in this case.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 27 05:21:19 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +42 -61 lines
Diff to previous 1.20 (colored)

provide enough of a -l mode in non-kvm snooping mode, and krw can shrink
the install script even more

Revision 1.20 / (download) - annotate - [select for diffs], Fri Oct 8 19:30:31 2004 UTC (19 years, 8 months ago) by jaredy
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

it's kbd(8) not kbd(1)

Revision 1.19 / (download) - annotate - [select for diffs], Fri Oct 8 17:26:35 2004 UTC (19 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Use LINE_MAX, not _POSIX2_LINE_MAX.  OK miod@

Revision 1.18 / (download) - annotate - [select for diffs], Fri Oct 8 13:23:41 2004 UTC (19 years, 8 months ago) by jaredy
Branch: MAIN
Changes since 1.17: +5 -3 lines
Diff to previous 1.17 (colored)

fix an overflow in the encoding/variant parsing.  ok miod henning

Revision 1.17 / (download) - annotate - [select for diffs], Thu Sep 16 09:53:56 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +10 -4 lines
Diff to previous 1.16 (colored)

shrink the code in the -DNOKVM case

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 9 03:21:52 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

lint says toss unused variable away

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 10 00:00:57 2003 UTC (20 years, 11 months ago) by david
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

add missing includes
ok deraadt@ millert@ tedu@

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jul 2 21:44:58 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +5 -1 lines
Diff to previous 1.13 (colored)

missing protos

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 2 21:10:37 2003 UTC (21 years ago) by maja
Branch: MAIN
Changes since 1.12: +1 -6 lines
Diff to previous 1.12 (colored)

remove clause 3 and 4. -moj

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 30 19:10:00 2003 UTC (21 years, 2 months ago) by jsyn
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

typos/grammar

these are the only instances of s/WSKBD/WDKBD/ needed
in the tree; ok miod@

Revision 1.11 / (download) - annotate - [select for diffs], Sun Feb 16 02:08:02 2003 UTC (21 years, 3 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.10: +10 -1 lines
Diff to previous 1.10 (colored)

Provide a wskbd type for gsc keyboards, make gsckbd use it, and take advantage
of it in kbd(8) to work correctly with such a keyboard.
Reminded by maja some time ago.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 12 09:00:40 2003 UTC (21 years, 4 months ago) by maja
Branch: MAIN
Changes since 1.9: +10 -1 lines
Diff to previous 1.9 (colored)

Add support for WSKBD_TYPE_HIL. -moj ok miod@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jul 3 22:32:33 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.8: +4 -8 lines
Diff to previous 1.8 (colored)

ansi

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 29 20:45:58 2002 UTC (22 years ago) by maja
Branch: MAIN
Changes since 1.7: +10 -1 lines
Diff to previous 1.7 (colored)

Add support for WSKBD_TYPE_SUN5. -moj ok miod@

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 22 08:21:02 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.6: +22 -20 lines
Diff to previous 1.6 (colored)

strcpy, sprintf death; mpech ok

Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 12 02:16:01 2002 UTC (22 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.5: +7 -1 lines
Diff to previous 1.5 (colored)

kbd setting code for the installer.  kbd needs to be compiled without KVM
support.  smat@acm.org, miod, and krw.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 19 01:49:58 2002 UTC (22 years, 3 months ago) by maja
Branch: MAIN
Changes since 1.4: +10 -1 lines
Diff to previous 1.4 (colored)

Add support for sparc64 and sun keyboards. -moj

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 7 18:26:14 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.3: +8 -6 lines
Diff to previous 1.3 (colored)

major -Wall cleanup, almost complete

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 4 20:05:06 2001 UTC (23 years ago) by maja
Branch: MAIN
Changes since 1.2: +31 -2 lines
Diff to previous 1.2 (colored)

Add support for vax lk201 keyboard. Add code to check if new variants or
encodings exists in kernel. If so suggest to rebuild kbd(1). -moj

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 4 15:49:10 2001 UTC (23 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Typo in error string; grange@rt.mipt.ru

Revision 1.1 / (download) - annotate - [select for diffs], Thu Mar 8 08:00:16 2001 UTC (23 years, 3 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9

Add support for wscons. Support for PC, USB and ADB keyboards.
Enabled for i386 and powerpc. This makes it possible to list
which encodings are known by the kernel.

kbd_wscons.c needs struct wscons_keydesc from the newly commited
<dev/wscons/wsksymvar.h>. -moj  ok @aaron

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.