diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2019-06-30 17:31:40 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2019-06-30 17:31:40 +0000 |
commit | 214d4f5300a5d5687a1d7a64835d3df85dc0166d (patch) | |
tree | db5da5a91f2ef36fc98906c51739f86d80927664 /lib/libc | |
parent | 3432dd3f2015f73d3eba8574ffe76367f077679b (diff) |
tweak previous; ok guenther
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getcwd.3 | 11 | ||||
-rw-r--r-- | lib/libc/stdlib/realpath.3 | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/lib/libc/gen/getcwd.3 b/lib/libc/gen/getcwd.3 index 79614ebdb05..af30b0d5c15 100644 --- a/lib/libc/gen/getcwd.3 +++ b/lib/libc/gen/getcwd.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getcwd.3,v 1.19 2019/06/29 21:21:27 guenther Exp $ +.\" $OpenBSD: getcwd.3,v 1.20 2019/06/30 17:31:39 jmc Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: June 29 2019 $ +.Dd $Mdocdate: June 30 2019 $ .Dt GETCWD 3 .Os .Sh NAME @@ -144,15 +144,16 @@ in In .Ox 4.0 , .Fn getcwd -was reimplemented on top of a +was reimplemented on top of the .Fn __getcwd -system call whose calling convention differs from the standard +system call. +Its calling convention differed from the standard function by requiring .Ar buf to not be .Dv NULL and by returning an integer, -zero on success and \-1 with corresponding errno on failure. +zero on success, and -1 with corresponding errno on failure. This is visible in the output of .Xr kdump 1 . .Sh BUGS diff --git a/lib/libc/stdlib/realpath.3 b/lib/libc/stdlib/realpath.3 index e485fa792dd..f4be5ff31a3 100644 --- a/lib/libc/stdlib/realpath.3 +++ b/lib/libc/stdlib/realpath.3 @@ -28,9 +28,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: realpath.3,v 1.22 2019/06/29 21:21:27 guenther Exp $ +.\" $OpenBSD: realpath.3,v 1.23 2019/06/30 17:31:39 jmc Exp $ .\" -.Dd $Mdocdate: June 29 2019 $ +.Dd $Mdocdate: June 30 2019 $ .Dt REALPATH 3 .Os .Sh NAME @@ -150,14 +150,15 @@ function call first appeared in .Pp In .Ox 6.6 , -it was reimplemented on top of a +it was reimplemented on top of the .Fn __realpath -system call whose calling convention differs from the standard +system call. +Its calling convention differed from the standard function by requiring .Ar resolved to not be .Dv NULL and by returning an integer, -zero on success and \-1 with corresponding errno on failure. +zero on success, and -1 with corresponding errno on failure. This is visible in the output of .Xr kdump 1 . |