aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/units
Commit message (Collapse)AuthorAgeFilesLines
...
* | | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* | | units(1): Fix minor typosEitan Adler2014-05-151-2/+2
| | | | | | | | | | | | | | | | | | | | | Obtained From: DragonflyBSD Notes: svn path=/head/; revision=266117
* | | units(1): call el_end()Eitan Adler2014-05-121-0/+1
| | | | | | | | | | | | | | | | | | | | | Add missing el_end() call Notes: svn path=/head/; revision=265907
* | | units(1): unbreak -f option, fix some style, increase compatibility.Eitan Adler2014-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. Notes: svn path=/head/; revision=265904
* | | units(1): use common functionsEitan Adler2014-05-121-3/+2
| |/ |/| | | | | | | | | | | No need to replicate strdup Notes: svn path=/head/; revision=265903
* | units(1): don't compare pointers with 0Eitan Adler2014-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | For better readability, don't compare pointers with 0 or assign 0 to them. Use NULL instead. Inspired by: DragonflyBSD Notes: svn path=/head/; revision=264475
* | units(1): Add 'static' and sort list.Eitan Adler2014-04-141-18/+18
| | | | | | | | | | | | | | Inspired by: DragonflyBSD Notes: svn path=/head/; revision=264474
* | units(1): Add v option: verboseEitan Adler2014-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. Notes: svn path=/head/; revision=264470
* | units(1): Add U optionEitan Adler2014-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. Notes: svn path=/head/; revision=264463
* | units(1): support reading multiple units filesEitan Adler2014-04-141-9/+12
| | | | | | | | | | | | | | | | GNU units(1) supports reading up to 25 -f options. We support an arbitrary number. Notes: svn path=/head/; revision=264462
* | units(1): parse config file after setting defaultsEitan Adler2014-04-141-1/+1
| | | | | | | | | | | | | | | | Parse the config file after setting the defaults to permit the user to change things (e.g., editing mode) Notes: svn path=/head/; revision=264459
* | units(1): add libedit supportEitan Adler2014-04-142-19/+51
| | | | | | | | | | | | | | | | | | Add line editing and history support to units(1) via libedit. Reviewed by: bdrewery Notes: svn path=/head/; revision=264458
* | units(1): make -V print version instead of -vEitan Adler2014-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 Notes: svn path=/head/; revision=264216
* | units(1): fix spellingEitan Adler2014-04-071-1/+1
| | | | | | | | | | | | | | Pointyhat to: me Notes: svn path=/head/; revision=264211
* | units(1): Add some some additional unitsEitan Adler2014-04-071-0/+6
| | | | | | | | | | | | | | Most of these are also recognized by GNU units Notes: svn path=/head/; revision=264209
* | add capsicum to units(1)Eitan Adler2014-03-301-0/+10
| | | | | | | | Notes: svn path=/head/; revision=263940
* | units(1): Add some missing unitsEitan Adler2014-03-301-0/+3
| | | | | | | | Notes: svn path=/head/; revision=263930
* | Teach units(1) that an erg and ergon are the same thing.Eitan Adler2014-03-301-0/+1
| | | | | | | | Notes: svn path=/head/; revision=263929
* | Let units deal with Gas Mark and Stufe.David Malone2014-02-061-0/+2
|/ | | | Notes: svn path=/head/; revision=261555
* mdoc: terminate quoted strings.Joel Dahl2012-03-261-17/+17
| | | | | | | Reviewed by: brueffer Notes: svn path=/head/; revision=233510
* Add missing static keywords to units(1)Ed Schouten2011-11-061-6/+6
| | | | Notes: svn path=/head/; revision=227194
* It seems when I added code for affine unit changes to units, IDavid Malone2011-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 Notes: svn path=/head/; revision=225596
* Add limited support for units that are related by affine ratherDavid Malone2008-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) Notes: svn path=/head/; revision=181786
* - acificfrancexchange -> pacificfrancexchangeEdwin Groothuis2008-08-071-1/+3
| | | | | | | | | - Add comments about the pegged currencies. Submitted by: GeJ on #bsdports Notes: svn path=/head/; revision=181357
* Update the units library file.Edwin Groothuis2008-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 Notes: svn path=/head/; revision=181352
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-7/+7
| | | | Notes: svn path=/head/; revision=140420
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-19/+40
| | | | Notes: svn path=/head/; revision=131491
* mdoc(7): Fixed list types.Ruslan Ermilov2004-07-021-2/+2
| | | | Notes: svn path=/head/; revision=131475
* Use miligram rather than mg in the definition of carats.David Malone2004-05-301-2/+2
| | | | | | | | PR: 61451 Submitted by: Tony Monroe <tmonroe+freebsd@nog.net> Notes: svn path=/head/; revision=129873
* Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, andMatthew Hunt2003-11-051-0/+3
| | | | | | | | | | solar radii. The corresponding masses (m_earth, etc.) were already present. Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie. Notes: svn path=/head/; revision=122143
* Add the British hundredweight (brhundredweight). For discussion, see:Tom Hukins2003-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 Notes: svn path=/head/; revision=117103
* Add enough consts to keep everyone happy.David Malone2002-07-281-1/+1
| | | | Notes: svn path=/head/; revision=100826
* The rate between EUR and USD has never been as large as our old valueJoerg Wunsch2002-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 Notes: svn path=/head/; revision=99644
* Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.Josef Karthauser2001-12-181-0/+3
| | | | | | | | Submitted by: banshee <banshee@pork.abattoir.com> MFC after: 7 days Notes: svn path=/head/; revision=88125
* Install files via FILES.Ruslan Ermilov2001-12-171-4/+2
| | | | Notes: svn path=/head/; revision=88064
* WARNS=2 is going to become the default, so remove it from here.Mark Murray2001-12-111-1/+0
| | | | Notes: svn path=/head/; revision=87700
* Remove whitespace at EOL.Dima Dorfman2001-07-151-12/+12
| | | | Notes: svn path=/head/; revision=79755
* Add prototypes and turn on WARNS=?2.David Malone2001-06-242-0/+19
| | | | Notes: svn path=/head/; revision=78698
* Correct a typo.Dima Dorfman2001-06-011-1/+1
| | | | | | | | PR: 22885 Submitted by: Rene de Vries <rene@tunix.nl> Notes: svn path=/head/; revision=77566
* Add some gravitational values.Eric Melville2001-05-121-0/+4
| | | | | | | Approved by: murray Notes: svn path=/head/; revision=76524
* Reverse order of from and to in order to match reality.Doug Barton2001-04-251-1/+1
| | | | | | | | PR: 26631 Submitted by: Glenn Johnson, glennpj@charter.net Notes: svn path=/head/; revision=75941
* All temperature scales are centigrades. Use "Celsius" instead.Daniel C. Sobral2001-03-011-1/+1
| | | | Notes: svn path=/head/; revision=73259
* Add missing prefix for nano, I presume this was missing 'cos of theDavid Malone2001-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... Notes: svn path=/head/; revision=73230
* Give units a bit of a cleanup:David Malone2001-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 Notes: svn path=/head/; revision=73229
* Correct spelling of millennium.David Malone2001-01-161-1/+1
| | | | | | | | PR: 24369 Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=71104
* As far as I can tell, you have never been able to use 'ab' as a unitDavid Malone2000-12-241-1/+1
| | | | | | | name if 'a' and 'b' are unit names. You can use 'a b' though. Notes: svn path=/head/; revision=70338
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-17/+18
| | | | Notes: svn path=/head/; revision=70197
* mdoc(7) police: use certified section headers wherever possible.Ruslan Ermilov2000-11-171-2/+2
| | | | Notes: svn path=/head/; revision=68854
* Add 'shot', using the definition used by bars and shotglasses.Bill Fumerola2000-08-271-0/+1
| | | | Notes: svn path=/head/; revision=65138