size_t changes and 32/64-bit, kernel uio_resid type changed.
Oliver Fromme
check+komxlq00rsqyrfqb at fromme.com
Wed Aug 19 10:55:27 PDT 2009
Garance A Drosihn wrote:
> Matthew Dillon wrote:
> > size_t has been changed to unsigned long (and ssize_t to long). I may
> > revert this prior to the release if we hit pkgsrc problems. The change
> > will be kept for 64-bit machines.
>
> Isn't this explicitly wrong? Isn't ssize_t defined as holding all
> valid values of size_t, *plus* some extra values which can be used
> for error indications?
No, it isn't.
> To quote SUSv3:
>
> "The type ssize_t shall be capable of storing values at least
> in the range [-1, {SSIZE_MAX}]"
>
> So are you defining SSIZE_MAX to be smaller than maximum-long?
SSIZE_MAX != SIZE_MAX
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
More information about the Kernel
mailing list