History log of /freebsd-10.0-release/usr.bin/units/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


233510 26-Mar-2012 joel

mdoc: terminate quoted strings.

Reviewed by: brueffer


227194 06-Nov-2011 ed

Add missing static keywords to units(1)


225596 15-Sep-2011 dwmalone

It seems when I added code for affine unit changes to units, I
forgot to tell the man page we could now convert Celsius to Fahrenheit.

Approved by: re (kib)
MFC after: 1 month


181786 16-Aug-2008 dwmalone

Add limited support for units that are related by affine rather
than linear relations. We can now convert degC to degF.

586 units, 56 prefixes
You have: 24 degC
You want: degF
75.2
You have: degC
You want: K
(-> x*1 +273.15)
(<- y*1 -273.15)


181357 07-Aug-2008 edwin

- acificfrancexchange -> pacificfrancexchange
- Add comments about the pegged currencies.

Submitted by: GeJ on #bsdports


181352 07-Aug-2008 edwin

Update the units library file.

- Merge changes from NetBSD and OpenBSD.
- Add the Euro as a primitive unit, add old converted currency and
pegged currency (Obtained from Wikipedia)
- Rename "dollar" to "usdollar" as primitive unit, remove non-pegged
currency and add pegged currency (Obtained from Wikipedia)
- Updated the accuracy of a lot of constants (Obtained from Wikipedia)

PR: bin/106545 bin/88252
Submitted by: trasz<trasz@pin.if.uz.zgora.pl>, J Vinopal <banshee@abattoir.com>
Approved by: bde@ (mentor)
MFC after: 1 week


141846 13-Feb-2005 ru

Expand *n't contractions.


140420 18-Jan-2005 ru

Sort sections.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


131475 02-Jul-2004 ru

mdoc(7): Fixed list types.


129873 30-May-2004 dwmalone

Use miligram rather than mg in the definition of carats.

PR: 61451
Submitted by: Tony Monroe <tmonroe+freebsd@nog.net>


122143 05-Nov-2003 mph

Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, and
solar radii. The corresponding masses (m_earth, etc.) were already
present.

Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie.


117103 01-Jul-2003 tom

Add the British hundredweight (brhundredweight). For discussion, see:
http://london.pm.org/pipermail/london.pm/Week-of-Mon-20030630/019926.html
For a definition, see:
http://www.bartleby.com/61/55/H0325500.html

Also add some more computing terms described at:
http://www.wikipedia.org/wiki/Integral_data_type

Reviewed by: dwmalone
MFC after: 2 weeks


100826 28-Jul-2002 dwmalone

Add enough consts to keep everyone happy.


99644 09-Jul-2002 joerg

The rate between EUR and USD has never been as large as our old value
(1.12) since the introductions as a common EU currency. Anyway, since
the rate now seems to stabilize just around 1.00, fix up our value
here.

MFC after: 1 day


88125 18-Dec-2001 joe

Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.

Submitted by: banshee <banshee@pork.abattoir.com>
MFC after: 7 days


88064 17-Dec-2001 ru

Install files via FILES.


87700 11-Dec-2001 markm

WARNS=2 is going to become the default, so remove it from here.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


78698 24-Jun-2001 dwmalone

Add prototypes and turn on WARNS=?2.


77566 01-Jun-2001 dd

Correct a typo.

PR: 22885
Submitted by: Rene de Vries <rene@tunix.nl>


76524 12-May-2001 eric

Add some gravitational values.

Approved by: murray


75941 25-Apr-2001 dougb

Reverse order of from and to in order to match reality.

PR: 26631
Submitted by: Glenn Johnson, glennpj@charter.net


73259 01-Mar-2001 dcs

All temperature scales are centigrades. Use "Celsius" instead.


73230 28-Feb-2001 dwmalone

Add missing prefix for nano, I presume this was missing 'cos of the
prefix recusrion bug. Remove units which can be derived using prefixes
and other units.

Add new prefixes for 2^10, 2^20, etc...


73229 28-Feb-2001 dwmalone

Give units a bit of a cleanup:

1) Fix a bug where the recursion on prefixes where if recusrion failed
then the next attempt started too far along the string.
2) Up some internal limits that we were about to hit off.
3) Change the constness and signedness of some things and complete missing
prototypes.
4) Remove the readerror function 'cos it could print out the wrong
wrong file name. Replace it with more useful error messages.
5) Use sizeof when passing buffers to fgets.
6) Warn about empty prefix definitions.

Reviewed by: iedowse


71104 16-Jan-2001 dwmalone

Correct spelling of millennium.

PR: 24369
Submitted by: Tony Finch <dot@dotat.at>


70338 24-Dec-2000 dwmalone

As far as I can tell, you have never been able to use 'ab' as a unit
name if 'a' and 'b' are unit names. You can use 'a b' though.


70197 19-Dec-2000 ru

Prepare for mdoc(7)NG.


68854 17-Nov-2000 ru

mdoc(7) police: use certified section headers wherever possible.


65138 27-Aug-2000 billf

Add 'shot', using the definition used by bars and shotglasses.


64053 31-Jul-2000 kris

Don't segv when trying to add a 0-length unit name.
Some string-related cleanups inspired by OpenBSD.

Reviewed by: asmodai


59370 18-Apr-2000 joerg

No such thing like `southamericarand' when Rand is the currency of ZA...


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


47377 22-May-1999 jmz

Add euro-currency and constant rates of EMU area.

PR: bin/9263
Submitted by: Timo J. Rinne <tri@freebsd.org>


39527 20-Sep-1998 bde

Install using ${INSTALL}, not using `install'.


34801 23-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.


28502 21-Aug-1997 charnier

Use err(3). Cosmetic in usage(). Rewrote man page in mdoc format.


25504 06-May-1997 alex

Specify the full path of units.lib in the FILES section.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


16269 10-Jun-1996 alex

Added revised manpage submitted by the author of units.

Reviewed by: alex
Submitted by: Adrian Mariano <adrian@cam.cornell.edu>


16190 08-Jun-1996 alex

Fix exit code when used in non-interactive mode.
Remove ';' typo attached to if statement.


16187 08-Jun-1996 alex

This commit was generated by cvs2svn to compensate for changes in r16186,
which included commits to RCS files with non-trunk default branches.