From a059c409c29affe9d5bf1e8301847946a8c30fde Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 26 Feb 2008 20:33:52 +0000 Subject: [PATCH] Added the "restrict" type-qualifier to the readlink() prototype. --- include/unistd.h | 2 +- lib/libc/sys/readlink.2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index a0e30229b08c..b7686858cf55 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 e747e5755e9a..1c2593ae0642 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