sys_set_blocking(handle, b);
}
+void File::set_inherit(bool i)
+{
+ adjust_mode(mode, M_INHERIT, i);
+ sys_set_inherit(handle, i);
+}
+
unsigned File::do_write(const char *buf, unsigned size)
{
check_access(M_WRITE);
file.set_block(b);
}
+void BufferedFile::set_inherit(bool)
+{
+ throw logic_error("BufferedFile::set_inherit");
+}
+
unsigned BufferedFile::do_write(const char *buf, unsigned size)
{
unsigned ret = buffer.write(buf, size);