feat(vfs): Add fcntl and modify ioctl

This commit is contained in:
Dong Heng
2018-08-24 14:19:51 +08:00
parent e2288f9f93
commit f98c6efeba
4 changed files with 40 additions and 3 deletions

View File

@ -1 +1,4 @@
#include <sys/socket.h>
#undef fcntl
#include <sys/fcntl.h>

View File

@ -41,7 +41,9 @@ extern "C" {
#define O_SYNC _FSYNC
/* O_NDELAY _FNDELAY set in include/fcntl.h */
/* O_NDELAY _FNBIO set in include/fcntl.h */
#ifndef O_NONBLOCK
#define O_NONBLOCK _FNONBLOCK
#endif
#define O_NOCTTY _FNOCTTY
/* For machines which care - */
#if defined (__CYGWIN__)