+2005-03-20 Jakub Jelinek <jakub@redhat.com>
+
+ * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
+ instead of __off_t for last argument.
+ * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
+ * debug/tst-lfschk1.c: New test.
+ * debug/tst-lfschk2.c: New test.
+ * debug/tst-lfschk3.c: New test.
+
2005-03-19 Ulrich Drepper <drepper@redhat.com>
* inet/test-ifaddrs.c: Use test-skeleton.
CFLAGS-recvfrom_chk.c = -fexceptions -fasynchronous-unwind-tables
tests = backtrace-tst tst-chk1 tst-chk2 tst-chk3 \
- test-strcpy_chk test-stpcpy_chk
+ tst-lfschk1 tst-lfschk2 tst-lfschk3 test-strcpy_chk test-stpcpy_chk
extra-libs = libSegFault libpcprofile
extra-libs-others = $(extra-libs)
--- /dev/null
+#define _FILE_OFFSET_BITS 64
+#include "tst-chk1.c"
--- /dev/null
+#define _FILE_OFFSET_BITS 64
+#include "tst-chk2.c"
--- /dev/null
+#define _FILE_OFFSET_BITS 64
+#include "tst-chk3.c"
-%define glibcrelease 15
+%define glibcrelease 16
%define auxarches i586 i686 athlon sparcv9 alphaev6
%define prelinkarches noarch
%define nptlarches i386 i686 athlon x86_64 ia64 s390 s390x sparcv9 ppc ppc64
%endif
%changelog
+* Sun Mar 20 2005 Jakub Jelinek <jakub@redhat.com> 2.3.4-16
+- fix pread with -D_FILE_OFFSET_BITS=64 (#151573)
+
* Sat Mar 19 2005 Jakub Jelinek <jakub@redhat.com> 2.3.4-15
- update from CVS
- better fix for the dlclose bug (#145810, #150414)
}
# else
extern __always_inline __wur ssize_t
-pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset)
+pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset)
{
if (__bos0 (__buf) != (size_t) -1 && __nbytes > __bos0 (__buf))
__chk_fail ();