diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-06-15 14:23:47 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-06-15 14:23:47 +0200 |
commit | 8cf84b4995552bad4e77eb795e36c0b1d65a720a (patch) | |
tree | d3484d6591851bd4346ba9f2b57053fd105e7cf3 /lib/io/src/unix | |
parent | fd5c9f1259d0191af57b20f06dda35e62acb6275 (diff) |
libio: split stdin/stdout code from the rest of the file streams
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/src/unix')
-rw-r--r-- | lib/io/src/unix/istream.c | 5 | ||||
-rw-r--r-- | lib/io/src/unix/ostream.c | 6 |
2 files changed, 0 insertions, 11 deletions
diff --git a/lib/io/src/unix/istream.c b/lib/io/src/unix/istream.c index 5005a69..55b467e 100644 --- a/lib/io/src/unix/istream.c +++ b/lib/io/src/unix/istream.c @@ -153,8 +153,3 @@ int istream_open_file(sqfs_istream_t **out, const char *path) return ret; } - -int istream_open_stdin(sqfs_istream_t **out) -{ - return istream_open_handle(out, "stdin", STDIN_FILENO); -} diff --git a/lib/io/src/unix/ostream.c b/lib/io/src/unix/ostream.c index a97d8f3..57467f5 100644 --- a/lib/io/src/unix/ostream.c +++ b/lib/io/src/unix/ostream.c @@ -195,9 +195,3 @@ int ostream_open_file(sqfs_ostream_t **out, const char *path, int flags) return 0; } - -int ostream_open_stdout(sqfs_ostream_t **out) -{ - return ostream_open_handle(out, "stdout", STDOUT_FILENO, - SQFS_FILE_OPEN_NO_SPARSE); -} |