#include <cerrno>
#include <cstdlib>
#include <new>
#include <sstream>
#include <string>
#include "async-system-wrapper.h"
#include "child-list.h"
#include "lo-error.h"
#include "oct-fftw.h"
#include "oct-locbuf.h"
#include "oct-syscalls.h"
#include "signal-wrappers.h"
#include "str-vec.h"
#include "wait-for-input.h"
#include "build-env.h"
#include "liboctinterp-build-info.h"
#include "defaults.h"
#include "defun.h"
#include "error.h"
#include "file-io.h"
#include "help.h"
#include "interpreter-private.h"
#include "octave.h"
#include "oct-map.h"
#include "ovl.h"
#include "ov.h"
#include "pager.h"
#include "procstream.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "version.h"
Go to the source code of this file.
Macros | |
#define | SHELL_PATH "/bin/sh" |
Enumerations | |
enum | system_exec_type { et_sync , et_async } |
Functions | |
OCTAVE_EXPORT octave_value_list | F__octave_config_info__ (const octave_value_list &args, int) |
static octave_value | find_config_info (const octave_scalar_map &m, const std::string &key) |
OCTAVE_EXPORT octave_value_list | Fsystem (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fwarranty (const octave_value_list &, int) |
static void * | get_signal_mask (void) |
static void | restore_signal_mask (void *mask) |
static octave_value_list | run_command_and_return_output (const std::string &cmd_str) |
enum system_exec_type |
OCTAVE_EXPORT octave_value_list F__octave_config_info__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 350 of file toplev.cc.
References octave::build_env::AMD_CPPFLAGS, octave::build_env::AMD_LDFLAGS, octave::build_env::AMD_LIBS, octave::build_env::AR, octave::config::arch_lib_dir(), octave::build_env::ARFLAGS, octave::build_env::ARPACK_CPPFLAGS, octave::build_env::ARPACK_LDFLAGS, octave::build_env::ARPACK_LIBS, octave_scalar_map::assign(), octave::config::bin_dir(), octave::build_env::BLAS_LIBS, octave::build_env::CAMD_CPPFLAGS, octave::build_env::CAMD_LDFLAGS, octave::build_env::CAMD_LIBS, octave::config::canonical_host_type(), octave::build_env::CARBON_LIBS, octave::build_env::CC, octave::build_env::CCOLAMD_CPPFLAGS, octave::build_env::CCOLAMD_LDFLAGS, octave::build_env::CCOLAMD_LIBS, octave::build_env::CFLAGS, octave::build_env::CHOLMOD_CPPFLAGS, octave::build_env::CHOLMOD_LDFLAGS, octave::build_env::CHOLMOD_LIBS, octave::build_env::COLAMD_CPPFLAGS, octave::build_env::COLAMD_LDFLAGS, octave::build_env::COLAMD_LIBS, octave::build_env::config_opts, octave::build_env::CPICFLAG, octave::build_env::CPPFLAGS, octave::build_env::CURL_CPPFLAGS, octave::build_env::CURL_LDFLAGS, octave::build_env::CURL_LIBS, octave::build_env::CXSPARSE_CPPFLAGS, octave::build_env::CXSPARSE_LDFLAGS, octave::build_env::CXSPARSE_LIBS, octave::build_env::CXX, octave::build_env::CXXCPP, octave::build_env::CXXFLAGS, octave::build_env::CXXPICFLAG, octave::config::data_dir(), octave::config::dataroot_dir(), octave::config::default_pager(), octave::build_env::DEFS, octave::build_env::DL_LDFLAGS, error(), octave::build_env::EXEEXT, octave::build_env::F77, octave::build_env::F77_FLOAT_STORE_FLAG, octave::build_env::F77_INTEGER_8_FLAG, octave::config::fcn_file_dir(), octave::build_env::features(), octave::build_env::FFLAGS, octave::build_env::FFTW3_CPPFLAGS, octave::build_env::FFTW3_LDFLAGS, octave::build_env::FFTW3_LIBS, octave::build_env::FFTW3F_CPPFLAGS, octave::build_env::FFTW3F_LDFLAGS, octave::build_env::FFTW3F_LIBS, octave::fftw_version(), octave::fftwf_version(), find_config_info(), octave::build_env::FLIBS, octave::mach_info::float_format_as_string(), octave::build_env::FLTK_CPPFLAGS, octave::build_env::FLTK_LDFLAGS, octave::build_env::FLTK_LIBS, octave::build_env::FONTCONFIG_CPPFLAGS, octave::build_env::FONTCONFIG_LIBS, octave::build_env::FPICFLAG, octave::build_env::FT2_CPPFLAGS, octave::build_env::FT2_LIBS, octave::build_env::GCC_VERSION, octave::build_env::GLPK_CPPFLAGS, octave::build_env::GLPK_LDFLAGS, octave::build_env::GLPK_LIBS, octave::build_env::GNUPLOT, octave::build_env::GXX_VERSION, octave::build_env::HDF5_CPPFLAGS, octave::build_env::HDF5_LDFLAGS, octave::build_env::HDF5_LIBS, octave::config::image_dir(), octave::config::include_dir(), octave::config::info_dir(), octave_value::is_undefined(), octave::build_env::LAPACK_LIBS, octave::build_env::LD_STATIC_FLAG, octave::build_env::LDFLAGS, octave::build_env::LEX, octave::build_env::LEXLIB, octave::build_env::LFLAGS, octave::config::lib_dir(), octave::config::libexec_dir(), octave::build_env::LIBOCTAVE, octave::build_env::LIBOCTINTERP, liboctinterp_hg_id(), octave::build_env::LIBS, octave::build_env::LLVM_CPPFLAGS, octave::build_env::LLVM_LDFLAGS, octave::build_env::LLVM_LIBS, octave::build_env::LN_S, octave::config::local_api_arch_lib_dir(), octave::config::local_api_fcn_file_dir(), octave::config::local_api_oct_file_dir(), octave::config::local_arch_lib_dir(), octave::config::local_fcn_file_dir(), octave::config::local_oct_file_dir(), octave::config::local_startupfile_dir(), octave::config::local_ver_arch_lib_dir(), octave::config::local_ver_fcn_file_dir(), octave::config::local_ver_oct_file_dir(), octave::build_env::MAGICK_CPPFLAGS, octave::build_env::MAGICK_LDFLAGS, octave::build_env::MAGICK_LIBS, octave::config::man1_dir(), octave::config::man1_ext(), octave::config::man_dir(), octave::build_env::MKOCTFILE_DL_LDFLAGS, octave::mach_info::native_float_format(), octave::config::oct_data_dir(), octave::config::oct_doc_dir(), octave::config::oct_etc_dir(), octave::config::oct_file_dir(), octave::config::oct_fonts_dir(), octave::config::oct_include_dir(), octave::config::oct_lib_dir(), octave::build_env::OCT_LINK_DEPS, octave::build_env::OCT_LINK_OPTS, octave::config::oct_tests_dir(), OCTAVE_API_VERSION, octave::build_env::OCTAVE_LINK_DEPS, octave::build_env::OCTAVE_LINK_OPTS, OCTAVE_RELEASE_DATE, OCTAVE_VERSION, octave::build_env::OPENGL_LIBS, ovl(), octave::build_env::PCRE_CPPFLAGS, octave::build_env::PCRE_LDFLAGS, octave::build_env::PCRE_LIBS, print_usage(), octave::build_env::PTHREAD_CFLAGS, octave::build_env::PTHREAD_LIBS, octave::build_env::QHULL_CPPFLAGS, octave::build_env::QHULL_LDFLAGS, octave::build_env::QHULL_LIBS, octave::build_env::QRUPDATE_CPPFLAGS, octave::build_env::QRUPDATE_LDFLAGS, octave::build_env::QRUPDATE_LIBS, octave::build_env::QT_CPPFLAGS, octave::build_env::QT_LDFLAGS, octave::build_env::QT_LIBS, octave::build_env::QT_OPENGL_LIBS, octave::build_env::RANLIB, octave::build_env::RDYNAMIC_FLAG, octave::build_env::READLINE_LIBS, retval, octave::build_env::SH_LDFLAGS, octave::build_env::SHARED_LIBS, octave::config::startupfile_dir(), octave::build_env::STATIC_LIBS, octave::build_env::SUITESPARSECONFIG_LIBS, octave::build_env::TERM_LIBS, octave::build_env::UMFPACK_CPPFLAGS, octave::build_env::UMFPACK_LDFLAGS, octave::build_env::UMFPACK_LIBS, octave::build_env::WARN_CFLAGS, octave::build_env::WARN_CXXFLAGS, octave::mach_info::words_big_endian(), octave::mach_info::words_little_endian(), octave::build_env::X11_INCFLAGS, octave::build_env::X11_LIBS, octave::build_env::XTRA_CFLAGS, octave::build_env::XTRA_CXXFLAGS, octave::build_env::YACC, octave::build_env::YFLAGS, octave::build_env::Z_CPPFLAGS, octave::build_env::Z_LDFLAGS, and octave::build_env::Z_LIBS.
|
static |
Definition at line 326 of file toplev.cc.
References Array< T >::isempty(), m, and octave_value().
Referenced by F__octave_config_info__().
OCTAVE_EXPORT octave_value_list Fsystem | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 237 of file toplev.cc.
References octave::action_container::add_fcn(), error(), et_async, et_sync, get_signal_mask(), octave_async_system_wrapper(), octave_unblock_async_signals(), octave_unblock_signal_by_name(), print_usage(), restore_signal_mask(), retval, run_command_and_return_output(), octave::sys::wexitstatus(), and octave::sys::wifexited().
Referenced by F__open_with_system_app__().
OCTAVE_EXPORT octave_value_list Fwarranty | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 79 of file toplev.cc.
References octave_name_version_and_copyright(), octave_stdout, and ovl().
|
static |
Definition at line 158 of file toplev.cc.
References octave_alloc_signal_mask(), and octave_get_signal_mask().
Referenced by Fsystem().
|
static |
Definition at line 170 of file toplev.cc.
References octave_free_signal_mask(), and octave_set_signal_mask().
Referenced by Fsystem().
|
static |
Definition at line 104 of file toplev.cc.
References octave::__get_child_list__(), octave::action_container::add_delete(), octave::action_container::add_method(), procstreambase::close(), error(), procstreambase::file_number(), octave_wait_for_input(), ovl(), procstreambase::pid(), octave::child_list::remove(), retval, octave::sys::wexitstatus(), and octave::sys::wifexited().
Referenced by Fsystem().