[PATCH] PAGE_SIZE in libsbuf

Robert Millan rmh at debian.org
Sun Jul 3 12:08:00 UTC 2011


2011/7/3 Kostik Belousov <kostikbel at gmail.com>:
> I think the different workaround is already included in the latest
> sbuf source. Please see
> http://svnweb.freebsd.org/base/head/sys/kern/subr_sbuf.c?revision=222015&view=markup

How does libsbuf react if the guess fails?  Also note this codepath
isn't tested in FreeBSD (except for pc98).

I'm afraid this situation could lead to runtime errors somehow.  I'd
still propose replacing this guess with a sysconf() check.

-- 
Robert Millan


More information about the freebsd-hackers mailing list