#include <cmath>
#include <cstddef>
#include <iostream>
#include <string>
#include "cmd-edit.h"
#include "file-ops.h"
#include "lo-mappers.h"
#include "lo-sysinfo.h"
#include "mach-info.h"
#include "oct-env.h"
#include "uniconv-wrappers.h"
#include "unistd-wrappers.h"
#include "builtin-defun-decls.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "input.h"
#include "interpreter-private.h"
#include "octave.h"
#include "ov.h"
#include "ovl.h"
#include "pager.h"
#include "parse.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "interpreter.h"
#include "utils.h"
#include "file-stat.h"
Go to the source code of this file.
Macros | |
#define | FSYSTEM_OPEN_STR "xdg-open " |
#define | STDIN_FILENO 1 |
Functions | |
bool | drive_or_unc_share (const std::string &name) |
OCTAVE_EXPORT octave_value_list | F__blas_version__ (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | F__is_elevated_process__ (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | F__lapack_version__ (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | F__open_with_system_app__ (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | F__wmemory__ (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fclc (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Fget_home_directory (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Fgetenv (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fisieee (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Fkbhit (octave::interpreter &interp, const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fnative_float_format (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Fpause (octave::interpreter &interp, const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fsetenv (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Ftilde_expand (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Funsetenv (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fwinqueryreg (const octave_value_list &args, int) |
std::string | get_P_tmpdir (void) |
int | kbhit (bool wait) |
int | pclose (FILE *f) |
FILE * | popen (const char *command, const char *mode) |
void | raw_mode (bool on, bool wait) |
bool | same_file_internal (const std::string &file1, const std::string &file2) |
void | set_application_id (void) |
void | sysdep_cleanup (void) |
void | sysdep_init (void) |
Variables | |
static bool | Vpause_enabled = true |
#define FSYSTEM_OPEN_STR "xdg-open " |
bool drive_or_unc_share | ( | const std::string & | name | ) |
Definition at line 460 of file sysdep.cc.
References len, and u8_to_wstring().
Referenced by symbol_exist().
OCTAVE_EXPORT octave_value_list F__blas_version__ | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 1480 of file sysdep.cc.
References blas_version(), and ovl().
OCTAVE_EXPORT octave_value_list F__is_elevated_process__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 238 of file sysdep.cc.
References error(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list F__lapack_version__ | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 1489 of file sysdep.cc.
References lapack_version(), and ovl().
OCTAVE_EXPORT octave_value_list F__open_with_system_app__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 196 of file sysdep.cc.
References Fsystem(), FSYSTEM_OPEN_STR, octave_value(), ovl(), print_usage(), and u8_to_wstring().
OCTAVE_EXPORT octave_value_list F__wmemory__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 274 of file sysdep.cc.
References error(), ovl(), print_usage(), and octave_scalar_map::setfield().
OCTAVE_EXPORT octave_value_list Fclc | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 809 of file sysdep.cc.
References command_editor::clear_screen(), and ovl().
OCTAVE_EXPORT octave_value_list Fget_home_directory | ( | const octave_value_list & | , |
int | |||
) |
OCTAVE_EXPORT octave_value_list Fgetenv | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 834 of file sysdep.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisieee | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 1375 of file sysdep.cc.
References flt_fmt_ieee_big_endian, flt_fmt_ieee_little_endian, native_float_format(), and ovl().
OCTAVE_EXPORT octave_value_list Fkbhit | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 1241 of file sysdep.cc.
References Fdrawnow(), kbhit(), and octave_value().
OCTAVE_EXPORT octave_value_list Fnative_float_format | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 1391 of file sysdep.cc.
References float_format_as_string(), native_float_format(), and ovl().
OCTAVE_EXPORT octave_value_list Fpause | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 1310 of file sysdep.cc.
References octave_value_list::append(), error(), Fdrawnow(), isnan(), octave_value_list::length(), octave_Inf, print_usage(), sleep(), state, Vpause_enabled, and warning().
OCTAVE_EXPORT octave_value_list Fsetenv | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 861 of file sysdep.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Ftilde_expand | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1428 of file sysdep.cc.
References octave_value::dims(), octave_value::iscellstr(), ovl(), print_usage(), tilde_expand(), and octave_value::xstring_vector_value().
OCTAVE_EXPORT octave_value_list Funsetenv | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 897 of file sysdep.cc.
References ovl(), print_usage(), and unsetenv_wrapper().
OCTAVE_EXPORT octave_value_list Fwinqueryreg | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1077 of file sysdep.cc.
References error(), ovl(), and print_usage().
std::string get_P_tmpdir | ( | void | ) |
Definition at line 766 of file sysdep.cc.
Referenced by FP_tmpdir().
int kbhit | ( | bool | wait | ) |
Definition at line 722 of file sysdep.cc.
References ignore_interrupts(), raw_mode(), and set_interrupt_handler().
int pclose | ( | FILE * | f | ) |
FILE* popen | ( | const char * | command, |
const char * | mode | ||
) |
Definition at line 695 of file sysdep.cc.
References u8_to_wstring().
Referenced by main(), and procbuf::open().
void raw_mode | ( | bool | on, |
bool | wait | ||
) |
Definition at line 547 of file sysdep.cc.
References __get_interpreter__(), ECHO, error(), application::forced_interactive(), interpreter::interactive(), octave_isatty_wrapper(), STDIN_FILENO, and warn_disabled_feature().
Referenced by kbhit().
bool same_file_internal | ( | const std::string & | file1, |
const std::string & | file2 | ||
) |
void set_application_id | ( | void | ) |
Definition at line 183 of file sysdep.cc.
Referenced by qt_application::execute().
void sysdep_cleanup | ( | void | ) |
Definition at line 527 of file sysdep.cc.
Referenced by my_friendly_exit(), and interpreter::shutdown().
void sysdep_init | ( | void | ) |
Definition at line 509 of file sysdep.cc.
Referenced by qt_application::qt_application(), and application::init().