Re:Future of 32-bit platform support in FreeBSD
by knorker on Tuesday February 20, 2024 @08:54AM
(#39441258)
As a fellow UB nitpicker, I'd like to hear more about your favorite UB triggers. E.g. in the space of file IO.
Re:Future of 32-bit platform support in FreeBSD
by CJefferson on Tuesday February 20, 2024 @10:25PM
(#39449802)
The C++ filesystem section contains the following, which basically means you can’t do safe IO when other programs are running in the same computer:
“ The behavior is undefined if the calls to functions in this library introduce a file system race, that is, when multiple threads, processes, or computers interleave access and modification to the same object in a file system.”
Also, you can't reasonably remove all undefined behaviour. In C++ you basically can't do file IO without undefined behaviour.