summaryrefslogtreecommitdiffstats
path: root/bin/chio/chio.c
Commit message (Collapse)AuthorAgeFilesLines
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-1/+1
|
* Quiet warnings about copyright[].obrien2003-05-011-0/+2
|
* Remove double #include <sys/cdef.h> and __FBSDID.dwmalone2002-07-011-2/+0
| | | | | PR: 40053 Submitted by: Dan Lukes <dan@obluda.cz>
* Consistently use __FBSDIDobrien2002-06-301-0/+2
|
* Replace use of __progname with the functionally identical and moremarkm2002-03-241-15/+14
| | | | acceptable getprogname(3).
* Use ANSI-99 int names (uintXX_t) over traditional BSD int namesimp2002-03-051-5/+6
| | | | (u_intXX_t).
* Fix a boatload of warnings inspired by lint, a commercial lintmarkm2002-02-221-16/+14
| | | | and WARNS=4.
* Modernization effort for bin/c*:imp2002-02-021-88/+44
| | | | | | | | | | | | o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Approved by: arch@, new style(9)
* Fix warnings on alpha and re-enable WARNS=2.mikeh2001-07-041-13/+17
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Constify and lockdown with WARNS=2.mikeh2001-07-031-21/+21
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> MFC after: 2 weeks
* Add two new features to chio(1):ken2000-09-181-9/+274
| | | | | | | | | | | | | | | | | | | | | | | | | - The ability to specify elements by volume tag instead of their actual physical location. e.g., instead of: chio move slot 3 slot 4 you would now use: chio move voltag FOO slot 4 - The ability to return an element to its previous location, as specified by the source element. e.g., instead of: chio move drive 0 slot 4 you would now use: chio return drive 0 or chio return voltag FOO These features will obviously only work with changers that support volume tags and/or source element IDs. chio(1) should fail gracefully if the user attempts to use these new features and the source element ID or volume tag are not found. PR: bin/21178 Submitted by: "C. Stephen Gunn" <csg@waterspout.com> Reviewed by: ken
* Don't explicitly declare optarg and optind. These are declared inimp2000-08-161-1/+0
| | | | unistd.h, which is already included.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Correct some style issues in my previous commit.kris1999-07-221-2/+2
| | | | Submitted by: bde
* Undo some of the reversions from previous revisions, and attempt tokris1999-06-211-52/+83
| | | | | | minimize diffs with {Net,Open}BSD Hinted-More-Or-Less-By: bde
* Changes from OpenBSD:kris1999-06-071-12/+23
| | | | | | | | | | * Better usage() - correct syntax, display available commands instead of examples * Accept command abbreviations * sprintf -> snprintf (for paranoia) * manpage capitalisation tweak Obtained from: OpenBSD
* getopt(3) returns -1 not EOF.imp1999-05-231-2/+2
|
* First set of fixes to keep egcs happy. These include {} around singleimp1999-04-251-1/+2
| | | | | | | | | | statement if blocks[*] when the else could be ambiguous, not defaulting to int type and removal of some unused variables. [*] This is explicitly allowed by style(9) when the single statement spans more than one line. Reviewed by: obrien, chuckr
* Fixed printf format errors (new bugs in rev.1.7). Fixed a spelling errorbde1998-12-071-7/+7
| | | | | (rev.1.7 blew away most of rev.1.2-1.6; I'm only fixing blowing away of rev.1.4).
* Fix 'chio params' so that it actually prints out the current picker.ken1998-10-011-0/+7
| | | | | | (This was broken when the volume tag changes went in.) Submitted by: Josef Karthauser <joe@pavilion.net>
* Updated the ch(4) driver and chio(1) command to include volumegibbs1998-09-151-126/+361
| | | | | | | | | | | | | | | | | tag support. These changes have been tested with a Breeze Hill Q47 DLT and a DEC DLT2500 media changer. The latter has no volume tag support. The chio(1) command was updated to include various flags to the status subcommand. These flags can be used to select additional information to be displayed (like volume tags). A new chio(1) subcommand named 'voltag' has been added which allows for changes to volume tags inside the media changer controller. This could not be tested as the Q47 does not provide the functio- nality. Submitted by: Hans Huebner
* Do not remove include of <sys/param.h> and <sys/types.h>. They shouldcharnier1998-05-131-1/+2
| | | | | be here before including almost any POSIX header. Requested by: Bruce
* Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.charnier1998-05-061-6/+5
|
* spellingeivind1998-02-111-2/+2
| | | | Obtained from: OpenBSD (src/bin/chio/chio.c rev 1.7) by todd@openbsd.org
* Do not use __progname.charnier1997-06-061-16/+12
|
* Remove unused variables. Suppress -Wall warnings. Check for potential buffercharnier1997-06-021-5/+13
| | | | | overflow. Display available command in usage string. Obtained from: {Net|Open}BSD
* Import Jason Thorpe's contribution for an updated SCSI media changerjoerg1997-03-061-0/+663
device (now, finally!).
OpenPOWER on IntegriCloud