GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-sysdep.h File Reference
#include "octave-config.h"
#include <fstream>
#include <string>
#include <sys/types.h>
#include "lo-ieee.h"
Include dependency graph for lo-sysdep.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OCTAVE_API int chdir (const std::string &)
 
OCTAVE_API std::FILE * fopen (const std::string &name, const std::string &mode)
 
OCTAVE_API std::FILE * fopen_tmp (const std::string &name, const std::string &mode)
 
OCTAVE_API std::fstream fstream (const std::string &name, const std::ios::openmode mode=std::ios::in|std::ios::out)
 
OCTAVE_API std::string get_ASCII_filename (const std::string &long_file_name, const bool allow_locale=false)
 
OCTAVE_API bool get_dirlist (const std::string &dirname, string_vector &dirlist, std::string &msg)
 
OCTAVE_API std::string getcwd (void)
 
OCTAVE_API std::string getenv_wrapper (const std::string &)
 
OCTAVE_API std::ifstream ifstream (const std::string &name, const std::ios::openmode mode=std::ios::in)
 
OCTAVE_API std::ofstream ofstream (const std::string &name, const std::ios::openmode mode=std::ios::out)
 
OCTAVE_API void putenv_wrapper (const std::string &name, const std::string &value)
 
OCTAVE_API int system (const std::string &cmd_str)
 
OCTAVE_API std::string u8_from_wstring (const std::wstring &)
 
OCTAVE_API std::wstring u8_to_wstring (const std::string &)
 
OCTAVE_API int unsetenv_wrapper (const std::string &)
 

Function Documentation

◆ chdir()

OCTAVE_API int chdir ( const std::string &  path_arg)

Definition at line 106 of file lo-sysdep.cc.

References octave_chdir_wrapper(), and tilde_expand().

Referenced by interpreter::chdir(), env::do_chdir(), and octave_chdir_wrapper().

◆ fopen()

OCTAVE_API std::FILE* fopen ( const std::string &  name,
const std::string &  mode 
)

◆ fopen_tmp()

OCTAVE_API std::FILE* fopen_tmp ( const std::string &  name,
const std::string &  mode 
)

Definition at line 386 of file lo-sysdep.cc.

References fopen(), and octave_unlink_wrapper().

Referenced by Ftmpfile().

◆ fstream()

OCTAVE_API std::fstream fstream ( const std::string &  name,
const std::ios::openmode  mode = std::ios::in|std::ios::out 
)

Definition at line 410 of file lo-sysdep.cc.

References u8_to_wstring().

Referenced by history_system::do_edit_history().

◆ get_ASCII_filename()

◆ get_dirlist()

OCTAVE_API bool get_dirlist ( const std::string &  dirname,
string_vector dirlist,
std::string &  msg 
)

◆ getcwd()

OCTAVE_API std::string getcwd ( void  )

Definition at line 71 of file lo-sysdep.cc.

References free(), octave_getcwd_wrapper(), and u8_from_wstring().

Referenced by env::do_getcwd(), and octave_getcwd_wrapper().

◆ getenv_wrapper()

OCTAVE_API std::string getenv_wrapper ( const std::string &  name)

Definition at line 488 of file lo-sysdep.cc.

References u8_from_wstring(), and u8_to_wstring().

Referenced by env::do_getenv().

◆ ifstream()

◆ ofstream()

OCTAVE_API std::ofstream ofstream ( const std::string &  name,
const std::ios::openmode  mode = std::ios::out 
)

◆ putenv_wrapper()

OCTAVE_API void putenv_wrapper ( const std::string &  name,
const std::string &  value 
)

Definition at line 452 of file lo-sysdep.cc.

References len, malloc(), octave_putenv_wrapper(), and u8_to_wstring().

Referenced by env::putenv(), and unsetenv_wrapper().

◆ system()

OCTAVE_API int system ( const std::string &  cmd_str)

◆ u8_from_wstring()

OCTAVE_API std::string u8_from_wstring ( const std::wstring &  wchar_string)

◆ u8_to_wstring()

◆ unsetenv_wrapper()

OCTAVE_API int unsetenv_wrapper ( const std::string &  name)

Definition at line 501 of file lo-sysdep.cc.

References octave_unsetenv_wrapper(), putenv_wrapper(), and u8_to_wstring().

Referenced by Funsetenv().