mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
sys/ioctl: extend the IOCTL defintion that compatible with linux kernel
Add the generic _IO() macro and aliases for FS_IOC_GETFLAGS and FS_IOC_SETFLAGS, aligning the ioctl.h definitions with the Linux kernel API to improve source compatibility when porting LTP linux kernel testcase code to NuttX Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
1327ce5214
commit
ba8abb5643
1 changed files with 7 additions and 0 deletions
|
|
@ -68,6 +68,13 @@
|
|||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* The compatibility IOCTL definitions */
|
||||
|
||||
#define _IO(type,nr) _IOC((type),(nr))
|
||||
|
||||
#define FS_IOC_GETFLAGS FIOC_GETFLAGS
|
||||
#define FS_IOC_SETFLAGS FIOC_SETFLAGS
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue