Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH performance regression in 5.8.1.2-test
On Tue, Apr 26, 2022 at 7:37 AM Jun. T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
> But at least on my Mac the following seems to work also:
>
> if (lseek(SHIN, 0, SEEK_CUR) == 0)
> rsize = SHINBUFSIZE;
>
> # Have you found a case in which lseek(SHIN, 0, SEEK_CUR) fails
> # when it shouldn't fail, or does not fail when it should fail?
I was pretty sure I'd found a case (on Ubuntu 20.04) where it
succeeded on a pipe when there was already data written to the pipe
before the seek was attempted. That was only/exactly for (0,
SEEK_CUR).
However, I can check that again. If that is the false-success mode,
it won't be tested by PWS's little C program in workers/50108
Messages sorted by:
Reverse Date,
Date,
Thread,
Author