From 56aa644e2afa86546f32df939678f91cfb827c35 Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 12 Feb 2008 20:09:04 +0000 Subject: Change readlink(2)'s return type and type of the last argument to match POSIX. Prodded by: Alexey Lyashkov --- include/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/unistd.h') 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); -- cgit v1.1