summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguenther <>2019-06-29 21:21:27 +0000
committerguenther <>2019-06-29 21:21:27 +0000
commite0045ca121eba6977330ff4f6422390a6bed7b3e (patch)
treef4da2b8c55364e0f32b527a920793dfbde5c25fd /src
parent6585927e66d9ab172754d95c4296dd4309a40512 (diff)
downloadopenbsd-e0045ca121eba6977330ff4f6422390a6bed7b3e.tar.gz
openbsd-e0045ca121eba6977330ff4f6422390a6bed7b3e.tar.bz2
openbsd-e0045ca121eba6977330ff4f6422390a6bed7b3e.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 'src')
-rw-r--r--src/lib/libc/stdlib/realpath.318
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/realpath.3 b/src/lib/libc/stdlib/realpath.3
index ca2b07f46d..e485fa792d 100644
--- a/src/lib/libc/stdlib/realpath.3
+++ b/src/lib/libc/stdlib/realpath.3
@@ -28,9 +28,9 @@
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE. 29.\" SUCH DAMAGE.
30.\" 30.\"
31.\" $OpenBSD: realpath.3,v 1.21 2019/06/15 17:06:46 jmc Exp $ 31.\" $OpenBSD: realpath.3,v 1.22 2019/06/29 21:21:27 guenther Exp $
32.\" 32.\"
33.Dd $Mdocdate: June 15 2019 $ 33.Dd $Mdocdate: June 29 2019 $
34.Dt REALPATH 3 34.Dt REALPATH 3
35.Os 35.Os
36.Sh NAME 36.Sh NAME
@@ -147,3 +147,17 @@ The
147.Fn realpath 147.Fn realpath
148function call first appeared in 148function call first appeared in
149.Bx 4.4 . 149.Bx 4.4 .
150.Pp
151In
152.Ox 6.6 ,
153it was reimplemented on top of a
154.Fn __realpath
155system call whose calling convention differs from the standard
156function by requiring
157.Ar resolved
158to not be
159.Dv NULL
160and by returning an integer,
161zero on success and \-1 with corresponding errno on failure.
162This is visible in the output of
163.Xr kdump 1 .