fpwrite is not atomic by definition.
The Linux write syscall is atomic by definition, as it conforms to the POSIX standard.
That is bogus, Bogen85. On unixes is it the same call, only prefixed with fp. All unix syscalls have been prefixed with fp since a couple of years. (previously they where ad verbatim). I believe Marcov did that for some reason.
Well, any unix that conforms to the POSIX standard the
write syscall is supposed to be atomic.
Not sure what you are getting at as far as that being bogus.
@ionsem wanted documentation for what he needed to do to say it was atomic, which is at least how I understood him.
The question is about better approach with writing logs from all threads to stdout with Writeln without big performance impact...
And that it was desirable to for it to be performant...
So, performant
and atomic.