History log of /freebsd-10-stable/usr.bin/units/units.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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

# 227194 06-Nov-2011 ed

Add missing static keywords to units(1)


# 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)


# 100826 28-Jul-2002 dwmalone

Add enough consts to keep everyone happy.


# 78698 24-Jun-2001 dwmalone

Add prototypes and turn on WARNS=?2.


# 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


# 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


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 28502 21-Aug-1997 charnier

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


# 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.


# 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.


# 16186 08-Jun-1996 alex

Units conversion utility courtesy of NetBSD.

Submitted by: Jeremy Prior
Obtained from: NetBSD