summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-08-10 19:14:05 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-08-10 19:14:05 -0600
commit3c5fcd7ca22c13071fc85c89036adf43f92ebaf2 (patch)
tree622e43facf3bd417459d2681c47bab360d4a33e1 /nuttx/include
parent9a16be559048f93c3396183b1dc1261781d54b01 (diff)
downloadpx4-nuttx-3c5fcd7ca22c13071fc85c89036adf43f92ebaf2.tar.gz
px4-nuttx-3c5fcd7ca22c13071fc85c89036adf43f92ebaf2.tar.bz2
px4-nuttx-3c5fcd7ca22c13071fc85c89036adf43f92ebaf2.zip
Serial FIONREAD, FIONWRITE, and TERMIOS I/O processing from Mike Smith, Andrew Tridgell, and and Lorenz Meier
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/fs/ioctl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/fs/ioctl.h b/nuttx/include/nuttx/fs/ioctl.h
index 8e8647a69..852113a4c 100644
--- a/nuttx/include/nuttx/fs/ioctl.h
+++ b/nuttx/include/nuttx/fs/ioctl.h
@@ -114,6 +114,13 @@
* is open).
*/
+#define FIONREAD _FIOC(0x0005) /* IN: Location to return value (int *)
+ * OUT: Bytes readable from this fd
+ */
+#define FIONWRITE _FIOC(0x0006) /* IN: Location to return value (int *)
+ * OUT: Bytes writable to this fd
+ */
+
/* NuttX file system ioctl definitions **************************************/
#define _DIOCVALID(c) (_IOC_TYPE(c)==_DIOCBASE)