OpenBSD CVS

CVS log for src/sbin/wsconsctl/wsconsctl.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:46 2019 UTC (4 years, 11 months ago) by deraadt
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, HEAD
Changes since 1.31: +5 -5 lines
Diff to previous 1.31 (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.31 / (download) - annotate - [select for diffs], Fri Jul 21 20:38:20 2017 UTC (6 years, 10 months ago) by bru
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
Changes since 1.30: +11 -4 lines
Diff to previous 1.30 (colored)

Add fields for wsmouse/touchpad configuration.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 6 17:33:39 2017 UTC (7 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.29: +3 -4 lines
Diff to previous 1.29 (colored)

document -=; while here, simplify things so that we don;t add a separate
usage every time we think of a new way to use this;

-= bits from anton lindqvist
ok tb tom

Revision 1.29 / (download) - annotate - [select for diffs], Fri May 8 19:12:51 2015 UTC (9 years, 1 month ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.28: +5 -3 lines
Diff to previous 1.28 (colored)

Add a new `don't read back' flag for variables, to prevent reading their value
after modifying them. Give this flag to `display.focus', since screen
switching is asynchronous, and reading back will return the screen we are
switching from if the switch has not completed yet.

Also, disallow -= and += syntax for display.focus, as it doesn't make any sense.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jul 14 08:28:47 2012 UTC (11 years, 11 months ago) by shadchin
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, 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
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

ansify

ok deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jul 14 08:25:12 2012 UTC (11 years, 11 months ago) by shadchin
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

zap whitespace

ok deraadt@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Aug 20 00:20:55 2010 UTC (13 years, 9 months ago) by fgsch
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.25: +125 -163 lines
Diff to previous 1.25 (colored)

Don't silently ignore errors if we cannot open the device. While I'm here
simplify the code and apply some style(9).
Discussed with and ok miod@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 1 16:47:58 2010 UTC (13 years, 11 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.24: +170 -62 lines
Diff to previous 1.24 (colored)

Learn wsconsctl to handle more than the first keyboard, mouse and display.
E.g. if we have a /dev/wskbd1 keyboard1 will show up when doing a -a.

wsconsctl keyboard1 will now show you all variables for keyboard1.

feedback and ok miod@. -moj

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jul 19 15:34:45 2009 UTC (14 years, 10 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

if variable has a NOAUTO flag set;  skip printing.
requested & diff tested by david@
ok miod@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 15 21:38:16 2009 UTC (14 years, 10 months ago) by martynas
Branch: MAIN
Changes since 1.22: +7 -7 lines
Diff to previous 1.22 (colored)

now that set print is in one place;  it is possible to suppress var
making n flag work as expected for set.  ok miod@

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jul 15 20:32:28 2009 UTC (14 years, 10 months ago) by martynas
Branch: MAIN
Changes since 1.21: +15 -4 lines
Diff to previous 1.21 (colored)

for rw query and print value that has actually been set in the
similar way that mixerctl does.  so that info for setting things
like brightness makes sense (since we scale, like, 8 values to
per-cent).  also, it consistifies get/put, shrinks code since we
don't need to do that in every single 'driver'.  ok miod@

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:06 2008 UTC (15 years, 11 months ago) by ray
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.20: +1 -8 lines
Diff to previous 1.20 (colored)

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Nov 26 13:36:33 2007 UTC (16 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.19: +4 -2 lines
Diff to previous 1.19 (colored)

if no arguments given, assume a nice default; ok miod jakemsr deanna

Revision 1.19 / (download) - annotate - [select for diffs], Mon May 21 07:54:17 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

options w/o args come before options which take args;

Revision 1.18 / (download) - annotate - [select for diffs], Sun May 20 15:22:23 2007 UTC (17 years ago) by robert
Branch: MAIN
Changes since 1.17: +17 -5 lines
Diff to previous 1.17 (colored)

add a -f option to allow specifing an alternative
control device; "put it in" miod@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Apr 1 23:13:53 2006 UTC (18 years, 2 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

Do not attempt to print parameters which turned out to be dead; fixes PR#5066.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Aug 9 18:39:22 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.15: +6 -12 lines
Diff to previous 1.15 (colored)

minor cleanup

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 30 23:28:23 2004 UTC (19 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored)

mark down some punctuation, and sync usage();

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 23 07:37:23 2004 UTC (19 years, 11 months ago) by david
Branch: MAIN
Changes since 1.13: +46 -53 lines
Diff to previous 1.13 (colored)

make -w optional; ok miod@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jul 10 00:00:58 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.12: +2 -1 lines
Diff to previous 1.12 (colored)

add missing includes
ok deraadt@ millert@ tedu@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Dec 11 16:58:51 2002 UTC (21 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.11: +4 -8 lines
Diff to previous 1.11 (colored)

ansi

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 22 20:36:06 2002 UTC (22 years ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.10: +19 -13 lines
Diff to previous 1.10 (colored)

implement new type: %%, given min,cur,max print the value in %%.
also accepts -= and += to adjust the value.
implement new flags: INIT, DEAD.
init means to prefetch the variable before setting, where
dead means to assume the variable is not implemented
(enottty was observed, most likely), set by the low-level
routines (upon observing the ioctl results).
add the variables for screen brightness,contrast,backlight --
all are precent-type, also rework the display.c to be easier
on the eyes. requested, commented and helped upon by miod@ and drahn@.
there was a discussion on wheather truncate or round
(the thin and think ends of the same egg) where
decided to allow it to truncate until demanded
otherwise by the eager masses.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:38 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Wed Oct 24 17:45:59 2001 UTC (22 years, 7 months ago) by miod
Branch: MAIN
Changes since 1.8: +4 -5 lines
Diff to previous 1.8 (colored)

- repair usage() output
- when changing display.foo settings, print "display.foo -> bar" like done
for mouse.* and keyboard.*
- use warn() over err() whenever possible and appropriate code path to display
as much as useful information as possible even if one ioctl fails. This is
especially useful to get the display.* settings via wsconsctl -a if your
mouse can't be probed, like on the iBook.

ok mcikye@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 26 17:35:13 2001 UTC (22 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

minor cleanups

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 15 19:29:04 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.6: +34 -20 lines
Diff to previous 1.6 (colored)

paste open for each use, cache file descriptors

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jul 7 18:26:22 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

major -Wall cleanup, almost complete

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 30 02:12:57 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.4: +104 -99 lines
Diff to previous 1.4 (colored)

make it more sysctl-like, ommit -kmd switches.
no backwards compatibility keeped.
add ability to change screens from cmd line.

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 18 08:06:08 2001 UTC (23 years ago) by mickey
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

why exit if returns

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 5 22:47:13 2001 UTC (23 years, 4 months ago) by matthieu
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

when flags are FLG_WRONLY, say "write only" instead of "read only"

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jan 30 06:50:12 2001 UTC (23 years, 4 months ago) by aaron
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Change /dev/ttyE* to /dev/ttyC* to reflect reality in OpenBSD.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 1 23:52:45 2000 UTC (23 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8

wscons control tool; initial import from newtbsd tree

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.