summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
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 /include/unistd.h
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 'include/unistd.h')
-rw-r--r--include/unistd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 0d62a46..a0e3022 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);
-int readlink(const char *, char *, int);
+ssize_t readlink(const char *, char *, size_t);
#endif
#if __POSIX_VISIBLE >= 200112
int gethostname(char *, size_t);
OpenPOWER on IntegriCloud