News for hackers. Stuff that matters.
Re:The friendship between Haskell and C by dllthomas on Friday March 17, 2023 @07:04PM (#35204066)
> errno can be set upon failure

... can it? I don't see it in the man page. The rest is a good point, either way, though.

Re:The friendship between Haskell and C by mhh__ on Friday March 17, 2023 @10:07PM (#35205347)
I don't know the exact wording in the standard but take a look at/around the GCC flag -fno-math-errno for example
Re:The friendship between Haskell and C by dllthomas on Friday March 17, 2023 @11:04PM (#35205641)
Ah, checked a man page on a Mac, where it never sets errno (according to the gcc docs). It's mentioned in the man page on my linux box here.