coreutils
[Top][All Lists]
Advanced

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

Re: cat: adjust the maximum data copied by copy_file_range


From: Matteo Croce
Subject: Re: cat: adjust the maximum data copied by copy_file_range
Date: Mon, 15 Dec 2025 11:18:07 +0900

Il giorno dom 14 dic 2025 alle ore 01:44 Paul Eggert
<eggert@cs.ucla.edu> ha scritto:
>
> On 2025-12-13 08:09, Matteo Croce wrote:
> > That was the purpose of the patch, even if maybe I should calculate it
> > by using sysconf(_SC_PAGESIZE).
>
> OK, but I'm not seeing why the patch would be a good idea for the
> coreutils master branch. Without the patch, doesn't 'cat' work well on
> all porting targets? Why add an unnecessary syscall?

Which syscall? sysconf doesn't ask the kernel for page size.

-- 
Matteo Croce

perl -e 'for($t=0;;$t++){print chr($t*($t>>8|$t>>13)&255)}' |aplay



reply via email to

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