| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>
|
|
|
|
| |
Obtained From: DragonflyBSD
|
|
|
|
| |
Add missing el_end() call
|
|
|
|
|
|
| |
- Unbreak the -f option: it was missing a ':'
- gunits -V spits out more information than just its version: attempt to do so
as well.
|
|
|
|
| |
No need to replicate strdup
|
|
|
|
|
|
|
| |
For better readability, don't compare pointers with 0 or assign 0
to them. Use NULL instead.
Inspired by: DragonflyBSD
|
|
|
|
| |
Inspired by: DragonflyBSD
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
GNU units(1) supports reading up to 25 -f options. We support an arbitrary
number.
|
|
|
|
|
| |
Parse the config file after setting the defaults to permit the user to change
things (e.g., editing mode)
|
|
|
|
|
|
| |
Add line editing and history support to units(1) via libedit.
Reviewed by: bdrewery
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Pointyhat to: me
|
|
|
|
| |
Most of these are also recognized by GNU units
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Reviewed by: brueffer
|
| |
|
|
|
|
|
|
|
| |
forgot to tell the man page we could now convert Celsius to Fahrenheit.
Approved by: re (kib)
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
- Add comments about the pegged currencies.
Submitted by: GeJ on #bsdports
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: 61451
Submitted by: Tony Monroe <tmonroe+freebsd@nog.net>
|
|
|
|
|
|
|
| |
solar radii. The corresponding masses (m_earth, etc.) were already
present.
Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
| |
Submitted by: banshee <banshee@pork.abattoir.com>
MFC after: 7 days
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: 22885
Submitted by: Rene de Vries <rene@tunix.nl>
|
|
|
|
| |
Approved by: murray
|
|
|
|
|
| |
PR: 26631
Submitted by: Glenn Johnson, glennpj@charter.net
|
| |
|
|
|
|
|
|
|
| |
prefix recusrion bug. Remove units which can be derived using prefixes
and other units.
Add new prefixes for 2^10, 2^20, etc...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
PR: 24369
Submitted by: Tony Finch <dot@dotat.at>
|
|
|
|
| |
name if 'a' and 'b' are unit names. You can use 'a b' though.
|
| |
|
| |
|
| |
|