Document exit() codes introduced in r3907
Corresponding to flashrom svn r402 and coreboot v2 svn r3908.
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Ward Vandewege <ward@gnu.org>
diff --git a/README b/README
index 656468f..8410d3f 100644
--- a/README
+++ b/README
@@ -44,6 +44,12 @@
is that flash info is dumped and the flash chip is set to writable.
+Exit status
+-----------
+flashrom exits with 0 on success, 1 on most failures but with 2 if /dev/mem
+(/dev/xsvc on Solaris) can not be opened and with 3 if a call to mmap() fails.
+
+
coreboot Table and Mainboard Identification
--------------------------------------------
diff --git a/flashrom.8 b/flashrom.8
index 4d072c4..4e60f85 100644
--- a/flashrom.8
+++ b/flashrom.8
@@ -77,6 +77,9 @@
.TP
.B "\-R, \-\-version"
Show version information and exit.
+.SH EXIT STATUS
+flashrom exits with 0 on success, 1 on most failures but with 2 if /dev/mem
+(/dev/xsvc on Solaris) can not be opened and with 3 if a call to mmap() fails.
.SH BUGS
Please report any bugs at
.BR http://tracker.coreboot.org/trac/coreboot/newticket ","