Added the "restrict" type-qualifier to the readlink() prototype.

This commit is contained in:
Ruslan Ermilov 2008-02-26 20:33:52 +00:00
parent b03ee585b4
commit a059c409c2
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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