summaryrefslogtreecommitdiff
path: root/sys/libkern/bcd.c
Commit message (Collapse)AuthorAgeFilesLines
* Use time_t for intermediate values to avoid overflow in clock_ts_to_ctConrad Meyer2017-01-241-0/+4
| | | | | | | | | | | | | | | | | | | Add additionally safety and overflow checks to clock_ts_to_ct and the BCD routines while we're here. Perform a safety check in sys_clock_settime() first to avoid easy local root panic, without having to propagate an error value back through dozens of APIs currently lacking error returns. PR: 211960, 214300 Submitted by: Justin McOmie <justin.mcomie at gmail.com>, kib@ Reported by: Tim Newsham <tim.newsham at nccgroup.trust> Reviewed by: kib@ Sponsored by: Dell EMC Isilon, FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D9279 Notes: svn path=/head/; revision=312702
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139815
* Use __FBSDID().David E. O'Brien2003-06-111-1/+3
| | | | Notes: svn path=/head/; revision=116189
* Add $FreeBSD$Peter Wemm2000-05-011-0/+1
| | | | Notes: svn path=/head/; revision=59874
* Extend to handle all radix < 37Poul-Henning Kamp1996-01-241-1/+2
| | | | Notes: svn path=/head/; revision=13617
* Moved BCD declarations to the correct header (libkern.h).Bruce Evans1996-01-161-25/+25
| | | | | | | | | | | Fixed BCD declarations. They didn't match their definitions... libkern.h, bcd.c: KNFised. `indent' worked 99% perfectly on bcd.c. It worked 99% _imperfectly_ on subr_prf.c. Notes: svn path=/head/; revision=13459
* My wife is busy making me a new conical hat, so you don't need toPoul-Henning Kamp1996-01-151-2/+2
| | | | | | | | send any to me this time. Commited an old copy of this files where the tables were swapped. Duh!. Notes: svn path=/head/; revision=13445
* Add the bcd <-> bin and hex -> ascii tables.Poul-Henning Kamp1996-01-151-0/+34
Notes: svn path=/head/; revision=13436