23 #if ! defined (octave_file_ops_h) 24 #define octave_file_ops_h 1 26 #include "octave-config.h" 30 #include <sys/types.h> 113 extern OCTAVE_API
int 116 extern OCTAVE_API
int 119 extern OCTAVE_API
int 122 extern OCTAVE_API
int 125 extern OCTAVE_API
int 128 extern OCTAVE_API
int 131 extern OCTAVE_API
int 134 extern OCTAVE_API
int 137 extern OCTAVE_API
int 140 extern OCTAVE_API
int 143 extern OCTAVE_API
int 146 extern OCTAVE_API
int 149 extern OCTAVE_API
int 152 extern OCTAVE_API
int 155 extern OCTAVE_API
int 158 extern OCTAVE_API
int 161 extern OCTAVE_API
int 164 extern OCTAVE_API
int 167 extern OCTAVE_API
int 184 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) 186 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::mkdir' instead")
188 octave_mkdir (const
std::
string&
nm, mode_t md)
193 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::mkdir' instead")
195 octave_mkdir (const
std::
string&
nm, mode_t md,
std::
string& msg)
200 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::mkfifo' instead")
202 octave_mkfifo (const
std::
string&
nm, mode_t md)
207 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::mkfifo' instead")
209 octave_mkfifo (const
std::
string&
nm, mode_t md,
std::
string& msg)
214 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::link' instead")
221 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::link' instead")
229 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::symlink' instead")
231 octave_symlink (const
std::
string& old_name, const
std::
string& new_name)
236 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::symlink' instead")
238 octave_symlink (const
std::
string& old_name, const
std::
string& new_name,
244 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::readlink' instead")
246 octave_readlink (const
std::
string& path,
std::
string&
result)
251 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::readlink' instead")
253 octave_readlink (const
std::
string& path,
std::
string&
result,
std::
string& msg)
258 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::rename' instead")
260 octave_rename (const
std::
string& from, const
std::
string& to)
265 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::rename' instead")
267 octave_rename (const
std::
string& from, const
std::
string& to,
std::
string& msg)
272 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::rmdir' instead")
274 octave_rmdir (const
std::
string&
nm)
279 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::rmdir' instead")
281 octave_rmdir (const
std::
string&
nm,
std::
string& msg)
286 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::recursive_rmdir' instead")
288 octave_recursive_rmdir (const
std::
string&
nm)
293 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::recursive_rmdir' instead")
295 octave_recursive_rmdir (const
std::
string&
nm,
std::
string& msg)
300 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::umask' instead")
302 octave_umask (mode_t md)
307 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::unlink' instead")
309 octave_unlink (const
std::
string&
nm)
314 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::unlink' instead")
316 octave_unlink (const
std::
string&
nm,
std::
string& msg)
321 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::tempnam' instead")
323 octave_tempnam (const
std::
string& dir, const
std::
string& pfx)
328 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::tempnam' instead")
330 octave_tempnam (const
std::
string& dir, const
std::
string& pfx,
336 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::canonicalize_file_name' instead")
338 octave_canonicalize_file_name (const
std::
string&
nm)
343 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::canonicalize_file_name' instead")
345 octave_canonicalize_file_name (const
std::
string&
nm,
std::
string& msg)
std::string canonicalize_file_name(const std::string &name)
Provides threadsafe access to octave.
int unlink(const std::string &name)
std::string dir_sep_chars(void)
int symlink(const std::string &old_name, const std::string &new_name)
std::string tempnam(const std::string &dir, const std::string &pfx)
std::string tail(const std::string &path)
std::string tilde_expand(const std::string &name)
std::string native_separator_path(const std::string &path)
std::string dirname(const std::string &path)
string_vector tilde_additional_prefixes
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
tilde_expansion_hook tilde_expansion_failure_hook
std::string dir_sep_str(void)
int recursive_rmdir(const std::string &name)
int rename(const std::string &from, const std::string &to)
string_vector tilde_additional_suffixes
std::string concat(const std::string &dir, const std::string &file)
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
int link(const std::string &old_name, const std::string &new_name)
With real return the complex result
tilde_expansion_hook tilde_expansion_preexpansion_hook
int mkdir(const std::string &nm, mode_t md)
int rmdir(const std::string &name)
std::string(* tilde_expansion_hook)(const std::string &)
int readlink(const std::string &path, std::string &result)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
int mkfifo(const std::string &nm, mode_t md)