diff options
author | Sven Gothel <[email protected]> | 2022-07-23 23:44:07 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-07-23 23:44:07 +0200 |
commit | 0f455eedc10e16f8c9dddaf8b68c9fbc9d2b4ab4 (patch) | |
tree | 42a2078e30dfef7b32de760e15d8b4bb7ee37a4c /test/testsudo_fileutils02.cpp | |
parent | 50349974b7e243cd9cf9458e05468ab8d771f874 (diff) |
Pipe dreams: Add support for (named) file descriptor: jau::fs::file_stat and jau::io::ByteInStream_File, ...
as well as considering file_stat::is_fd() in
- jau::fs::remove(): Deletion not allowed
jau::io::ByteInStream_File:
- If source path denotes a named file descriptor, i.e. jau::fs::file_stats::is_fd() returns true,
has_content_size() returns false and check_available() returns true as long the stream is open and EOS hasn't occurred.
Note: file_stat::is_fd() and file_stat::is_file() are orthogonal.
+++
This work is covered to allow stream-processing via pipes (e.g. stdin/stdout).
Current use-case is cipherpack's encryption/decryption streaming.
Diffstat (limited to 'test/testsudo_fileutils02.cpp')
0 files changed, 0 insertions, 0 deletions