summaryrefslogtreecommitdiffstats
path: root/lib/libcam/camlib.c
Commit message (Collapse)AuthorAgeFilesLines
* Add __FBSDID()s to libcamdillon2001-09-301-2/+3
|
* Make sure you don't have a file descriptor leak for the 'real'mjacob2001-07-041-1/+5
| | | | | | | | | | underlying CAM device. This needs to be checked not only in the open routine, but the device->fd has to be initialized as well. PR: 28688 Submitted (partially) by: T. William Wells <bill@twwells.com> MFC after: 2 weeks
* get pd_type from inquiry data itselfmjacob2000-01-161-1/+1
|
* Fix a file descriptor leak in cam_open_btl(). The xpt device was opened,ken1999-09-121-1/+5
| | | | | | but never closed. Submitted by: amobbs@allstor-sw.co.uk
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* cam_get_device() was returning 0 on failure, and 1 on success, whilempp1999-06-151-10/+10
| | | | | | | | camcontrol(8) and the documentation in camlib.c and cam(3) all expect -1 on failure and 0 on success. Updated camlib.c to return the values specified by the documentation. PR: 12023
* Use snprintf to make sure we don't overflow a buffer.ken1998-11-151-4/+5
|
* Fix an error message. (it was using an uninitialized variable)ken1998-11-151-2/+2
| | | | Reported by: dan@math.berkeley.edu (Dan Strick)
* Add a "dummy light" (actually two dummy lights) to catch people who don'tken1998-10-121-4/+27
| | | | | | | | | have the passthrough device configured in their kernel. This will hopefully reduce the number of people complaining that they can't get {camcontrol, xmcd, tosha, cdrecord, etc.} to work. Reviewed by: gibbs
* CAM userland utility library, a replacement for libscsi.gibbs1998-09-151-0/+757
Submitted by: "Kenneth D. Merry" <ken@FreeBSD.org>
OpenPOWER on IntegriCloud