New libutil function: parse_capacity(3).
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Sep 16 11:42:04 PDT 2004
Hello.
I implemented parse_capacity() function which can be use to convert a
string with a human-readable capacity value to a off_t value.
It can be used by utilities like:
% truncate -s 8g test
# mdconfig -a -t malloc -s 16M
Patch can be found here:
http://people.freebsd.org/~pjd/patches/parse_capacity.patch
Any comments before committing?
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd at FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20040916/9a389c27/attachment.bin
More information about the freebsd-arch
mailing list