Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Initial creation of os_compat.h. | Fred Wright | 2017-01-22 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | This creates a header for os_compat.c, and moves the related prototypes into it from gpsd_config.h (as created by SConstruct), after adding references to it to gpsd.h (via gpsd.h-tail) and a few other sources that need it but don't include gpsd.h. It also removes includes of <time.h> in the places where they were only needed for the code now removed from gpsd_config.h. TESTED: Ran "scons build-all check" on OSX 10.9 (with strlcat/strlcpy but no clock_gettime), OSX 10.12 (with strlcat/strlcpy and clock_gettime), and Ubuntu 14 (with clock_gettime but no strlcat/strlcpy). Also verified that fallback versions were not being included where unnecessary. | ||||
* | Address bug #46813: test_timespec.c gets a missing include warning. | Fred Wright | 2016-01-04 | 1 | -0/+1 |
| | |||||
* | Add examples of bad 32 bit longs, floats and doubles. | Gary E. Miller | 2015-06-05 | 1 | -0/+38 |
| | |||||
* | Annotate failures in subtraction examples. | Gary E. Miller | 2015-06-05 | 1 | -7/+56 |
| | |||||
* | Annotate failures in precision conversion examples. | Gary E. Miller | 2015-06-05 | 1 | -11/+62 |
| | |||||
* | Remove a duplicate array of tests. | Gary E. Miller | 2015-06-05 | 1 | -23/+15 |
| | |||||
* | Fix some nits. | Gary E. Miller | 2015-06-05 | 1 | -2/+2 |
| | |||||
* | Better formatting of examples. | Gary E. Miller | 2015-06-04 | 1 | -12/+32 |
| | |||||
* | Add tests for time_diff_ns(). | Gary E. Miller | 2015-06-04 | 1 | -8/+67 |
| | | | | | Heopfully thhe next time someone breaks timespec_to_ns() the test will catch it quickly. | ||||
* | Fix test_timespec for 32 bit compilers. | Gary E. Miller | 2015-06-04 | 1 | -4/+4 |
| | |||||
* | Add 32bit long to precision conversion examples. | Gary E. Miller | 2015-04-30 | 1 | -2/+4 |
| | |||||
* | Simulate 32 bit longs in examples. | Gary E. Miller | 2015-04-30 | 1 | -8/+16 |
| | | | | This nicely shows how 32 bit longs can blow up. | ||||
* | Add long to comparison example. | Gary E. Miller | 2015-04-30 | 1 | -31/+20 |
| | |||||
* | Add some better examples, and timespec/float/double example. | Gary E. Miller | 2015-04-30 | 1 | -4/+72 |
| | |||||
* | Trailing whitespace fixup. | Gary E. Miller | 2015-04-30 | 1 | -2/+2 |
| | |||||
* | Expand examples. | Gary E. Miller | 2015-04-30 | 1 | -11/+19 |
| | |||||
* | Add example to show why timespec_diff_ns() must die. | Gary E. Miller | 2015-04-28 | 1 | -1/+20 |
| | |||||
* | Add more tests, and some precision loss examples. | Gary E. Miller | 2015-04-28 | 1 | -3/+53 |
| | | | | Try: test_timespec -v | ||||
* | More tests, verbose option, better looking output. | Gary E. Miller | 2015-04-28 | 1 | -43/+81 |
| | |||||
* | Fix trailing whitespace. | Gary E. Miller | 2015-04-28 | 1 | -3/+3 |
| | |||||
* | Add timespec subtract tests. | Gary E. Miller | 2015-04-28 | 1 | -0/+157 |