Add support for a variadic ioctl() function. The ioctl() interface is a...
Add support for a variadic ioctl() function. The ioctl() interface is a non-standard, Unix interface. NuttX has always used the older, three-parameter version. Most contemporary systems now, however, use a variadic form of the ioctl() function. Added an option to insert a shim layer to adapt the three-parameter ioctl() to use the variadic interface form. Internally, the ioctl handling is the same three-parameter logic. The only real complexity to the shim is in how the system calls must be handled.
Showing
- TODO 2 additions, 40 deletionsTODO
- fs/vfs/fs_ioctl.c 5 additions, 1 deletionfs/vfs/fs_ioctl.c
- include/nuttx/fs/fs.h 34 additions, 0 deletionsinclude/nuttx/fs/fs.h
- include/sys/ioctl.h 39 additions, 10 deletionsinclude/sys/ioctl.h
- include/sys/syscall.h 5 additions, 1 deletioninclude/sys/syscall.h
- libc/Kconfig 26 additions, 0 deletionslibc/Kconfig
- libc/misc/Make.defs 10 additions, 0 deletionslibc/misc/Make.defs
- libc/misc/lib_ioctl.c 101 additions, 0 deletionslibc/misc/lib_ioctl.c
- syscall/syscall.csv 2 additions, 1 deletionsyscall/syscall.csv
- syscall/syscall_lookup.h 4 additions, 0 deletionssyscall/syscall_lookup.h
- syscall/syscall_stublookup.c 5 additions, 0 deletionssyscall/syscall_stublookup.c
Loading
Please register or sign in to comment