summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/readlink.2
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-02-12 20:09:04 +0000
committerru <ru@FreeBSD.org>2008-02-12 20:09:04 +0000
commit56aa644e2afa86546f32df939678f91cfb827c35 (patch)
tree6960888c6bfdf1b1f57904fc49a37303e846febf /lib/libc/sys/readlink.2
parent636c607d81b2881f2edb182ae34c05016420b0c9 (diff)
downloadFreeBSD-src-56aa644e2afa86546f32df939678f91cfb827c35.zip
FreeBSD-src-56aa644e2afa86546f32df939678f91cfb827c35.tar.gz
Change readlink(2)'s return type and type of the last argument
to match POSIX. Prodded by: Alexey Lyashkov
Diffstat (limited to 'lib/libc/sys/readlink.2')
-rw-r--r--lib/libc/sys/readlink.28
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2
index 0f630f8..e747e57 100644
--- a/lib/libc/sys/readlink.2
+++ b/lib/libc/sys/readlink.2
@@ -28,7 +28,7 @@
.\" @(#)readlink.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd February 12, 2008
.Dt READLINK 2
.Os
.Sh NAME
@@ -38,8 +38,8 @@
.Lb libc
.Sh SYNOPSIS
.In unistd.h
-.Ft int
-.Fn readlink "const char *path" "char *buf" "int bufsiz"
+.Ft ssize_t
+.Fn readlink "const char *path" "char *buf" "size_t bufsiz"
.Sh DESCRIPTION
The
.Fn readlink
@@ -58,7 +58,7 @@ character to
.Fa buf .
.Sh RETURN VALUES
The call returns the count of characters placed in the buffer
-if it succeeds, or a -1 if an error occurs, placing the error
+if it succeeds, or a \-1 if an error occurs, placing the error
code in the global variable
.Va errno .
.Sh ERRORS
OpenPOWER on IntegriCloud