Hacker News new | ask | show | jobs
by nickweb 1248 days ago
I’m curious as a hobby programmer - how would these issues be rectified? Hope that the source code is available to add in new defines for 64bit time? Patch existing libraries after stracing existing programs without source code? Might need to take a deep dive into C for 2038!
2 comments

Put the system into single user mode 15 minutes before disaster. Update all filesystem times and the HW clock to 0 offline. Reboot a couple of times 30 minutes later and fix the timediff in APIs surrounding the system. Easy going.

I think I have been in too many horrible workarounds over the last couple of weeks.

For reference, strace is a Linux facility that wouldn’t be present on a bare-metal embedded application of C, or other operating system.
I suspect you can run strace in a dev environment, iron out the bugs, then deploy the new embedded app.
Assuming you have an ability to run your whole bare-metal application in a simulated/"dev" environment. Not everyone has that luxury. That becomes much easier if the micro you're targeting has support of some kind in say QEMU, but those are fairly few and far between.