summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-10-16 17:24:19 +1100
committerDamien George <damien.p.george@gmail.com>2019-10-31 12:54:37 +1100
commitd3c383de79bd25b42339cc7a4c68b79e39eccc7c (patch)
tree9b4f35ab7e86452ca9897f11527cc4df461ff7a1
parent71401d5065e20da59a1cc740d760002794b008e0 (diff)
downloadmicropython-d3c383de79bd25b42339cc7a4c68b79e39eccc7c.tar.gz
micropython-d3c383de79bd25b42339cc7a4c68b79e39eccc7c.zip
py/stream.h: Add MP_STREAM_POLL_NVAL constant.
-rw-r--r--py/stream.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/py/stream.h b/py/stream.h
index b6019bb38a..3ebd4e0421 100644
--- a/py/stream.h
+++ b/py/stream.h
@@ -45,10 +45,11 @@
#define MP_STREAM_GET_FILENO (10) // Get fileno of underlying file
// These poll ioctl values are compatible with Linux
-#define MP_STREAM_POLL_RD (0x0001)
-#define MP_STREAM_POLL_WR (0x0004)
-#define MP_STREAM_POLL_ERR (0x0008)
-#define MP_STREAM_POLL_HUP (0x0010)
+#define MP_STREAM_POLL_RD (0x0001)
+#define MP_STREAM_POLL_WR (0x0004)
+#define MP_STREAM_POLL_ERR (0x0008)
+#define MP_STREAM_POLL_HUP (0x0010)
+#define MP_STREAM_POLL_NVAL (0x0020)
// Argument structure for MP_STREAM_SEEK
struct mp_stream_seek_t {