diff options
author | guenther <> | 2019-06-29 21:21:27 +0000 |
---|---|---|
committer | guenther <> | 2019-06-29 21:21:27 +0000 |
commit | e0045ca121eba6977330ff4f6422390a6bed7b3e (patch) | |
tree | f4da2b8c55364e0f32b527a920793dfbde5c25fd /src | |
parent | 6585927e66d9ab172754d95c4296dd4309a40512 (diff) | |
download | openbsd-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.3 | 18 |
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 |
148 | function call first appeared in | 148 | function call first appeared in |
149 | .Bx 4.4 . | 149 | .Bx 4.4 . |
150 | .Pp | ||
151 | In | ||
152 | .Ox 6.6 , | ||
153 | it was reimplemented on top of a | ||
154 | .Fn __realpath | ||
155 | system call whose calling convention differs from the standard | ||
156 | function by requiring | ||
157 | .Ar resolved | ||
158 | to not be | ||
159 | .Dv NULL | ||
160 | and by returning an integer, | ||
161 | zero on success and \-1 with corresponding errno on failure. | ||
162 | This is visible in the output of | ||
163 | .Xr kdump 1 . | ||