Mercurial > octave
diff liboctave/system/oct-env.h @ 19458:d8fd3842a507
Use gnulib gen_tempname to create temporary names (Bug #43872).
* bootstrap.conf: add tempname module.
* liboctave/system/file-ops.cc:
(toplevel): include tempname.h.
(octave_tempnam): set up template based on input dir and prefix and call
gen_tempname to get temporary name.
* liboctave/system/oct-env.cc:
(octave_env::get_temp_directory): New function.
(octave_env::do_get_temp_directory): New function.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 01 Jan 2015 10:01:18 -0500 |
parents | ebb3ef964372 |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/liboctave/system/oct-env.h Wed Dec 31 15:57:37 2014 -0500 +++ b/liboctave/system/oct-env.h Thu Jan 01 10:01:18 2015 -0500 @@ -51,6 +51,8 @@ static std::string get_home_directory (void); + static std::string get_temp_directory (void); + static std::string get_program_name (void); static std::string get_program_invocation_name (void); @@ -88,6 +90,8 @@ std::string do_get_home_directory (void) const; + std::string do_get_temp_directory (void) const; + std::string do_get_user_name (void) const; std::string do_get_host_name (void) const;