From dfaef65dcfc165ef88957b7b4633499cbf612299 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 20 Mar 2005 18:12:27 +0000 Subject: 2.3.4-16 --- ChangeLog | 9 +++++++++ debug/Makefile | 2 +- debug/tst-lfschk1.c | 2 ++ debug/tst-lfschk2.c | 2 ++ debug/tst-lfschk3.c | 2 ++ fedora/glibc.spec.in | 5 ++++- posix/bits/unistd.h | 2 +- 7 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 debug/tst-lfschk1.c create mode 100644 debug/tst-lfschk2.c create mode 100644 debug/tst-lfschk3.c diff --git a/ChangeLog b/ChangeLog index 1bd2b68cb6..07a887f5e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-03-20 Jakub Jelinek + + * 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 * inet/test-ifaddrs.c: Use test-skeleton. diff --git a/debug/Makefile b/debug/Makefile index c904913c35..42e64ad16f 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -54,7 +54,7 @@ CFLAGS-recv_chk.c = -fexceptions -fasynchronous-unwind-tables 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) diff --git a/debug/tst-lfschk1.c b/debug/tst-lfschk1.c new file mode 100644 index 0000000000..f3e6d47d5e --- /dev/null +++ b/debug/tst-lfschk1.c @@ -0,0 +1,2 @@ +#define _FILE_OFFSET_BITS 64 +#include "tst-chk1.c" diff --git a/debug/tst-lfschk2.c b/debug/tst-lfschk2.c new file mode 100644 index 0000000000..95d4db1d32 --- /dev/null +++ b/debug/tst-lfschk2.c @@ -0,0 +1,2 @@ +#define _FILE_OFFSET_BITS 64 +#include "tst-chk2.c" diff --git a/debug/tst-lfschk3.c b/debug/tst-lfschk3.c new file mode 100644 index 0000000000..50a1ae1258 --- /dev/null +++ b/debug/tst-lfschk3.c @@ -0,0 +1,2 @@ +#define _FILE_OFFSET_BITS 64 +#include "tst-chk3.c" diff --git a/fedora/glibc.spec.in b/fedora/glibc.spec.in index 3b62b41830..d6fcab7080 100644 --- a/fedora/glibc.spec.in +++ b/fedora/glibc.spec.in @@ -1,4 +1,4 @@ -%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 @@ -1275,6 +1275,9 @@ rm -f *.filelist* %endif %changelog +* Sun Mar 20 2005 Jakub Jelinek 2.3.4-16 +- fix pread with -D_FILE_OFFSET_BITS=64 (#151573) + * Sat Mar 19 2005 Jakub Jelinek 2.3.4-15 - update from CVS - better fix for the dlclose bug (#145810, #150414) diff --git a/posix/bits/unistd.h b/posix/bits/unistd.h index 988f0167ed..9c82c7eaf5 100644 --- a/posix/bits/unistd.h +++ b/posix/bits/unistd.h @@ -51,7 +51,7 @@ pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) } # 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 (); -- cgit v1.2.3