From: John Hodge (sonata) Date: Wed, 15 May 2013 12:23:55 +0000 (+0800) Subject: Usermode/libposix - Misc X-Git-Tag: rel0.15~477 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=4d184c30a3385600c0d87a2f93b4259c8c973e73;p=tpg%2Facess2.git Usermode/libposix - Misc --- diff --git a/Usermode/Libraries/libposix.so_src/fcntl.c b/Usermode/Libraries/libposix.so_src/fcntl.c index d57bca50..76d6f6be 100644 --- a/Usermode/Libraries/libposix.so_src/fcntl.c +++ b/Usermode/Libraries/libposix.so_src/fcntl.c @@ -43,6 +43,7 @@ int fcntl(int fd, int cmd, ...) a_flags |= OPENFLAG_APPEND; // TODO: Extra flags for F_SETFL + _SysDebug("fcntl(%i, F_SETFL, %i)", fd, p_flags); ret = _SysFDFlags(fd, mask, a_flags); if(ret != -1) ret = 0; diff --git a/Usermode/Libraries/libposix.so_src/unistd.c b/Usermode/Libraries/libposix.so_src/unistd.c index 5f974404..7cfb71ab 100644 --- a/Usermode/Libraries/libposix.so_src/unistd.c +++ b/Usermode/Libraries/libposix.so_src/unistd.c @@ -39,6 +39,9 @@ int open(const char *path, int openmode, ...) va_end(args); } + if( openmode & O_NONBLOCK ) + openflags |= OPENFLAG_NONBLOCK; + return _SysOpen(path, openflags, create_mode); }