atomicio: provide atomic read and write functions.
authorNathan Binkert <nate@binkert.org>
Fri, 19 Sep 2008 16:42:31 +0000 (09:42 -0700)
committerNathan Binkert <nate@binkert.org>
Fri, 19 Sep 2008 16:42:31 +0000 (09:42 -0700)
commitce3d8c2b038605fa5ceb6d1ad8e27b51c1aca980
treed1330c84f7f0a203daeab8fc7fd3c6ec37b80497
parentaf9c5e05f73f6899a405230e66dfa75a5b39822a
atomicio: provide atomic read and write functions.

These functions keep trying to read and write until all data has been
transferred, or an error occurrs.  In the case where an end of file
hasn't been reached, but all of the bytes have not been read/written,
try again.  On EINTR, try again.
src/base/SConscript
src/base/atomicio.cc [new file with mode: 0644]
src/base/atomicio.hh [new file with mode: 0644]
src/base/circlebuf.cc
src/dev/terminal.cc