23 #if !defined (octave_oct_env_h)
24 #define octave_oct_env_h 1
38 static std::string polite_directory_format (
const std::string& name);
40 static bool absolute_pathname (
const std::string& s);
42 static bool rooted_relative_pathname (
const std::string& s);
44 static std::string base_pathname (
const std::string& s);
48 const std::string& dot_path = get_current_directory ());
50 static std::string get_current_directory (
void);
52 static std::string get_home_directory (
void);
54 static std::string get_program_name (
void);
56 static std::string get_program_invocation_name (
void);
58 static std::string get_user_name (
void);
60 static std::string get_host_name (
void);
62 static std::string getenv (
const std::string& name);
64 static void putenv (
const std::string& name,
const std::string& value);
66 static bool have_x11_display (
void);
68 static bool chdir (
const std::string& newdir);
70 static void set_program_name (
const std::string& s);
74 static bool instance_ok (
void);
76 std::string do_polite_directory_format (
const std::string& name)
const;
78 bool do_absolute_pathname (
const std::string& s)
const;
80 bool do_rooted_relative_pathname (
const std::string& s)
const;
82 std::string do_base_pathname (
const std::string& s)
const;
84 std::string do_make_absolute (
const std::string& s,
85 const std::string& dot_path)
const;
87 std::string do_getcwd (
void)
const;
89 std::string do_get_home_directory (
void)
const;
91 std::string do_get_user_name (
void)
const;
93 std::string do_get_host_name (
void)
const;
95 std::string do_getenv (
const std::string& name)
const;
97 void do_putenv (
const std::string& name,
const std::string& value)
const;
99 bool do_chdir (
const std::string& newdir);
101 void do_set_program_name (
const std::string& s)
const;
103 void pathname_backup (std::string& path,
int n)
const;
105 void error (
int)
const;
107 void error (
const std::string&)
const;