fs/vfs/fs_ioctl.c: Add FIOCLEX/FIONCLEX support
This commit is contained in:
parent
6584bfa361
commit
d4ec1ababd
@ -194,6 +194,12 @@ int nx_vioctl(int fd, int req, va_list ap)
|
||||
nx_fcntl(fd, F_GETFL) & ~O_NONBLOCK);
|
||||
}
|
||||
break;
|
||||
case FIOCLEX:
|
||||
ret = nx_fcntl(fd, F_SETFD, FD_CLOEXEC);
|
||||
break;
|
||||
case FIONCLEX:
|
||||
ret = nx_fcntl(fd, F_SETFD, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -184,6 +184,12 @@
|
||||
* OUT: Integer that contains device
|
||||
* minor number
|
||||
*/
|
||||
#define FIOCLEX _FIOC(0x000d) /* IN: None
|
||||
* OUT: None
|
||||
*/
|
||||
#define FIONCLEX _FIOC(0x000e) /* IN: None
|
||||
* OUT: None
|
||||
*/
|
||||
|
||||
/* NuttX file system ioctl definitions **************************************/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user