std::fstreamhas functionality defined in terms of the C stdio library. I would be surprised if this was actually indicated, but the most likely behavior when opening the same file twice is several internal buffers associated with the same file descriptor.
- POSIX pwrite writev. C stdio, ++ iostreams. .
: POSIX open, Mac OS X, . , , , , .
:
- ++ ,
fstream C (stdio). - C , (
fopen ). - POSIX C.
- POSIX .
, , , - .