kern/163076: It is not possible to read in chunks from linprocfs
and procfs.
Jaakko Heinonen
jh at FreeBSD.org
Fri Dec 9 16:30:17 UTC 2011
The following reply was made to PR kern/163076; it has been noted by GNATS.
From: Jaakko Heinonen <jh at FreeBSD.org>
To: Poul-Henning Kamp <phk at phk.freebsd.dk>
Cc: Dag-Erling =?utf-8?B?U23DuHJncmF2?= <des at des.no>,
Petr Salinger <Petr.Salinger at seznam.cz>, bug-followup at FreeBSD.org,
mdf at FreeBSD.org
Subject: Re: kern/163076: It is not possible to read in chunks from linprocfs
and procfs.
Date: Fri, 9 Dec 2011 18:23:18 +0200
On 2011-12-09, Poul-Henning Kamp wrote:
> >As I wrote existing code depends on sbuf_len() to return the actual
> >length regardless of the error status after sbuf_finish().
>
> What do you mean by "actual length" ?
>
> The length it would have if there hadn't been errors ?
No, I mean returning s->s_len instead of -1. s_len is the length of the
string without the terminating NUL. s_len doesn't include the bytes that
didn't fit to the buffer.
--
Jaakko
More information about the freebsd-bugs
mailing list