summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuge <stuge@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-01-26 02:20:56 +0000
committerstuge <stuge@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-01-26 02:20:56 +0000
commit869abe80b4bd64e802111e87712d8ec6de8a7177 (patch)
tree2169ceef0254520eae4685672603dfecee0048ef
parent565b3b29acc6c3d44cf8984bfb08d3bc906bf613 (diff)
downloadflashrom-869abe80b4bd64e802111e87712d8ec6de8a7177.tar.gz
Original v2 revision: 3908
flashrom: Document exit() codes introduced in r3907. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Ward Vandewege <ward@gnu.org> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@402 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--README6
-rw-r--r--flashrom.83
2 files changed, 9 insertions, 0 deletions
diff --git a/README b/README
index 656468f..8410d3f 100644
--- a/README
+++ b/README
@@ -44,6 +44,12 @@ Usage
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 @@ Show a help text and exit.
.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 ","