mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Added the "restrict" type-qualifier to the readlink() prototype.
This commit is contained in:
parent
b03ee585b4
commit
a059c409c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176607
|
@ -405,7 +405,7 @@ int getlogin_r(char *, int);
|
||||||
/* 1003.1-2001 */
|
/* 1003.1-2001 */
|
||||||
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
|
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
|
||||||
int fchown(int, uid_t, gid_t);
|
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
|
#endif
|
||||||
#if __POSIX_VISIBLE >= 200112
|
#if __POSIX_VISIBLE >= 200112
|
||||||
int gethostname(char *, size_t);
|
int gethostname(char *, size_t);
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
.\" @(#)readlink.2 8.1 (Berkeley) 6/4/93
|
.\" @(#)readlink.2 8.1 (Berkeley) 6/4/93
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd February 12, 2008
|
.Dd February 26, 2008
|
||||||
.Dt READLINK 2
|
.Dt READLINK 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In unistd.h
|
.In unistd.h
|
||||||
.Ft ssize_t
|
.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
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Fn readlink
|
.Fn readlink
|
||||||
|
|
Loading…
Reference in a new issue