3 ms·
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 exis
by nickweb 4y 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!
- pushedx 4y agoFor reference, strace is a Linux facility that wouldn’t be present on a bare-metal embedded application of C, or other operating system.
- danuker 4y agoI suspect you can run strace in a dev environment, iron out the bugs, then deploy the new embedded app.
- comfydragon 4y agoAssuming 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.
- tetha 4y agoPut 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.