summaryrefslogtreecommitdiffstats
path: root/usr.bin/units
Commit message (Collapse)AuthorAgeFilesLines
* use .Mt to mark up email addresses consistently (part3)bapt2014-06-231-1/+1
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* units(1): Fix minor typoseadler2014-05-151-2/+2
| | | | Obtained From: DragonflyBSD
* units(1): call el_end()eadler2014-05-121-0/+1
| | | | Add missing el_end() call
* units(1): unbreak -f option, fix some style, increase compatibility.eadler2014-05-121-6/+4
| | | | | | - Unbreak the -f option: it was missing a ':' - gunits -V spits out more information than just its version: attempt to do so as well.
* units(1): use common functionseadler2014-05-121-3/+2
| | | | No need to replicate strdup
* units(1): don't compare pointers with 0eadler2014-04-141-1/+1
| | | | | | | For better readability, don't compare pointers with 0 or assign 0 to them. Use NULL instead. Inspired by: DragonflyBSD
* units(1): Add 'static' and sort list.eadler2014-04-141-18/+18
| | | | Inspired by: DragonflyBSD
* units(1): Add v option: verboseeadler2014-04-142-14/+39
| | | | | | | For increased compatibility with GNU units: support a -v option which produces more verbose output when spitting out the answer. GNU -v does additional work in the version, information, and check output which we do not (yet?) replicate.
* units(1): Add U optioneadler2014-04-142-4/+16
| | | | | For increased compatibility with GNU units: support a -U option which tests for the existence of the default units file and prints it to the screen.
* units(1): support reading multiple units fileseadler2014-04-141-9/+12
| | | | | GNU units(1) supports reading up to 25 -f options. We support an arbitrary number.
* units(1): parse config file after setting defaultseadler2014-04-141-1/+1
| | | | | Parse the config file after setting the defaults to permit the user to change things (e.g., editing mode)
* units(1): add libedit supporteadler2014-04-142-19/+51
| | | | | | Add line editing and history support to units(1) via libedit. Reviewed by: bdrewery
* units(1): make -V print version instead of -veadler2014-04-072-11/+7
| | | | | | | | | | | | | | | The units program is likely little used. It is even less likely that a script will want the units program to print out its version number by passing -v. GNU units uses -V for version and -v for verbosity. Increase compatibility between these two versions (written by the same author) by switching our flag as well. Take this opportunity to remove bogus information about the version number and just call it 'FreeBSD units'. Discussed with: cperciva, rwatson
* units(1): fix spellingeadler2014-04-071-1/+1
| | | | Pointyhat to: me
* units(1): Add some some additional unitseadler2014-04-071-0/+6
| | | | Most of these are also recognized by GNU units
* add capsicum to units(1)eadler2014-03-301-0/+10
|
* units(1): Add some missing unitseadler2014-03-301-0/+3
|
* Teach units(1) that an erg and ergon are the same thing.eadler2014-03-301-0/+1
|
* Let units deal with Gas Mark and Stufe.dwmalone2014-02-061-0/+2
|
* mdoc: terminate quoted strings.joel2012-03-261-17/+17
| | | | Reviewed by: brueffer
* Add missing static keywords to units(1)ed2011-11-061-6/+6
|
* It seems when I added code for affine unit changes to units, Idwmalone2011-09-151-3/+5
| | | | | | | forgot to tell the man page we could now convert Celsius to Fahrenheit. Approved by: re (kib) MFC after: 1 month
* Add limited support for units that are related by affine ratherdwmalone2008-08-162-22/+63
| | | | | | | | | | | | | 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)
* - acificfrancexchange -> pacificfrancexchangeedwin2008-08-071-1/+3
| | | | | | - Add comments about the pegged currencies. Submitted by: GeJ on #bsdports
* Update the units library file.edwin2008-08-071-104/+195
| | | | | | | | | | | | | | - 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
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sort sections.ru2005-01-181-7/+7
|
* Mechanically kill hard sentence breaks.ru2004-07-021-19/+40
|
* mdoc(7): Fixed list types.ru2004-07-021-2/+2
|
* Use miligram rather than mg in the definition of carats.dwmalone2004-05-301-2/+2
| | | | | PR: 61451 Submitted by: Tony Monroe <tmonroe+freebsd@nog.net>
* Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, andmph2003-11-051-0/+3
| | | | | | | solar radii. The corresponding masses (m_earth, etc.) were already present. Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie.
* Add the British hundredweight (brhundredweight). For discussion, see:tom2003-07-011-0/+7
| | | | | | | | | | | | 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
* Add enough consts to keep everyone happy.dwmalone2002-07-281-1/+1
|
* The rate between EUR and USD has never been as large as our old valuejoerg2002-07-091-2/+2
| | | | | | | | (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
* Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.joe2001-12-181-0/+3
| | | | | Submitted by: banshee <banshee@pork.abattoir.com> MFC after: 7 days
* Install files via FILES.ru2001-12-171-4/+2
|
* WARNS=2 is going to become the default, so remove it from here.markm2001-12-111-1/+0
|
* Remove whitespace at EOL.dd2001-07-151-12/+12
|
* Add prototypes and turn on WARNS=?2.dwmalone2001-06-242-0/+19
|
* Correct a typo.dd2001-06-011-1/+1
| | | | | PR: 22885 Submitted by: Rene de Vries <rene@tunix.nl>
* Add some gravitational values.eric2001-05-121-0/+4
| | | | Approved by: murray
* Reverse order of from and to in order to match reality.dougb2001-04-251-1/+1
| | | | | PR: 26631 Submitted by: Glenn Johnson, glennpj@charter.net
* All temperature scales are centigrades. Use "Celsius" instead.dcs2001-03-011-1/+1
|
* Add missing prefix for nano, I presume this was missing 'cos of thedwmalone2001-02-281-10/+16
| | | | | | | prefix recusrion bug. Remove units which can be derived using prefixes and other units. Add new prefixes for 2^10, 2^20, etc...
* Give units a bit of a cleanup:dwmalone2001-02-281-32/+26
| | | | | | | | | | | | | | 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
* Correct spelling of millennium.dwmalone2001-01-161-1/+1
| | | | | PR: 24369 Submitted by: Tony Finch <dot@dotat.at>
* As far as I can tell, you have never been able to use 'ab' as a unitdwmalone2000-12-241-1/+1
| | | | name if 'a' and 'b' are unit names. You can use 'a b' though.
* Prepare for mdoc(7)NG.ru2000-12-191-17/+18
|
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-171-2/+2
|
* Add 'shot', using the definition used by bars and shotglasses.billf2000-08-271-0/+1
|
OpenPOWER on IntegriCloud