summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/unistd.h2
-rw-r--r--lib/libc/sys/readlink.24
2 files changed, 3 insertions, 3 deletions
diff --git a/include/unistd.h b/include/unistd.h
index a0e3022..b768685 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -405,7 +405,7 @@ int getlogin_r(char *, int);
/* 1003.1-2001 */
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
int fchown(int, uid_t, gid_t);
-ssize_t readlink(const char *, char *, size_t);
+ssize_t readlink(const char * __restrict, char * __restrict, size_t);
#endif
#if __POSIX_VISIBLE >= 200112
int gethostname(char *, size_t);
diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2
index e747e57..1c2593a 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 February 12, 2008
+.Dd February 26, 2008
.Dt READLINK 2
.Os
.Sh NAME
@@ -39,7 +39,7 @@
.Sh SYNOPSIS
.In unistd.h
.Ft ssize_t
-.Fn readlink "const char *path" "char *buf" "size_t bufsiz"
+.Fn readlink "const char *restrict path" "char *restrict buf" "size_t bufsiz"
.Sh DESCRIPTION
The
.Fn readlink
OpenPOWER on IntegriCloud