summaryrefslogtreecommitdiff
path: root/sbin/scsi
AgeCommit message (Collapse)Author
2016-06-07per trending style, add continue to emtpy loop bodies.Ted Unangst
ok mglocker
2016-01-28malloc(3) returns a pointer, so check against NULL, not 0. (No functional ↵Gleydson Soares
change) OK millert@
2015-08-20<stdlib.h> is included, so do not need to cast result fromTheo de Raadt
malloc, calloc, realloc* ok krw millert
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
2014-11-20remove sys/file.h includes in favor of fcntl.h where needed.Ted Unangst
ok deraadt guenther
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.Theo de Raadt
Careful second audit by millert
2013-11-12add a variety of missing prototypesTheo de Raadt
2012-12-04remove some unnecessary sys/cdefs.h inclusionsTheo de Raadt
2012-09-04sort sections;Jason McIntyre
2012-09-03- resolve unchecked malloc()'s; prompted by rustyBSD.Okan Demirmen
- first pass at fixing err() and exit() usage. - document that scsi(8) returns 0 or >0. ok krw@ otto@ (noting this code is barely worth the effort...)
2012-03-24fix some leaksJonathan Gray
ok miod@
2010-11-16- remove XXX here now that CMDBUFLEN is defined in scsiio.hJasper Lievisse Adriaanse
ok krw@
2009-11-12reading off the end of table bug, found by parfaitTheo de Raadt
2008-01-13remove unused functionsCharles Longeau
from tobias@ ok miod@ tobias@
2007-10-18SIGCHLD is not an errno value.Ray Lai
Spotted by deraadt.
2007-07-03Correct the '-i' parameters in the examples. The '64' in the -c stringsKenneth R Westerback
is a hex value, so '-i 64' does not allocate enough space. Use '-i 0x64' instead. Found by henning on boxes using ahd/ahc.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-28Copy sendbug's editit().Ray Lai
OK deraadt@.
2006-10-13Fix another potentially unsafe instance of foo[strlen(foo) - 1] = '\0'.Chad Loder
OK krw
2006-10-10fgets(3) returns NULL on error, not 0. No functional change, but it makesChad Loder
the code easier to read. OK deraadt
2006-07-23userland shouldnt care about kernel issuesDavid Gwynne
2006-07-23update to reflect realityDavid Gwynne
2006-07-23remove some scsi ioctls, most importantly the ones that can reprobe theDavid Gwynne
bus. supporting these complicates the midlayer unnecessarily. ok krw@
2005-12-21Userland programs should include <errno.h> not <sys/errno.h>Todd C. Miller
OK deraadt@
2005-11-13missing fclose(); dhill@mindcry.orgTheo de Raadt
2005-10-24delete more EFAULT stupidityTheo de Raadt
2005-05-14Give example of how to spin down a device since this is a questionTodd C. Miller
that comes up periodically.
2005-04-13use STD{IN,OUT,ERR}_FILENOTheo de Raadt
2005-04-11Use absolute path for vi. OK deraadtChad Loder
2005-04-11Check for asprintf failure. From Bruno Rohee (thank you).Chad Loder
2005-04-09Compile with -ansi by killing an inlineChad Loder
2005-04-09KNF. No binary changes. OK miod@Chad Loder
2005-04-03- sync to reality (remove dead options)Jared Yanovich
- sort options - mdoc nits (indentation, macro fixes, cleanup) - remove notes about usage on FreeBSD - add a section "SCSI commands" describing that which would be described in a scsi(3) page, written from scratch ok jmc
2005-04-01no need for Ns here;Jason McIntyre
2005-04-01delete junk documentation. pr 3918. jmc -- when something is this bad, we ↵Theo de Raadt
sometimes have to be fast. scsi(3) or anything like it is dead forever
2004-06-26Remove scsi(3) from SEE ALSO. ok deraadt@Robert Nagy
2004-01-14Fix printf format string. ok deraadt@Otto Moerbeek
2003-07-24pull header from hereTheo de Raadt
2003-07-23move junk (bad code, terrible APIs) to the only program that uses it;Theo de Raadt
millert ok
2003-07-06protosTheo de Raadt
2003-06-26use err.hMichael Shalayeff
2003-06-11ansificationTheo de Raadt
2003-06-03- section reorderJason McIntyre
- some mdoc fixes
2003-04-30a on or off thing -> an on or off thing;Jason McIntyre
2003-03-13more strlcpy; most from Hans-Joerg.Hoexer@yerbouti.franken.de, a bit from meTheo de Raadt
2003-02-20Use STDOUT_FILENO; David at phobia dot msTodd C. Miller
2003-02-13typos;Jason McIntyre
setextattr(8): example markus@ spamd(8): someone else found some of these on bugs/misc, but for the life of me i can't find out who pf.conf(5): from openbsd@davidkrause.com raidctl(8): from ian@darwinsys.com
2002-02-24Vax O1 workaround no longer needed.Hugh Graham
2002-02-11ld dumps core on vax if we compile this -O0Theo de Raadt
2002-02-11Initial patch.Mike Pechkin
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok