about summary refs log tree commit diff
path: root/posix/bits/unistd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-05 21:33:15 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-05 21:33:15 +0000
commit6738b3c073c6b8f0ad145d77ba61fc1238256f8d (patch)
treeb2eb2f91f9f4764f56b294cf98de3a2fafcffa26 /posix/bits/unistd.h
parentfeb371838bf7886f22647eef31a913f49db6c144 (diff)
downloadglibc-6738b3c073c6b8f0ad145d77ba61fc1238256f8d.tar.gz
glibc-6738b3c073c6b8f0ad145d77ba61fc1238256f8d.tar.xz
glibc-6738b3c073c6b8f0ad145d77ba61fc1238256f8d.zip
2006-04-05 Alan Modra <amodra@bigpond.net.au>
	    Jakub Jelinek  <jakub@redhat.com>

	* posix/bits/unistd.h (readlink, __readlink_chk, __readlink_alias):
	Change return value to ssize_t.

	Reported by S.Çağlar Onur <caglar@uludag.org.tr>.
	Patch by René Rebe <rene@exactcode.de>.
	Reported by René Rebe <rene@exactcode.de>.
Diffstat (limited to 'posix/bits/unistd.h')
-rw-r--r--posix/bits/unistd.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/posix/bits/unistd.h b/posix/bits/unistd.h
index b72b7c758a..d461108e53 100644
--- a/posix/bits/unistd.h
+++ b/posix/bits/unistd.h
@@ -1,5 +1,5 @@
 /* Checking macros for unistd functions.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -80,16 +80,16 @@ pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset)
 #endif
 
 #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
-extern int __readlink_chk (__const char *__restrict __path,
-			   char *__restrict __buf, size_t __len,
-			   size_t __buflen)
+extern ssize_t __readlink_chk (__const char *__restrict __path,
+			       char *__restrict __buf, size_t __len,
+			       size_t __buflen)
      __THROW __nonnull ((1, 2)) __wur;
-extern int __REDIRECT_NTH (__readlink_alias,
-			   (__const char *__restrict __path,
-			    char *__restrict __buf, size_t __len), readlink)
+extern ssize_t __REDIRECT_NTH (__readlink_alias,
+			       (__const char *__restrict __path,
+				char *__restrict __buf, size_t __len), readlink)
      __nonnull ((1, 2)) __wur;
 
-extern __always_inline __nonnull ((1, 2)) __wur int
+extern __always_inline __nonnull ((1, 2)) __wur ssize_t
 __NTH (readlink (__const char *__restrict __path, char *__restrict __buf,
 		 size_t __len))
 {