summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-09-02 23:16:04 +0000
committermidipix <writeonce@midipix.org>2019-09-02 23:16:04 +0000
commitb86e924596b4da8a80f82e93a745921d16eb957c (patch)
treea9dfbd004229ef7d701d5c789a0427e5a681241a /include
parent1509ed4180fa4f8808a918bd7ce8a74c1d94a91b (diff)
downloadmmglue-b86e924596b4da8a80f82e93a745921d16eb957c.tar.bz2
mmglue-b86e924596b4da8a80f82e93a745921d16eb957c.tar.xz
glue layer: __cmd_args_to_argv(): use errno to indicate the error.
Diffstat (limited to 'include')
-rw-r--r--include/sys/cmd.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/sys/cmd.h b/include/sys/cmd.h
index eb3cbfc..b2825a7 100644
--- a/include/sys/cmd.h
+++ b/include/sys/cmd.h
@@ -26,10 +26,8 @@ extern "C" {
/* including the terminating null pointer. */
/* */
/* return value: */
-/* zero upon successful parsing and buffer initialization */
-/* negative value returned upon failure, which is the actual value */
-/* returned by the underlying system call; accordingly, errno */
-/* is _not_ set by the above interface. */
+/* zero upon successful parsing and buffer initialization; */
+/* otherwise, -1 shall be returned and errno set to indicate the error. */
/* */
/* implementation: */
/* the above interface is async-safe, thread-safe, and re-entrant. */