add io_fd_canwrite (like io_fd but assume the fd is writable)

save a few syscalls here and there
This commit is contained in:
leitner
2012-04-10 21:15:51 +00:00
parent 6e6fc8b85d
commit e175800a8c
15 changed files with 322 additions and 63 deletions

View File

@@ -6,7 +6,7 @@
#include <errmsg.h>
#ifndef O_BINARY
#define O_BINARY
#define O_BINARY 0
#endif
int main(int argc,char* argv[]) {