From 8cf84b4995552bad4e77eb795e36c0b1d65a720a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 15 Jun 2023 14:23:47 +0200 Subject: libio: split stdin/stdout code from the rest of the file streams Signed-off-by: David Oberhollenzer --- lib/io/src/win32/istream.c | 7 ------- lib/io/src/win32/ostream.c | 8 -------- 2 files changed, 15 deletions(-) (limited to 'lib/io/src/win32') diff --git a/lib/io/src/win32/istream.c b/lib/io/src/win32/istream.c index 1a4f4db..a09f3c3 100644 --- a/lib/io/src/win32/istream.c +++ b/lib/io/src/win32/istream.c @@ -171,10 +171,3 @@ int istream_open_file(sqfs_istream_t **out, const char *path) return 0; } - -int istream_open_stdin(sqfs_istream_t **out) -{ - HANDLE hnd = GetStdHandle(STD_INPUT_HANDLE); - - return istream_open_handle(out, "stdin", hnd); -} diff --git a/lib/io/src/win32/ostream.c b/lib/io/src/win32/ostream.c index b2ba599..b7f0e06 100644 --- a/lib/io/src/win32/ostream.c +++ b/lib/io/src/win32/ostream.c @@ -188,11 +188,3 @@ int ostream_open_file(sqfs_ostream_t **out, const char *path, int flags) return 0; } - -int ostream_open_stdout(sqfs_ostream_t **out) -{ - HANDLE hnd = GetStdHandle(STD_OUTPUT_HANDLE); - - return ostream_open_handle(out, "stdout", hnd, - SQFS_FILE_OPEN_NO_SPARSE); -} -- cgit v1.2.3