summaryrefslogtreecommitdiff
path: root/lib/libcam/camlib.c
AgeCommit message (Expand)Author
2023-11-26lib: Automated cleanup of cdefs and other formattingWarner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2023-05-12spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh
2022-01-26cam_get_device: resolve path links before parsing device nameAndriy Gapon
2020-12-29libcam(3): make cam_getccb(3) zero the whole ccb, not just the headerEdward Tomasz Napierala
2017-12-06Fix a null-pointer dereference and a tautological check in cam_get_deviceAlan Somers
2017-11-26lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-03-29Fix up r316081 by using nitems(cam_errbuf) instead of sizeof(cam_errbuf)Enji Cooper
2017-03-28libcam: use __func__ instead of hardcoding the function name as `func_name`Enji Cooper
2017-03-28Use `sizeof(cam_errbuf)` instead of `CAM_ERRBUF_SIZE` in snprintf callsEnji Cooper
2017-03-20libcam: NULL out freed `ccb.cdm.matches` and `ccb.cdm.patterns` pointersEnji Cooper
2016-05-24Fix multiple Coverity Out-of-bounds access false postive issues in CAMDon Lewis
2016-04-14Clean up trailing whitespace in lib/libcam; no functional changeEnji Cooper
2015-10-17Set dev->fd to -1 when calling cam_close_spec_device with a valid dev->fdEnji Cooper
2013-10-30Add missing header.Nathan Whitehorn
2013-10-30printf() specifier updates to CAM to handle either 32-bit or 64-bit lun_id_t.Nathan Whitehorn
2013-06-03Fix a typo: XPORT_SPI should be tested against transport, nor protocol.Xin LI
2012-03-03Use snprintf(3) constantly when generating CAM error messages.Jaakko Heinonen
2012-01-03Replace index() and rindex() calls with strchr() and strrchr().Ed Schouten
2010-10-11camlib.c: update one overlooked commentAndriy Gapon
2010-10-11cam_get_device, cam_open_device: make behavior simpler and more deterministicAndriy Gapon
2008-10-27Supply a valid Connect ID when issuing XPT_DEV_MATCH, whichMarius Strobl
2006-11-022nd and final commit that moves us to CAM_NEW_TRAN_CODEMatt Jacob
2006-04-30Go with a different version of the previous patch so to preserve errno.Joe Marcus Clarke
2006-04-30Fix a file descriptor leak in cam_lookup_pass() when the ioctl to findJoe Marcus Clarke
2005-07-13Better memory handling:Xin LI
2004-07-29Change a couple of comments so that GCC doesn't think that they containScott Long
2002-05-14string cleanup:Kenneth D. Merry
2001-09-30Add __FBSDID()s to libcamMatthew Dillon
2001-07-04Make sure you don't have a file descriptor leak for the 'real'Matt Jacob
2000-01-16get pd_type from inquiry data itselfMatt Jacob
1999-09-12Fix a file descriptor leak in cam_open_btl(). The xpt device was opened,Kenneth D. Merry
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
1999-06-15cam_get_device() was returning 0 on failure, and 1 on success, whileMike Pritchard
1998-11-15Use snprintf to make sure we don't overflow a buffer.Kenneth D. Merry
1998-11-15Fix an error message. (it was using an uninitialized variable)Kenneth D. Merry
1998-10-12Add a "dummy light" (actually two dummy lights) to catch people who don'tKenneth D. Merry
1998-09-15CAM userland utility library, a replacement for libscsi.Justin T. Gibbs