Merge branch 'feature/add_fcntl_function' into 'master'

Add fcntl and modify ioctl

See merge request sdk/ESP8266_RTOS_SDK!428
This commit is contained in:
Dong Heng
2018-09-13 15:23:33 +08:00
9 changed files with 120 additions and 0 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__)

Binary file not shown.