diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-07-20 13:08:41 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-07-20 13:08:41 +1000 |
| commit | 7a4f1b00f6dc279419ef72f4156480b4b84b1108 (patch) | |
| tree | c3af1e7240252550d2980c6177ed175003b23dea | |
| parent | 7a67f057d74e9a16e7ae7bc562e592335145eaee (diff) | |
py/stream: Introduce MP_STREAM_GET_FILENO ioctl request.
Can be used by POSIX-like systems that associate file numbers with a file.
| -rw-r--r-- | py/stream.h | 1 |
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) |
