The following reply was made to PR kern/163076; it has been noted by GNATS.

From: Jaakko Heinonen <[email protected]>
To: Poul-Henning Kamp <[email protected]>
Cc: Dag-Erling =?utf-8?B?U23DuHJncmF2?= <[email protected]>,
        Petr Salinger <[email protected]>, [email protected],
        [email protected]
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to