Usermode/libposix - Misc
authorJohn Hodge (sonata) <[email protected]>
Wed, 15 May 2013 12:23:55 +0000 (20:23 +0800)
committerJohn Hodge (sonata) <[email protected]>
Wed, 15 May 2013 12:23:55 +0000 (20:23 +0800)
Usermode/Libraries/libposix.so_src/fcntl.c
Usermode/Libraries/libposix.so_src/unistd.c

index d57bca5..76d6f6b 100644 (file)
@@ -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;
index 5f97440..7cfb71a 100644 (file)
@@ -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);
 }
 

UCC git Repository :: git.ucc.asn.au