Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 20:42:01 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        freebsd-arch@FreeBSD.org
Subject:   New libutil function: parse_capacity(3).
Message-ID:  <20040916184201.GD30151@darkness.comp.waw.pl>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBSd55ForvXbEpPzQRArAoAKDQPCnb9bRNDIPFGOgWOsA3Ni8RoQCg6TQr
iJUhLyLnIGGuvKnjxU+/75I=
=+ATK
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040916184201.GD30151>