#include <cerrno>#include <cstdio>#include <cstdlib>#include <cstring>#include <vector>#include "canonicalize-file-name-wrapper.h"#include "areadlink-wrapper.h"#include "dir-ops.h"#include "file-ops.h"#include "file-stat.h"#include "gen-tempname-wrapper.h"#include "lo-sysdep.h"#include "oct-env.h"#include "oct-locbuf.h"#include "oct-password.h"#include "quit.h"#include "stat-wrappers.h"#include "str-vec.h"#include "unistd-wrappers.h"Go to the source code of this file.
Functions | |
| std::string | canonicalize_file_name (const std::string &name) |
| std::string | canonicalize_file_name (const std::string &name, std::string &msg) |
| std::string | concat (const std::string &dir, const std::string &file) |
| char | dev_sep_char () |
| char | dir_sep_char () |
| std::string | dir_sep_chars () |
| std::string | dir_sep_str () |
| std::string | dirname (const std::string &path) |
| bool | is_dev_sep (char c) |
| bool | is_dir_sep (char c) |
| int | link (const std::string &old_name, const std::string &new_name) |
| int | link (const std::string &old_name, const std::string &new_name, std::string &msg) |
| int | mkdir (const std::string &name, mode_t mode, std::string &msg) |
| int | mkdir (const std::string &nm, mode_t md) |
| int | mkfifo (const std::string &name, mode_t mode, std::string &msg) |
| int | mkfifo (const std::string &nm, mode_t md) |
| std::string | native_separator_path (const std::string &path) |
| int | readlink (const std::string &path, std::string &result) |
| int | readlink (const std::string &path, std::string &result, std::string &msg) |
| int | recursive_mkdir (const std::string &name, mode_t mode) |
| int | recursive_mkdir (const std::string &name, mode_t mode, std::string &msg) |
| int | recursive_rmdir (const std::string &name) |
| int | recursive_rmdir (const std::string &name, std::string &msg) |
| int | rename (const std::string &from, const std::string &to) |
| int | rename (const std::string &from, const std::string &to, std::string &msg) |
| int | rmdir (const std::string &name) |
| int | rmdir (const std::string &name, std::string &msg) |
| int | symlink (const std::string &old_name, const std::string &new_name) |
| int | symlink (const std::string &old_name, const std::string &new_name, std::string &msg) |
| std::string | tail (const std::string &path) |
| std::string | tempnam (const std::string &dir, const std::string &pfx) |
| std::string | tempnam (const std::string &dir, const std::string &pfx, std::string &msg) |
| std::string | tilde_expand (const std::string &name) |
| string_vector | tilde_expand (const string_vector &names) |
| int | umask (mode_t mode) |
| int | unlink (const std::string &name) |
| int | unlink (const std::string &name, std::string &msg) |
Variables | |
| string_vector | tilde_additional_prefixes = default_prefixes |
| string_vector | tilde_additional_suffixes = default_suffixes |
| tilde_expansion_hook | tilde_expansion_failure_hook = nullptr |
| tilde_expansion_hook | tilde_expansion_preexpansion_hook = nullptr |
| std::string canonicalize_file_name | ( | const std::string & | name | ) |
Definition at line 798 of file file-ops.cc.
References canonicalize_file_name().
Referenced by canonicalize_file_name(), get_ASCII_filename(), and octave_canonicalize_file_name_wrapper().
| std::string canonicalize_file_name | ( | const std::string & | name, |
| std::string & | msg | ||
| ) |
Definition at line 805 of file file-ops.cc.
References free(), len, octave_canonicalize_file_name_wrapper(), u8_from_wstring(), and u8_to_wstring().
| std::string concat | ( | const std::string & | dir, |
| const std::string & | file | ||
| ) |
Definition at line 359 of file file-ops.cc.
References dir_sep_char(), string_vector::empty(), and is_dir_sep().
| char dev_sep_char | ( | ) |
Definition at line 222 of file file-ops.cc.
Referenced by is_dev_sep().
| char dir_sep_char | ( | ) |
Definition at line 232 of file file-ops.cc.
Referenced by concat(), main(), and native_separator_path().
| std::string dir_sep_chars | ( | ) |
Definition at line 252 of file file-ops.cc.
References dir_sep_str().
Referenced by dirname(), is_dir_sep(), and tail().
| std::string dir_sep_str | ( | ) |
Definition at line 242 of file file-ops.cc.
Referenced by dir_sep_chars().
| std::string dirname | ( | const std::string & | path | ) |
Definition at line 369 of file file-ops.cc.
References dir_sep_chars().
Referenced by dir_exists(), dir_exists(), F__mkdir__(), Fcd(), Fdrawnow(), Fgenpath(), event_manager::file_dialog(), Freaddir(), Frmdir(), genpath(), and get_dirlist().
| bool is_dev_sep | ( | char | c | ) |
Definition at line 270 of file file-ops.cc.
References dev_sep_char().
| bool is_dir_sep | ( | char | c | ) |
| int link | ( | const std::string & | old_name, |
| const std::string & | new_name | ||
| ) |
Definition at line 508 of file file-ops.cc.
References link().
Referenced by link(), and octave_link_wrapper().
| int link | ( | const std::string & | old_name, |
| const std::string & | new_name, | ||
| std::string & | msg | ||
| ) |
Definition at line 515 of file file-ops.cc.
References octave_link_wrapper().
| int mkdir | ( | const std::string & | name, |
| mode_t | mode, | ||
| std::string & | msg | ||
| ) |
Definition at line 420 of file file-ops.cc.
References octave_mkdir_wrapper().
| int mkdir | ( | const std::string & | nm, |
| mode_t | md | ||
| ) |
Definition at line 413 of file file-ops.cc.
References mkdir().
Referenced by mkdir(), octave_mkdir_wrapper(), and recursive_mkdir().
| int mkfifo | ( | const std::string & | name, |
| mode_t | mode, | ||
| std::string & | msg | ||
| ) |
Definition at line 495 of file file-ops.cc.
References octave_mkfifo_wrapper().
| int mkfifo | ( | const std::string & | nm, |
| mode_t | md | ||
| ) |
Definition at line 488 of file file-ops.cc.
References mkfifo().
Referenced by mkfifo(), and octave_mkfifo_wrapper().
| std::string native_separator_path | ( | const std::string & | path | ) |
Definition at line 390 of file file-ops.cc.
References dir_sep_char().
| int readlink | ( | const std::string & | path, |
| std::string & | result | ||
| ) |
| int readlink | ( | const std::string & | path, |
| std::string & | result, | ||
| std::string & | msg | ||
| ) |
Definition at line 561 of file file-ops.cc.
References free(), and octave_areadlink_wrapper().
| int recursive_mkdir | ( | const std::string & | name, |
| mode_t | mode | ||
| ) |
Definition at line 433 of file file-ops.cc.
References recursive_mkdir().
Referenced by recursive_mkdir().
| int recursive_mkdir | ( | const std::string & | name, |
| mode_t | mode, | ||
| std::string & | msg | ||
| ) |
Definition at line 440 of file file-ops.cc.
References mkdir().
| int recursive_rmdir | ( | const std::string & | name | ) |
Definition at line 655 of file file-ops.cc.
References recursive_rmdir().
Referenced by recursive_rmdir(), and recursive_rmdir().
| int recursive_rmdir | ( | const std::string & | name, |
| std::string & | msg | ||
| ) |
Definition at line 662 of file file-ops.cc.
References base_file_stat::error(), get_dirlist(), base_file_stat::is_dir(), string_vector::numel(), recursive_rmdir(), rmdir(), and unlink().
| int rename | ( | const std::string & | from, |
| const std::string & | to | ||
| ) |
| int rename | ( | const std::string & | from, |
| const std::string & | to, | ||
| std::string & | msg | ||
| ) |
Definition at line 589 of file file-ops.cc.
References file_exists(), same_file(), u8_to_wstring(), and unlink().
| int rmdir | ( | const std::string & | name | ) |
Definition at line 631 of file file-ops.cc.
References rmdir().
Referenced by octave_rmdir_wrapper(), recursive_rmdir(), and rmdir().
| int rmdir | ( | const std::string & | name, |
| std::string & | msg | ||
| ) |
Definition at line 638 of file file-ops.cc.
References octave_rmdir_wrapper().
| int symlink | ( | const std::string & | old_name, |
| const std::string & | new_name | ||
| ) |
Definition at line 531 of file file-ops.cc.
References symlink().
Referenced by Freadlink(), octave_symlink_wrapper(), and symlink().
| int symlink | ( | const std::string & | old_name, |
| const std::string & | new_name, | ||
| std::string & | msg | ||
| ) |
Definition at line 538 of file file-ops.cc.
References octave_symlink_wrapper().
| std::string tail | ( | const std::string & | path | ) |
Definition at line 377 of file file-ops.cc.
References dir_sep_chars().
| std::string tempnam | ( | const std::string & | dir, |
| const std::string & | pfx | ||
| ) |
| std::string tempnam | ( | const std::string & | dir, |
| const std::string & | pfx, | ||
| std::string & | msg | ||
| ) |
Definition at line 756 of file file-ops.cc.
References env::get_temp_directory(), octave_gen_tempname_wrapper(), and OCTAVE_LOCAL_BUFFER.
| std::string tilde_expand | ( | const std::string & | name | ) |
| string_vector tilde_expand | ( | const string_vector & | names | ) |
Definition at line 346 of file file-ops.cc.
References string_vector::numel(), and tilde_expand().
| int umask | ( | mode_t | mode | ) |
Definition at line 721 of file file-ops.cc.
References octave_umask_wrapper().
Referenced by octave_umask_wrapper().
| int unlink | ( | const std::string & | name | ) |
Definition at line 727 of file file-ops.cc.
References unlink().
Referenced by octave_unlink_wrapper(), recursive_rmdir(), rename(), and unlink().
| int unlink | ( | const std::string & | name, |
| std::string & | msg | ||
| ) |
Definition at line 734 of file file-ops.cc.
References octave_unlink_wrapper().
| string_vector tilde_additional_prefixes = default_prefixes |
Definition at line 265 of file file-ops.cc.
| string_vector tilde_additional_suffixes = default_suffixes |
Definition at line 267 of file file-ops.cc.
| tilde_expansion_hook tilde_expansion_failure_hook = nullptr |
Definition at line 263 of file file-ops.cc.
| tilde_expansion_hook tilde_expansion_preexpansion_hook = nullptr |
Definition at line 261 of file file-ops.cc.