lwip_fcntl() returns access modes

This commit is contained in:
Joan Lledó
2017-03-29 12:45:17 +02:00
committed by goldsimon
parent 33e3ee0790
commit 172dab1289
3 changed files with 33 additions and 3 deletions

View File

@@ -374,6 +374,15 @@ typedef struct ip_mreq {
#ifndef O_NDELAY
#define O_NDELAY 1 /* same as O_NONBLOCK, for compatibility */
#endif
#ifndef O_RDONLY
#define O_RDONLY 2
#endif
#ifndef O_WRONLY
#define O_WRONLY 4
#endif
#ifndef O_RDWR
#define O_RDWR (O_RDONLY|O_WRONLY)
#endif
#ifndef SHUT_RD
#define SHUT_RD 0