summaryrefslogtreecommitdiff
path: root/py/stream.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-07-20 13:08:41 +1000
committerDamien George <damien.p.george@gmail.com>2018-07-20 13:08:41 +1000
commit7a4f1b00f6dc279419ef72f4156480b4b84b1108 (patch)
treec3af1e7240252550d2980c6177ed175003b23dea /py/stream.h
parent7a67f057d74e9a16e7ae7bc562e592335145eaee (diff)
py/stream: Introduce MP_STREAM_GET_FILENO ioctl request.
Can be used by POSIX-like systems that associate file numbers with a file.
Diffstat (limited to 'py/stream.h')
-rw-r--r--py/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/stream.h b/py/stream.h
index 7b953138c..be34176db 100644
--- a/py/stream.h
+++ b/py/stream.h
@@ -41,6 +41,7 @@
#define MP_STREAM_SET_OPTS (7) // Set stream options
#define MP_STREAM_GET_DATA_OPTS (8) // Get data/message options
#define MP_STREAM_SET_DATA_OPTS (9) // Set data/message options
+#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)