This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20350] There is no test for p{read,write}64
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 12 Jul 2016 15:32:24 +0000
- Subject: [Bug libc/20350] There is no test for p{read,write}64
- Auto-submitted: auto-generated
- References: <bug-20350-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20350
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 3bbee82a56b38fc4ee28ecb59721ea1d42494642 (commit)
from 61655555aa8c2cd5f5351ef7d0aea6dfce046135 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3bbee82a56b38fc4ee28ecb59721ea1d42494642
commit 3bbee82a56b38fc4ee28ecb59721ea1d42494642
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jul 12 08:29:06 2016 -0700
Test p{read,write}64 with offset > 4GB
Test p{read,write}64 with offset > 4GB. Since it is not an error for a
successful pread/pwrite call to transfer fewer bytes than requested, we
should check if the return value is -1. No need to close and unlink
temporary file, which is handled by test-skeleton.c.
[BZ #20350]
* posix/tst-preadwrite.c: Renamed to ...
* posix/tst-preadwrite-common.c: This.
(PREAD): Removed.
(PWRITE): Likewise.
(STRINGIFY): Likewise.
(STRINGIFY2): Likewise.
(do_prepare): Make it static and remove function arguments.
(do_test): Likewise.
(PREPARE): Updated.
(TEST_FUNCTION): New.
(name): Make it static.
(fd): Likewise.
(do_prepare): Use create_temp_file.
(do_test): Renamed to ...
(do_test_with_offset): This. Make it static and accept offset.
Properly check return value of PWRITE and PREAD. Return bytes
read. Don't close fd nor unlink name.
* posix/tst-preadwrite.c: Rewrite.
* posix/tst-preadwrite64.c: Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 23 +++++++++++
posix/tst-preadwrite-common.c | 85 ++++++++++++++++++++++++++++++++++++++++
posix/tst-preadwrite.c | 87 ++---------------------------------------
posix/tst-preadwrite64.c | 40 +++++++++++++++++--
4 files changed, 148 insertions(+), 87 deletions(-)
create mode 100644 posix/tst-preadwrite-common.c
--
You are receiving this mail because:
You are on the CC list for the bug.