<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/dc, branch upstream/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2019-09-04T13:44:46Z</updated>
<entry>
<title>Adjust history, info source from v1's manuals</title>
<updated>2019-09-04T13:44:46Z</updated>
<author>
<name>Sevan Janiyan</name>
<email>sevan@FreeBSD.org</email>
</author>
<published>2019-09-04T13:44:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=08509077b32fa08e0e54a878137b90ac93dbff69'/>
<id>urn:sha1:08509077b32fa08e0e54a878137b90ac93dbff69</id>
<content type='text'>
https://www.bell-labs.com/usr/dmr/www/1stEdman.html

MFC after:	5 days
</content>
</entry>
<entry>
<title>Drop "All rights reserved" from the files I own</title>
<updated>2019-03-11T22:23:56Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2019-03-11T22:23:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=809a8352dd5bb83dca991ff6c82e509208afad26'/>
<id>urn:sha1:809a8352dd5bb83dca991ff6c82e509208afad26</id>
<content type='text'>
Also, add SPDX tags where needed.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Make dc(1) buildable.</title>
<updated>2018-09-19T07:08:27Z</updated>
<author>
<name>Jung-uk Kim</name>
<email>jkim@FreeBSD.org</email>
</author>
<published>2018-09-19T07:08:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ee4526c085c75e053e447baaedd9ee7920f08951'/>
<id>urn:sha1:ee4526c085c75e053e447baaedd9ee7920f08951</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dc: make use of caph_enter</title>
<updated>2018-06-18T04:54:09Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-06-18T04:54:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=31b998816cca40a1499a4f8eb55a741885137cd2'/>
<id>urn:sha1:31b998816cca40a1499a4f8eb55a741885137cd2</id>
<content type='text'>
We already use caph library so this makes sense.
</content>
</entry>
<entry>
<title>dc(1): fix modulo operations with fractional inputs</title>
<updated>2017-12-07T02:08:55Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-12-07T02:08:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0d119bab3801d3bdac9c5fc0d8e64536197b67bc'/>
<id>urn:sha1:0d119bab3801d3bdac9c5fc0d8e64536197b67bc</id>
<content type='text'>
Our dc(1) has never correctly calculated remainders with fractional inputs.
Both bmod and bdivmod seem to have copy/pasted code from bdiv, which results
in the remainder having the wrong output scale.

PR:		162495
Reported by:	anonymous
Reviewed by:	pfg
Differential Revision:	https://reviews.freebsd.org/D13390
</content>
</entry>
<entry>
<title>dc(1): fix input of non-decimal fractional numbers</title>
<updated>2017-12-05T04:22:35Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-12-05T04:22:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=95639a80efb8d691feabe83428703dea89b873a4'/>
<id>urn:sha1:95639a80efb8d691feabe83428703dea89b873a4</id>
<content type='text'>
Inputting fractional non-decimal numbers has never worked correctly in our
OpenBSD-derived dc(1). It truncates the input to a number of decimal places
equal to the number of hexadecimal (or whatever base) places given on the
input. That's unacceptable, because many numbers require more precision to
represent in base 10 than in their original bases.

Fix this bug by using as many decimal places as needed to represent the
input, up to the maximum of the global scale factor.

This has one mildly surprising side effect: the scale of a number entered in
non-decimal mode will no longer necessarily equal the number of hexadecimal
(or whatever base) places given on the input. I think that's an acceptable
behavior change, given that inputting fractional non-decimal numbers never
worked in the first place, and the man page doesn't specify whether trailing
zeros on the input should affect a number's scale.

PR:		206230
Reported by:	nibbana@gmx.us
Reviewed by:	pfg
Differential Revision:	https://reviews.freebsd.org/D13336
</content>
</entry>
<entry>
<title>Reap dead code</title>
<updated>2017-12-02T06:05:03Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-12-02T06:05:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9ccdc6233139013036d5a220c5056b390a6ea8b0'/>
<id>urn:sha1:9ccdc6233139013036d5a220c5056b390a6ea8b0</id>
<content type='text'>
usr.bin/dc/inout.c
	Reap some dead code that was killed back in 2003 in OpenBSD, in
	version 1.8 of this file.

MFC after:	3 weeks
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Update dependencies.</title>
<updated>2017-10-31T00:07:04Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-10-31T00:07:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ea825d02749f382c3f7e17f28247f20a48733eab'/>
<id>urn:sha1:ea825d02749f382c3f7e17f28247f20a48733eab</id>
<content type='text'>
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>bc/dc/patch: make some use of reallocarray(3).</title>
<updated>2017-03-05T16:10:35Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-03-05T16:10:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=63433bc937051f84486b603e9803597db68f796b'/>
<id>urn:sha1:63433bc937051f84486b603e9803597db68f796b</id>
<content type='text'>
reallocarray(3) is a non portable extension from OpenBSD. Given that it is
already in FreeBSD, make easier future merges by adopting in some cases
where the code has some shared heritage with OpenBSD.

Obtained from:	OpenBSD
</content>
</entry>
<entry>
<title>dc(1): Introduce e command, equivalent to p, but writes to stderr</title>
<updated>2017-02-28T20:50:49Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-02-28T20:50:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=29dfec52946a038ba85cae45ed06ad28eacb13cc'/>
<id>urn:sha1:29dfec52946a038ba85cae45ed06ad28eacb13cc</id>
<content type='text'>
Obtained from:	OpenBSD
MFC after:	2 weeks
</content>
</entry>
</feed>
