diff options
-rw-r--r-- | include/sys/cmd.h | 6 | ||||
-rw-r--r-- | src/arch/nt32/cmd.c | 2 | ||||
-rw-r--r-- | src/arch/nt64/cmd.c | 2 |
3 files changed, 4 insertions, 6 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. */ diff --git a/src/arch/nt32/cmd.c b/src/arch/nt32/cmd.c index a5def88..932737d 100644 --- a/src/arch/nt32/cmd.c +++ b/src/arch/nt32/cmd.c @@ -6,5 +6,5 @@ int __cmd_args_to_argv( char * argbuf, size_t buflen, char ** argv, size_t nptrs) { - return __syscall(SYS_cmd_args_to_argv,args,argbuf,buflen,argv,nptrs); + return syscall(SYS_cmd_args_to_argv,args,argbuf,buflen,argv,nptrs); } diff --git a/src/arch/nt64/cmd.c b/src/arch/nt64/cmd.c index a5def88..932737d 100644 --- a/src/arch/nt64/cmd.c +++ b/src/arch/nt64/cmd.c @@ -6,5 +6,5 @@ int __cmd_args_to_argv( char * argbuf, size_t buflen, char ** argv, size_t nptrs) { - return __syscall(SYS_cmd_args_to_argv,args,argbuf,buflen,argv,nptrs); + return syscall(SYS_cmd_args_to_argv,args,argbuf,buflen,argv,nptrs); } |