diff options
author | Alex White <alex.white@oarcorp.com> | 2021-03-03 09:48:00 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-03-30 13:15:57 -0500 |
commit | 420d7a13672991a1480d06ac02190f2976b9253b (patch) | |
tree | 0860109a7c39692408350b617f52d2a4bb3e9124 /rtemstoolkit/rld-process.h | |
parent | rld-dwarf: Fix file::get_source (diff) | |
download | rtems-tools-420d7a13672991a1480d06ac02190f2976b9253b.tar.bz2 |
rld-process: Add named tempfile constructor
This adds a new tempfile constructor for creating a named tempfile
rather than generating the name.
Diffstat (limited to 'rtemstoolkit/rld-process.h')
-rw-r--r-- | rtemstoolkit/rld-process.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-process.h b/rtemstoolkit/rld-process.h index fc9b7bc..a9902b2 100644 --- a/rtemstoolkit/rld-process.h +++ b/rtemstoolkit/rld-process.h @@ -115,6 +115,13 @@ namespace rld tempfile (const std::string& suffix = ".rldxx", bool keep = false); /** + * Get a temporary file given a name and a suffix. + */ + tempfile (const std::string& name, + const std::string& suffix, + bool _keep = false); + + /** * Clean up the temporary file. */ ~tempfile (); |