From 7a4f1b00f6dc279419ef72f4156480b4b84b1108 Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Fri, 20 Jul 2018 13:08:41 +1000
Subject: [PATCH] py/stream: Introduce MP_STREAM_GET_FILENO ioctl request.

Can be used by POSIX-like systems that associate file numbers with a file.
---
 py/stream.h | 1 +
 1 file changed, 1 insertion(+)

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)
-- 
GitLab