From 1509ed4180fa4f8808a918bd7ce8a74c1d94a91b Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 2 Sep 2019 23:03:01 +0000 Subject: glue layer: __fs_{r|a|n|d}path() interfaces: use errno to indicate the error. --- include/sys/fs.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/sys/fs.h b/include/sys/fs.h index f0dd33b..efc1466 100644 --- a/include/sys/fs.h +++ b/include/sys/fs.h @@ -29,10 +29,8 @@ extern "C" { /* buflen: size of buffer, including null termination. */ /* */ /* return value: */ -/* zero upon successful resolution 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 any of the above interfaces. */ +/* zero upon successful resolution and buffer initialization; */ +/* otherwise, -1 shall be returned and errno set to indicate the error. */ /* */ /* implementation: */ /* the above interfaces are async-safe, thread-safe, and re-entrant. */ -- cgit v1.2.3