From ee21ea79fdee13d7c1977c2b7b61b532305df700 Mon Sep 17 00:00:00 2001 From: Anders Borum Date: Fri, 26 Jan 2018 16:00:32 +0100 Subject: [PATCH] expose thread specific file descriptors expose thread specific versions of stdin, stdout & stderr in framework interface --- ios_system/ios_system.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios_system/ios_system.h b/ios_system/ios_system.h index 04cd7a15..ff96fc1d 100644 --- a/ios_system/ios_system.h +++ b/ios_system/ios_system.h @@ -15,6 +15,11 @@ FOUNDATION_EXPORT double ios_systemVersionNumber; //! Project version string for ios_system. FOUNDATION_EXPORT const unsigned char ios_systemVersionString[]; +// Thread-local input and output streams +extern __thread FILE* thread_stdin; +extern __thread FILE* thread_stdout; +extern __thread FILE* thread_stderr; + // In this header, you should import all the public headers of your framework using statements like #import int ios_executable(const char* inputCmd); // does this command exist? (executable file or builtin command)