diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 16:58:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 16:58:41 +0000 |
commit | e1908ae95dd4c9d19ee4dfabfc8bf8a7f85943fe (patch) | |
tree | f5cc731bedcac0fb7fe14d952e4581e749f8bb87 /src/temp-stream.h | |
parent | Initial commit. (diff) | |
download | coreutils-e1908ae95dd4c9d19ee4dfabfc8bf8a7f85943fe.tar.xz coreutils-e1908ae95dd4c9d19ee4dfabfc8bf8a7f85943fe.zip |
Adding upstream version 9.4.upstream/9.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/temp-stream.h')
-rw-r--r-- | src/temp-stream.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/temp-stream.h b/src/temp-stream.h new file mode 100644 index 0000000..6c32e0c --- /dev/null +++ b/src/temp-stream.h @@ -0,0 +1,6 @@ +/* A wrapper around mkstemp that gives us both an open stream pointer, + FP, and the corresponding FILE_NAME. Always return the same FP/name + pair, rewinding/truncating it upon each reuse. + + Note this honors $TMPDIR, unlike the standard defined tmpfile(). */ +extern bool temp_stream (FILE **fp, char **file_name); |