summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2019-06-29 21:21:27 +0000
committerguenther <guenther@openbsd.org>2019-06-29 21:21:27 +0000
commit71304b6e1447dfe0d3778ad9eb798a31d0f8e6ae (patch)
tree53c43d04b567523cb92e789a49c99e20a3486e61 /lib/libc/stdlib
parentwrite_lease_db() only needs ifi->name and ifi->lease_db. (diff)
downloadwireguard-openbsd-71304b6e1447dfe0d3778ad9eb798a31d0f8e6ae.tar.xz
wireguard-openbsd-71304b6e1447dfe0d3778ad9eb798a31d0f8e6ae.zip
Document that getcwd() and realpath() are built on system calls that
have a different calling convention than the standard function...as seen in kdump output. ok deraadt@ schwarze@
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/realpath.318
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/libc/stdlib/realpath.3 b/lib/libc/stdlib/realpath.3
index ca2b07f46d8..e485fa792dd 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.21 2019/06/15 17:06:46 jmc Exp $
+.\" $OpenBSD: realpath.3,v 1.22 2019/06/29 21:21:27 guenther Exp $
.\"
-.Dd $Mdocdate: June 15 2019 $
+.Dd $Mdocdate: June 29 2019 $
.Dt REALPATH 3
.Os
.Sh NAME
@@ -147,3 +147,17 @@ The
.Fn realpath
function call first appeared in
.Bx 4.4 .
+.Pp
+In
+.Ox 6.6 ,
+it was reimplemented on top of a
+.Fn __realpath
+system call whose calling convention differs 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.
+This is visible in the output of
+.Xr kdump 1 .