[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RFE: enable buffering on null-terminated data
From: |
Zachary Santer |
Subject: |
RFE: enable buffering on null-terminated data |
Date: |
Sun, 10 Mar 2024 11:29:28 -0400 |
Was "stdbuf feature request - line buffering but for null-terminated data"
See below.
On Sun, Mar 10, 2024 at 5:38 AM Pádraig Brady <P@draigbrady.com> wrote:
>
> On 09/03/2024 16:30, Zachary Santer wrote:
> > 'stdbuf --output=L' will line-buffer the command's output stream.
> > Pretty useful, but that's looking for newlines. Filenames should be
> > passed between utilities in a null-terminated fashion, because the
> > null byte is the only byte that can't appear within one.
> >
> > If I want to buffer output data on null bytes, the closest I can get
> > is 'stdbuf --output=0', which doesn't buffer at all. This is pretty
> > inefficient.
> >
> > 0 means unbuffered, and Z is already taken for, I guess, zebibytes.
> > --output=N, then?
> >
> > Would this require a change to libc implementations, or is it possible now?
>
> This does seem like useful functionality,
> but it would require support for libc implementations first.
>
> cheers,
> Pádraig
- stdbuf feature request - line buffering but for null-terminated data, Zachary Santer, 2024/03/09
- Re: stdbuf feature request - line buffering but for null-terminated data, Pádraig Brady, 2024/03/10
- RFE: enable buffering on null-terminated data,
Zachary Santer <=
- Re: RFE: enable buffering on null-terminated data, Carl Edquist, 2024/03/10
- Re: RFE: enable buffering on null-terminated data, Zachary Santer, 2024/03/10
- Re: RFE: enable buffering on null-terminated data, Carl Edquist, 2024/03/11
- Re: RFE: enable buffering on null-terminated data, Zachary Santer, 2024/03/11
- Re: RFE: enable buffering on null-terminated data, Carl Edquist, 2024/03/14
- Re: RFE: enable buffering on null-terminated data, Zachary Santer, 2024/03/17
- Re: RFE: enable buffering on null-terminated data, Kaz Kylheku, 2024/03/19
- Re: RFE: enable buffering on null-terminated data, Zachary Santer, 2024/03/19
- Re: RFE: enable buffering on null-terminated data, Carl Edquist, 2024/03/20
Re: stdbuf feature request - line buffering but for null-terminated data, Kaz Kylheku, 2024/03/12