coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Having 'cat' use copy_file_range


From: Paul Eggert
Subject: Having 'cat' use copy_file_range
Date: Thu, 27 Jan 2022 17:22:44 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

cp+install+mv started using copy_file_range in coreutils 9.0 and it seems to be working OK, so I thought I'd change cat to use it too. While looking into that I found some infelicities and/or unlikely integer overflows to fix (of course there are more where these came from; these are just the ones having to do with page-aligned buffer allocation which is something cat does).

I installed the attached series of patches to do all that; the last patch is the copy_file_range change.

Attachment: 0001-cat-improve-style.patch
Description: Text Data

Attachment: 0002-cat-prefer-signed-to-unsigned.patch
Description: Text Data

Attachment: 0003-shred-fix-declaration-typo.patch
Description: Text Data

Attachment: 0004-dd-improve-integer-overflow-checking.patch
Description: Text Data

Attachment: 0005-dd-simplify-conv-swab-code.patch
Description: Text Data

Attachment: 0006-copy-remove-unnecessary-free.patch
Description: Text Data

Attachment: 0007-build-update-gnulib-submodule-to-latest.patch
Description: Text Data

Attachment: 0008-maint-simplify-memory-alignment.patch
Description: Text Data

Attachment: 0009-csplit-improve-integer-overflow-checking.patch
Description: Text Data

Attachment: 0010-cat-prefer-copy_file_range-to-read-write.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]