summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/rld-process.cpp
diff options
context:
space:
mode:
authorAlex White <alex.white@oarcorp.com>2021-03-03 09:48:00 -0600
committerJoel Sherrill <joel@rtems.org>2021-03-30 13:15:57 -0500
commit420d7a13672991a1480d06ac02190f2976b9253b (patch)
tree0860109a7c39692408350b617f52d2a4bb3e9124 /rtemstoolkit/rld-process.cpp
parentrld-dwarf: Fix file::get_source (diff)
downloadrtems-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.cpp')
-rw-r--r--rtemstoolkit/rld-process.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-process.cpp b/rtemstoolkit/rld-process.cpp
index 30e0605..4160759 100644
--- a/rtemstoolkit/rld-process.cpp
+++ b/rtemstoolkit/rld-process.cpp
@@ -169,6 +169,17 @@ namespace rld
_name = temporaries.get (suffix, _keep);
}
+ tempfile::tempfile (const std::string& name,
+ const std::string& suffix,
+ bool _keep)
+ : _name(name + suffix),
+ suffix(suffix),
+ overridden (false),
+ fd (-1),
+ level (0)
+ {
+ }
+
tempfile::~tempfile ()
{
try