From b86e924596b4da8a80f82e93a745921d16eb957c Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 2 Sep 2019 23:16:04 +0000 Subject: glue layer: __cmd_args_to_argv(): use errno to indicate the error. --- include/sys/cmd.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') 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. */ -- cgit v1.2.3