1 #include <msp/core/systemerror.h>
3 #include "handle_private.h"
8 void sys_set_blocking(Handle &, bool)
12 void sys_set_inherit(Handle &, bool)
16 unsigned sys_read(Handle &handle, char *buf, unsigned size)
19 if(ReadFile(*handle, buf, size, &ret, 0)==0)
20 throw system_error("ReadFile");
25 unsigned sys_write(Handle &handle, const char *buf, unsigned size)
28 if(WriteFile(*handle, buf, size, &ret, 0)==0)
29 throw system_error("WriteFile");
34 void sys_close(Handle &handle)
39 *handle = INVALID_HANDLE_VALUE;