Cross-Platform DDI Interface for Converting Strings to 64-bit Integers [PSARC/2008/740 FastTrack timeout 12/09/2008]

James Carlson james.d.carlson at sun.com
Tue Dec 2 06:22:22 PST 2008


Gerald Jelinek writes:
>         ddi_strtoll     Committed  In <sys/sunddi.h> under _KERNEL
>         ddi_strtoull    Committed  In <sys/sunddi.h> under _KERNEL

+1

(One nit: I think the proposal was a touch too long; the above two
lines would have been sufficient given the prior art.)

Garrett D'Amore writes:
> Perhaps a good extension to this case would be to define ddi_strtou32(), 
> ddi_strtos32(), ddi_strtou64(), and ddi_strtos64()?

That sounds like a subject for a different project.

I agree that it'd be nice to have conversions that match the standard
types (beyond just the base types), but that's not what we have in
libc, and I'd rather see a concerted effort to make a new set of
interfaces (probably not designed on this list) than an ad-hoc set of
additions.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677



More information about the opensolaris-arc mailing list