OpenBSD CVS

CVS log for src/usr.bin/radioctl/radioctl.c


[BACK] Up to [local] / src / usr.bin / radioctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.20 / (download) - annotate - [selected], Fri Jun 28 13:35:03 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.19: +7 -7 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Sat Dec 21 06:54:53 2013 UTC (10 years, 5 months ago) by guenther
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, 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, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored) to selected 1.20 (colored)

Don't use a non-constant format string with printf() that gcc can't
figure out how to trust.  Shuts up gcc -Wformat=2

ok deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 26 19:25:38 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.20 (colored)

unsigned char casts for ctype
ok okan

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jun 29 05:00:05 2010 UTC (13 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: 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, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.16: +7 -6 lines
Diff to previous 1.16 (colored) to selected 1.20 (colored)

isdigit() is more readable than comparing ascii codes

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 16 14:32:57 2008 UTC (15 years, 7 months ago) by jmc
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
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.20 (colored)

sync with previous, which made -a optional: update synopsis/usage()

Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 16 02:21:26 2008 UTC (15 years, 7 months ago) by jakemsr
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored) to selected 1.20 (colored)


make -a the default, for consistency with other *ctl programs ...

ok sthen@, looks good to oga@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 27 21:55:54 2007 UTC (16 years, 8 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.13: +6 -6 lines
Diff to previous 1.13 (colored) to selected 1.20 (colored)

style(9) fixes, optional flags without arguments come first;
while here, some spacing fixes

ok deanna@, jakemsr@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Feb 5 23:52:58 2006 UTC (18 years, 4 months ago) by jakemsr
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.12: +9 -2 lines
Diff to previous 1.12 (colored) to selected 1.20 (colored)

improve support for TV tuning via radio(4) by:
- adding a TV or radio mode flag to struct radio_info for radio(4)
  and a similar flag to struct TUNER for bktr(4) to make tuning
  mode explicit
- reporting the proper frequency when in TV mode
- documenting the mode flag and cleaning up some grammar

OK mickey@, robert@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 5 16:30:24 2005 UTC (18 years, 6 months ago) by robert
Branch: MAIN
Changes since 1.11: +88 -14 lines
Diff to previous 1.11 (colored) to selected 1.20 (colored)

Add support for tuning channel and channel set. This allows
the user to tune his bktr(4) card with radioctl(4).
Also add a -v option prints out the available choices of channel
sets.

ok mickey@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 28 17:15:11 2005 UTC (18 years, 10 months ago) by robert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.10: +18 -18 lines
Diff to previous 1.10 (colored) to selected 1.20 (colored)

Use proper type for 32 bit entity. s/long/int
This is needed for radioctl(1) to work on sparc64.

ok mickey@

Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 8 00:23:15 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored) to selected 1.20 (colored)

spacing

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 8 00:21:55 2004 UTC (19 years, 9 months ago) by jaredy
Branch: MAIN
Changes since 1.8: +18 -8 lines
Diff to previous 1.8 (colored) to selected 1.20 (colored)

deprecate the need of specifying -w for setting variables.
setting variables can be done with just name=value now,
like other ctl programs.
update manual, sort options, and fix a few mdoc macros

"go for it" deraadt

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 22 22:09:28 2002 UTC (22 years, 4 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.7: +56 -60 lines
Diff to previous 1.7 (colored) to selected 1.20 (colored)

open for writing only if needed so, accept multiple var assignments for -w; from meself and Vladimir Popov <jumbo@narod.ru>

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 2 19:18:55 2002 UTC (22 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.6: +8 -7 lines
Diff to previous 1.6 (colored) to selected 1.20 (colored)

make usage() exit(1) and look like sysctl(8), getopt returns int

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 1 22:03:49 2002 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored) to selected 1.20 (colored)

KNF

Revision 1.5 / (download) - annotate - [select for diffs], Tue Dec 18 18:42:19 2001 UTC (22 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.4: +1 -4 lines
Diff to previous 1.4 (colored) to selected 1.20 (colored)

fix an #include path, from Peter Valchev <pvalchev@sightly.net>

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 6 10:04:11 2001 UTC (22 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) to selected 1.20 (colored)

long leftovers

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 5 19:40:46 2001 UTC (22 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.2: +281 -257 lines
Diff to previous 1.2 (colored) to selected 1.20 (colored)

update from Nsk dudes

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 4 22:43:45 2001 UTC (22 years, 8 months ago) by gluk
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored) to selected 1.20 (colored)

$OpenBSD$ tag.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Oct 4 22:22:11 2001 UTC (22 years, 8 months ago) by gluk
Branch: MAIN
Diff to selected 1.20 (colored)

Configuration utility for radio devices.

Work by Vladimir Popov <jumbo@narod.ru>

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.