aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--doc/sg_dd.86
-rw-r--r--doc/sg_emc_trespass.88
-rw-r--r--doc/sg_get_lba_status.84
-rw-r--r--doc/sg_ident.86
-rw-r--r--doc/sg_inq.85
-rw-r--r--doc/sg_luns.86
-rw-r--r--doc/sg_map26.813
-rw-r--r--doc/sg_opcodes.87
-rw-r--r--doc/sg_persist.88
-rw-r--r--doc/sg_prevent.86
-rw-r--r--doc/sg_rdac.88
-rw-r--r--doc/sg_read.86
-rw-r--r--doc/sg_safte.87
-rw-r--r--doc/sg_sat_identify.88
-rw-r--r--doc/sg_sat_phy_event.88
-rw-r--r--doc/sg_sat_set_features.88
-rw-r--r--doc/sg_scan.8.linux8
-rw-r--r--doc/sg_start.88
-rw-r--r--doc/sg_stpg.84
-rw-r--r--doc/sg_sync.84
-rw-r--r--doc/sg_test_rwbuf.88
-rw-r--r--doc/sg_unmap.84
-rw-r--r--doc/sg_vpd.84
-rw-r--r--doc/sg_wr_mode.84
-rw-r--r--doc/sg_write_buffer.86
-rw-r--r--doc/sg_write_long.86
-rw-r--r--doc/sg_write_same.82
-rw-r--r--doc/sg_xcopy.84
-rw-r--r--doc/sgm_dd.89
-rw-r--r--doc/sgp_dd.86
-rw-r--r--lib/Makefile.am1
-rw-r--r--src/Makefile.am1
33 files changed, 96 insertions, 99 deletions
diff --git a/ChangeLog b/ChangeLog
index 0cbb5209..bb3d70cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,7 @@ Each utility has its own version number, date of last change and
some description at the top of its ".c" file. All utilities in the main
directory have their own "man" pages. There is also a sg3_utils man page.
-Changelog for sg3_utils-1.35 [20121112] [svn: r465]
+Changelog for sg3_utils-1.35 [20121119] [svn: r466]
- sg_stpg: with --offline fix 'Invalid state 0xe'
- sync to sbc3r33
- sg_pt_win32, sg_scan(win32): changes for cygwin 1.7.17
diff --git a/doc/sg_dd.8 b/doc/sg_dd.8
index cb8f89ac..2368cd50 100644
--- a/doc/sg_dd.8
+++ b/doc/sg_dd.8
@@ -1,7 +1,7 @@
-.TH SG_DD "8" "September 2012" "sg3_utils\-1.32" SG3_UTILS
+.TH SG_DD "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_dd \- copies data to and from files and devices. Specialised for
-devices that understand the SCSI command set.
+sg_dd \- copy data to and from files and devices, especially SCSI
+devices
.SH SYNOPSIS
.B sg_dd
[\fIbs=BS\fR] [\fIconv=CONV\fR] [\fIcount=COUNT\fR] [\fIibs=BS\fR]
diff --git a/doc/sg_emc_trespass.8 b/doc/sg_emc_trespass.8
index 0f24688e..5ade3eff 100644
--- a/doc/sg_emc_trespass.8
+++ b/doc/sg_emc_trespass.8
@@ -1,7 +1,7 @@
-.TH SG_EMC_TRESPASS "8" "January 2007" "sg3_utils\-1.23" SG3_UTILS
+.TH SG_EMC_TRESPASS "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_emc_trespass \- Changes ownership of a LUN from another
-Service\-Processor to this one.
+sg_emc_trespass \- change ownership of SCSI LUN from another
+Service\-Processor to this one
.SH SYNOPSIS
.B sg_emc_trespass
[\fI\-d\fR] [\fI\-hr\fR] [\fI\-s\fR]
@@ -46,7 +46,7 @@ Written by Lars Marowsky\-Bree, based on sg_start.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2004 Lars Marowsky-Bree, Douglas Gilbert.
+Copyright \(co 2004\-2012 Lars Marowsky-Bree, Douglas Gilbert.
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_get_lba_status.8 b/doc/sg_get_lba_status.8
index d309c0b4..ab8269c3 100644
--- a/doc/sg_get_lba_status.8
+++ b/doc/sg_get_lba_status.8
@@ -1,6 +1,6 @@
-.TH SG_GET_LBA_STATUS "8" "January 2012" "sg3_utils\-1.33" SG3_UTILS
+.TH SG_GET_LBA_STATUS "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_get_lba_status \- send the SCSI GET LBA STATUS command
+sg_get_lba_status \- send SCSI GET LBA STATUS command
.SH SYNOPSIS
.B sg_get_lba_status
[\fI\-\-brief\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR] [\fI\-\-lba=LBA\fR]
diff --git a/doc/sg_ident.8 b/doc/sg_ident.8
index 11cba82f..e223bea9 100644
--- a/doc/sg_ident.8
+++ b/doc/sg_ident.8
@@ -1,6 +1,6 @@
-.TH SG_IDENT "8" "July 2009" "sg3_utils\-1.28" SG3_UTILS
+.TH SG_IDENT "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_ident \- sends a SCSI REPORT or SET IDENTIFYING INFORMATION command
+sg_ident \- send SCSI REPORT/SET IDENTIFYING INFORMATION command
.SH SYNOPSIS
.B sg_ident
[\fI\-\-ascii\fR] [\fI\-\-clear\fR] [\fI\-\-help\fR] [\fI\-\-itype=IT\fR]
@@ -111,7 +111,7 @@ Written by Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2005\-2009 Douglas Gilbert
+Copyright \(co 2005\-2012 Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_inq.8 b/doc/sg_inq.8
index 9e9a6add..c1f163a5 100644
--- a/doc/sg_inq.8
+++ b/doc/sg_inq.8
@@ -1,7 +1,6 @@
-.TH SG_INQ "8" "September 2012" "sg3_utils\-1.34" SG3_UTILS
+.TH SG_INQ "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_inq \- sends a SCSI INQUIRY or ATA IDENTIFY (PACKET) DEVICE command
-and outputs the response
+sg_inq \- issue SCSI INQUIRY command, output and decode response
.SH SYNOPSIS
.B sg_inq
[\fI\-\-ata\fR] [\fI\-\-cmddt\fR] [\fI\-\-descriptors\fR] [\fI\-\-export\fR]
diff --git a/doc/sg_luns.8 b/doc/sg_luns.8
index 1e6681e3..d184012d 100644
--- a/doc/sg_luns.8
+++ b/doc/sg_luns.8
@@ -1,6 +1,6 @@
-.TH SG_LUNS "8" "August 2011" "sg3_utils\-1.33" SG3_UTILS
+.TH SG_LUNS "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_luns \- send the SCSI REPORT LUNS command
+sg_luns \- send SCSI REPORT LUNS command
.SH SYNOPSIS
.B sg_luns
[\fI\-\-decode\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR] [\fI\-\-maxlen=LEN\fR]
@@ -70,7 +70,7 @@ Written by Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2004\-2011 Douglas Gilbert
+Copyright \(co 2004\-2012 Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_map26.8 b/doc/sg_map26.8
index 96b90d21..121a0180 100644
--- a/doc/sg_map26.8
+++ b/doc/sg_map26.8
@@ -1,7 +1,6 @@
-.TH SG_MAP26 "8" "January 2007" "sg3_utils\-1.23" SG3_UTILS
+.TH SG_MAP26 "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_map26 \- maps a special file to a SCSI generic (sg) device (or
-vice versa)
+sg_map26 \- map SCSI generic (sg) device to corresponding device names
.SH SYNOPSIS
.B sg_map26
[\fI\-\-dev_dir=DIR\fR] [\fI\-\-given_is=\fR0|1] [\fI\-\-help\fR]
@@ -77,9 +76,9 @@ increase the level of verbosity, (i.e. debug output).
\fB\-V\fR, \fB\-\-version\fR
print the version string and then exit.
.SH NOTES
-This utility is designed for the linux 2.6 kernel series. It uses
-special file major and minor numbers (and whether the special is
-block or character) together with sysfs to do its mapping or
+This utility is designed for the linux 2.6 (and later) kernel series.
+It uses special file major and minor numbers (and whether the special
+is block or character) together with sysfs to do its mapping or
matching. In the absence of any other information, device special
files are assumed to be in the '/dev' directory while sysfs is
assumed to be mounted at '/sys'. Device names in sysfs are
@@ -154,7 +153,7 @@ Written by Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2005\-2007 Douglas Gilbert
+Copyright \(co 2005\-2012 Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_opcodes.8 b/doc/sg_opcodes.8
index cbb515bd..c877e56a 100644
--- a/doc/sg_opcodes.8
+++ b/doc/sg_opcodes.8
@@ -1,7 +1,6 @@
-.TH SG_OPCODES "8" "March 2011" "sg3_utils\-1.32" SG3_UTILS
+.TH SG_OPCODES "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_opcodes \- reports information on supported SCSI commands or
-task management functions
+sg_opcodes \- report supported SCSI commands or task management functions
.SH SYNOPSIS
.B sg_opcodes
[\fI\-\-alpha\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR] [\fI\-\-no-inquiry\fR]
@@ -227,7 +226,7 @@ Written by Douglas Gilbert
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2004\-2011 Douglas Gilbert
+Copyright \(co 2004\-2012 Douglas Gilbert
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_persist.8 b/doc/sg_persist.8
index 1ea2775d..17d60ec3 100644
--- a/doc/sg_persist.8
+++ b/doc/sg_persist.8
@@ -1,7 +1,7 @@
-.TH SG_PERSIST "8" "September 2010" "sg3_utils\-1.30" SG3_UTILS
+.TH SG_PERSIST "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_persist \- sends a SCSI PERSISTENT RESERVE (IN or OUT) command
-to manipulate registrations and reservations
+sg_persist \- use SCSI PERSISTENT RESERVE command to access registrations
+and reservations
.SH SYNOPSIS
.B sg_persist
[\fIOPTIONS\fR] \fIDEVICE\fR
@@ -394,7 +394,7 @@ Written by Douglas Gilbert
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2004\-2010 Douglas Gilbert
+Copyright \(co 2004\-2012 Douglas Gilbert
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_prevent.8 b/doc/sg_prevent.8
index d87c9412..df1268c4 100644
--- a/doc/sg_prevent.8
+++ b/doc/sg_prevent.8
@@ -1,6 +1,6 @@
-.TH SG_PREVENT "8" "January 2007" "sg3_utils\-1.23" SG3_UTILS
+.TH SG_PREVENT "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_prevent \- sends a SCSI PREVENT ALLOW MEDIUM REMOVAL command
+sg_prevent \- send SCSI PREVENT ALLOW MEDIUM REMOVAL command
.SH SYNOPSIS
.B sg_prevent
[\fI\-\-allow\fR] [\fI\-\-help\fR] [\fI\-\-prevent=PC\fR]
@@ -51,7 +51,7 @@ Written by Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2004\-2007 Douglas Gilbert
+Copyright \(co 2004\-2012 Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_rdac.8 b/doc/sg_rdac.8
index 42c456a6..8e3d27aa 100644
--- a/doc/sg_rdac.8
+++ b/doc/sg_rdac.8
@@ -1,6 +1,6 @@
-.TH SG_RDAC "8" "January 2007" "sg3_utils\-1.23" SG3_UTILS
+.TH SG_RDAC "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_rdac \- Display or Modify RDAC Redundant Controller Page
+sg_rdac \- display or modify SCSI RDAC Redundant Controller mode page
.SH SYNOPSIS
.B sg_rdac
[\fI\-a\fR] [\fI\-f=LUN\fR] [\fI\-v\fR] [\fI\-V\fR] \fIDEVICE\fR
@@ -8,7 +8,7 @@ sg_rdac \- Display or Modify RDAC Redundant Controller Page
.\" Add any additional description here
.PP
sg_rdac displays or modifies the RDAC controller settings via the
-Redundant Controller Page (0x2C). When modifying the settings it
+Redundant Controller mode page (0x2C). When modifying the settings it
allows to transfer the ownership of individual drives to the
controller the command was received on.
.SH OPTIONS
@@ -33,7 +33,7 @@ Written by Hannes Reinecke <hare at suse dot com>, based on sg_emc_trespass.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2006\-2007 Hannes Reinecke, Douglas Gilbert.
+Copyright \(co 2006\-2012 Hannes Reinecke, Douglas Gilbert.
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_read.8 b/doc/sg_read.8
index f6b17d09..3f011349 100644
--- a/doc/sg_read.8
+++ b/doc/sg_read.8
@@ -1,6 +1,6 @@
-.TH SG_READ "8" "March 2009" "sg3_utils\-1.27" SG3_UTILS
+.TH SG_READ "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_read \- read blocks of data continually from same offset
+sg_read \- read multiple blocks of data, optionally with SCSI READ commands
.SH SYNOPSIS
.B sg_read
[\fIblk_sgio=\fR0|1] [\fIbpt=BPT\fR] [\fIbs=BS\fR] [\fIcdbsz=\fR6|10|12|16]
@@ -171,7 +171,7 @@ Written by Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2000\-2009 Douglas Gilbert
+Copyright \(co 2000\-2012 Douglas Gilbert
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_safte.8 b/doc/sg_safte.8
index 9af1fd05..48c7e620 100644
--- a/doc/sg_safte.8
+++ b/doc/sg_safte.8
@@ -1,7 +1,6 @@
-.TH SG_SAFTE "8" "September 2007" "sg3_utils\-1.25" SG3_UTILS
+.TH SG_SAFTE "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_safte \- Fetch status from a SCSI Accessed Fault\-Tolerant Enclosure
-(SAF\-TE) device
+sg_safte \- access SCSI Accessed Fault\-Tolerant Enclosure (SAF\-TE) device
.SH SYNOPSIS
.B sg_safte
[\fI\-\-config\fR] [\fI\-\-devstatus\fR] [\fI\-\-encstatus\fR]
@@ -125,7 +124,7 @@ Written by Hannes Reinecke and Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2004\-2007 Hannes Reinecke and Douglas Gilbert
+Copyright \(co 2004\-2012 Hannes Reinecke and Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_sat_identify.8 b/doc/sg_sat_identify.8
index c1037388..0ecc4680 100644
--- a/doc/sg_sat_identify.8
+++ b/doc/sg_sat_identify.8
@@ -1,7 +1,7 @@
-.TH SG_SAT_IDENTIFY "8" "May 2011" "sg3_utils\-1.32" SG3_UTILS
+.TH SG_SAT_IDENTIFY "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_sat_identify \- sends a ATA IDENTIFY (PACKET) DEVICE command via a
-SCSI to ATA Translation (SAT) layer
+sg_sat_identify \- send ATA IDENTIFY DEVICE command via SCSI to ATA
+Translation (SAT) layer
.SH SYNOPSIS
.B sg_sat_identify
[\fI\-\-ck_cond\fR] [\fI\-\-extend\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR]
@@ -108,7 +108,7 @@ Written by Douglas Gilbert
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2006\-2011 Douglas Gilbert
+Copyright \(co 2006\-2012 Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_sat_phy_event.8 b/doc/sg_sat_phy_event.8
index 7cd15090..2c841023 100644
--- a/doc/sg_sat_phy_event.8
+++ b/doc/sg_sat_phy_event.8
@@ -1,7 +1,7 @@
-.TH SG_SAT_PHY_EVENT "8" "March 2011" "sg3_utils\-1.32" SG3_UTILS
+.TH SG_SAT_PHY_EVENT "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_sat_phy_event \- Sends an ATA READ LOG EXT command via a SAT pass through
-to fetch log page 11h which contains SATA phy event counters
+sg_sat_phy_event \- use ATA READ LOG EXT via a SAT pass\-through to fetch
+SATA phy event counters
.SH SYNOPSIS
.B sg_sat_phy_event
[\fI\-\-ck_cond\fR] [\fI\-\-extend\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR]
@@ -100,7 +100,7 @@ Written by Douglas Gilbert
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2006\-2011 Douglas Gilbert
+Copyright \(co 2006\-2012 Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_sat_set_features.8 b/doc/sg_sat_set_features.8
index b4d12a3e..d98c3965 100644
--- a/doc/sg_sat_set_features.8
+++ b/doc/sg_sat_set_features.8
@@ -1,7 +1,7 @@
-.TH SG_SAT_SET_FEATURES "8" "March 2011" "sg3_utils\-1.32" SG3_UTILS
+.TH SG_SAT_SET_FEATURES "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_sat_set_features \- sends a ATA SET FEATURES command via a
-SCSI to ATA Translation (SAT) layer
+sg_sat_set_features \- use ATA SET FEATURES command via a SCSI to ATA
+Translation (SAT) layer
.SH SYNOPSIS
.B sg_sat_set_features
[\fI\-\-count=\fRCO] [\fI\-\-ck_cond\fR] [\fI\-\-feature=\fRFEA]
@@ -88,7 +88,7 @@ Written by Douglas Gilbert
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2007\-2011 Douglas Gilbert
+Copyright \(co 2007\-2012 Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_scan.8.linux b/doc/sg_scan.8.linux
index fb600df0..c494deca 100644
--- a/doc/sg_scan.8.linux
+++ b/doc/sg_scan.8.linux
@@ -1,7 +1,7 @@
-.TH SG_SCAN "8" "December 2006" "sg3_utils\-1.23" SG3_UTILS
+.TH SG_SCAN "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_scan \- does a scan of sg devices (or given SCSI/ATAPI/ATA devices) and
-prints the results
+sg_scan \- scans sg devices (or SCSI/ATAPI/ATA devices) and prints
+results
.SH SYNOPSIS
.B sg_scan
[\fI\-a\fR]
@@ -65,7 +65,7 @@ the sg3_utils(8) man page.
.SH AUTHORS
Written by D. Gilbert and F. Jansen
.SH COPYRIGHT
-Copyright \(co 1999\-2006 Douglas Gilbert
+Copyright \(co 1999\-2012 Douglas Gilbert
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_start.8 b/doc/sg_start.8
index 499a2a01..690a6eb3 100644
--- a/doc/sg_start.8
+++ b/doc/sg_start.8
@@ -1,7 +1,7 @@
-.TH SG_START "8" "February 2011" "sg3_utils\-1.31" SG3_UTILS
+.TH SG_START "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_start \- send SCSI START STOP UNIT command to start, stop, load or
-eject medium
+sg_start \- send SCSI START STOP UNIT command: start, stop, load or eject
+medium
.SH SYNOPSIS
.B sg_start
[\fI0\fR] [\fI1\fR] [\fI\-\-eject\fR] [\fI\-\-help\fR] [\fI\-\-fl=FL\fR]
@@ -258,7 +258,7 @@ Written by K. Garloff and D. Gilbert
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2002\-2011 Kurt Garloff, Douglas Gilbert
+Copyright \(co 2002\-2012 Kurt Garloff, Douglas Gilbert
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_stpg.8 b/doc/sg_stpg.8
index 770a964b..f93f0296 100644
--- a/doc/sg_stpg.8
+++ b/doc/sg_stpg.8
@@ -1,6 +1,6 @@
-.TH SG_STPG "8" "October 2012" "sg3_utils\-1.35" SG3_UTILS
+.TH SG_STPG "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_stpg \- sends a SCSI SET TARGET PORT GROUPS command
+sg_stpg \- send SCSI SET TARGET PORT GROUPS command
.SH SYNOPSIS
.B sg_stpg
[\fI\-\-active\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR] [\fI\-\-offline\fR]
diff --git a/doc/sg_sync.8 b/doc/sg_sync.8
index ffceb4bf..3e04a62b 100644
--- a/doc/sg_sync.8
+++ b/doc/sg_sync.8
@@ -1,6 +1,6 @@
-.TH SG_SYNC "8" "February 2012" "sg3_utils\-1.34" SG3_UTILS
+.TH SG_SYNC "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_sync \- send the scsi command synchronize cache
+sg_sync \- send SCSI SYNCHRONIZE CACHE command
.SH SYNOPSIS
.B sg_sync
[\fI\-\-count=COUNT\fR] [\fI\-\-group=GN\fR] [\fI\-\-help\fR]
diff --git a/doc/sg_test_rwbuf.8 b/doc/sg_test_rwbuf.8
index b8187898..f30c3517 100644
--- a/doc/sg_test_rwbuf.8
+++ b/doc/sg_test_rwbuf.8
@@ -1,7 +1,7 @@
-.TH SG_TEST_RWBUF "8" "February 2011" "sg3_utils\-1.31" SG3_UTILS
+.TH SG_TEST_RWBUF "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_test_rwbuf \- Tests the SCSI host adapter by issuing write and read
-operations on a device's buffer and calculating checksums.
+sg_test_rwbuf \- test a SCSI host adapter by issuing dummy writes
+and reads
.SH SYNOPSIS
.B sg_test_rwbuf
[\fI\-\-addrd=AR\fR] [\fI\-\-addwr=AW\fR] [\fI\-\-help\fR]
@@ -79,7 +79,7 @@ the sg3_utils(8) man page.
.SH AUTHORS
Written by D. Gilbert and K. Garloff
.SH COPYRIGHT
-Copyright \(co 2000\-2011 Douglas Gilbert, Kurt Garloff
+Copyright \(co 2000\-2012 Douglas Gilbert, Kurt Garloff
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_unmap.8 b/doc/sg_unmap.8
index 2eebe287..ec6b0b93 100644
--- a/doc/sg_unmap.8
+++ b/doc/sg_unmap.8
@@ -1,6 +1,6 @@
-.TH SG_UNMAP "8" "November 2011" "sg3_utils\-1.33" SG3_UTILS
+.TH SG_UNMAP "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_unmap \- sends a SCSI UNMAP command
+sg_unmap \- send SCSI UNMAP command (known as 'trim' in ATA specs)
.SH SYNOPSIS
.B sg_unmap
[\fI\-\-anchor\fR] [\fI\-\-grpnum=GN\fR] [\fI\-\-help\fR] [\fI\-\-in=FILE\fR]
diff --git a/doc/sg_vpd.8 b/doc/sg_vpd.8
index f25b0697..78b74c04 100644
--- a/doc/sg_vpd.8
+++ b/doc/sg_vpd.8
@@ -1,6 +1,6 @@
-.TH SG_VPD "8" "September 2012" "sg3_utils\-1.34" SG3_UTILS
+.TH SG_VPD "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_vpd \- fetches Vital Product Data (VPD) pages using a SCSI INQUIRY command
+sg_vpd \- fetch Vital Product Data (VPD) pages via a SCSI INQUIRY command
.SH SYNOPSIS
.B sg_vpd
[\fI\-\-enumerate\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR] [\fI\-\-ident\fR]
diff --git a/doc/sg_wr_mode.8 b/doc/sg_wr_mode.8
index 36a6f998..58baa4f1 100644
--- a/doc/sg_wr_mode.8
+++ b/doc/sg_wr_mode.8
@@ -1,6 +1,6 @@
-.TH SG_WR_MODE "8" "February 2012" "sg3_utils\-1.34" SG3_UTILS
+.TH SG_WR_MODE "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_wr_mode \- write mode page
+sg_wr_mode \- write (modify) SCSI mode page
.SH SYNOPSIS
.B sg_wr_mode
[\fI\-\-contents=H,H...\fR] [\fI\-\-dbd\fR] [\fI\-\-force\fR]
diff --git a/doc/sg_write_buffer.8 b/doc/sg_write_buffer.8
index 73d5df51..75a2bc2d 100644
--- a/doc/sg_write_buffer.8
+++ b/doc/sg_write_buffer.8
@@ -1,6 +1,6 @@
-.TH SG_WRITE_BUFFER "8" "August 2011" "sg3_utils\-1.33" SG3_UTILS
+.TH SG_WRITE_BUFFER "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_write_buffer \- send a SCSI WRITE BUFFER command
+sg_write_buffer \- send SCSI WRITE BUFFER command
.SH SYNOPSIS
.B sg_write_buffer
[\fI\-\-help\fR] [\fI\-\-id=ID\fR] [\fI\-\-in=FILE\fR] [\fI\-\-length=LEN\fR]
@@ -104,7 +104,7 @@ Written by Luben Tuikov and Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2006\-2011 Luben Tuikov and Douglas Gilbert
+Copyright \(co 2006\-2012 Luben Tuikov and Douglas Gilbert
.br
This software is distributed under a FreeBSD license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_write_long.8 b/doc/sg_write_long.8
index ee1570c5..d4f5953a 100644
--- a/doc/sg_write_long.8
+++ b/doc/sg_write_long.8
@@ -1,6 +1,6 @@
-.TH SG_WRITE_LONG "8" "March 2009" "sg3_utils\-1.27" SG3_UTILS
+.TH SG_WRITE_LONG "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_write_long \- send the SCSI WRITE LONG command
+sg_write_long \- send SCSI WRITE LONG command
.SH SYNOPSIS
.B sg_write_long
[\fI\-\-16\fR] [\fI\-\-cor_dis\fR] [\fI\-\-help\fR] [\fI\-\-in=IF\fR]
@@ -163,7 +163,7 @@ Written by Saeed Bishara. Further work by Douglas Gilbert.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2004\-2009 Douglas Gilbert
+Copyright \(co 2004\-2012 Douglas Gilbert
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sg_write_same.8 b/doc/sg_write_same.8
index adaa3b22..146fb476 100644
--- a/doc/sg_write_same.8
+++ b/doc/sg_write_same.8
@@ -1,6 +1,6 @@
.TH SG_WRITE_SAME "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_write_same \- send the SCSI WRITE SAME command
+sg_write_same \- send SCSI WRITE SAME command
.SH SYNOPSIS
.B sg_write_same
[\fI\-\-10\fR] [\fI\-\-16\fR] [\fI\-\-32\fR] [\fI\-\-anchor\fR]
diff --git a/doc/sg_xcopy.8 b/doc/sg_xcopy.8
index 541e6cdb..c9ad02e9 100644
--- a/doc/sg_xcopy.8
+++ b/doc/sg_xcopy.8
@@ -1,7 +1,7 @@
.TH SG_XCOPY "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sg_xcopy \- copies data to and from files and devices. Specialised for
-devices that support the SCSI EXTENDED COPY command.
+sg_xcopy \- copy data to and from files and devices using SCSI EXTENDED
+COPY (XCOPY)
.SH SYNOPSIS
.B sg_xcopy
[\fIbs=BS\fR] [\fIconv=CONV\fR] [\fIcount=COUNT\fR] [\fIibs=BS\fR]
diff --git a/doc/sgm_dd.8 b/doc/sgm_dd.8
index 86eb286e..d02392f7 100644
--- a/doc/sgm_dd.8
+++ b/doc/sgm_dd.8
@@ -1,8 +1,7 @@
-.TH SGM_DD "8" "March 2009" "sg3_utils\-1.27" SG3_UTILS
+.TH SGM_DD "8" "November 2019" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sgm_dd \- copies data to and from files and devices. Specialized for
-devices that understand the SCSI command set and does memory mapped
-transfers from sg devices.
+sgm_dd \- copy data to and from files and devices, especially SCSI
+devices
.SH SYNOPSIS
.B sgm_dd
[\fIbs=BS\fR] [\fIcount=COUNT\fR] [\fIibs=BS\fR] [\fIif=IFILE\fR]
@@ -266,7 +265,7 @@ Written by Douglas Gilbert and Peter Allworth.
.SH "REPORTING BUGS"
Report bugs to <dgilbert at interlog dot com>.
.SH COPYRIGHT
-Copyright \(co 2000\-2009 Douglas Gilbert
+Copyright \(co 2000\-2012 Douglas Gilbert
.br
This software is distributed under the GPL version 2. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/doc/sgp_dd.8 b/doc/sgp_dd.8
index e3ce8bbd..6d148f52 100644
--- a/doc/sgp_dd.8
+++ b/doc/sgp_dd.8
@@ -1,7 +1,7 @@
-.TH SGP_DD "8" "March 2012" "sg3_utils\-1.34" SG3_UTILS
+.TH SGP_DD "8" "November 2012" "sg3_utils\-1.35" SG3_UTILS
.SH NAME
-sgp_dd \- copies data to and from files and devices. Specialized for
-devices that understand the SCSI command set.
+sgp_dd \- copy data to and from files and devices, especially SCSI
+devices
.SH SYNOPSIS
.B sgp_dd
[\fIbs=BS\fR] [\fIcount=COUNT\fR] [\fIibs=BS\fR] [\fIif=IFILE\fR]
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 378689cc..14e1c3f0 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -139,6 +139,7 @@ EXTRA_libsgutils2_la_SOURCES = \
endif
+# -std=<s> can be c99, c11, gnu11, etc. Default is gnu89 (gnu90 is the same)
AM_CFLAGS = -I ../include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W
# AM_CFLAGS = -I ../include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -pedantic -std=c99
diff --git a/src/Makefile.am b/src/Makefile.am
index c13695be..99c53129 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -115,6 +115,7 @@ bin_PROGRAMS = \
endif
+# -std=<s> can be c99, c11, gnu11, etc. Default is gnu89 (gnu90 is the same)
AM_CFLAGS = -I ../include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W
# AM_CFLAGS = -I ../include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -pedantic -std=c99