#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 "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" |
#define | STRINGIFY(s) STRINGIFY1(s) |
#define | STRINGIFY1(s) #s |
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) |
#define STRINGIFY | ( | s | ) | STRINGIFY1(s) |
enum system_exec_type |
OCTAVE_EXPORT octave_value_list F__octave_config_info__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 352 of file toplev.cc.
References AMD_CPPFLAGS, AMD_LDFLAGS, AMD_LIBS, AR, arch_lib_dir(), ARFLAGS, ARPACK_CPPFLAGS, ARPACK_LDFLAGS, ARPACK_LIBS, octave_scalar_map::assign(), bin_dir(), BLAS_LIBS, CAMD_CPPFLAGS, CAMD_LDFLAGS, CAMD_LIBS, canonical_host_type(), CARBON_LIBS, CC, CCOLAMD_CPPFLAGS, CCOLAMD_LDFLAGS, CCOLAMD_LIBS, CFLAGS, CHOLMOD_CPPFLAGS, CHOLMOD_LDFLAGS, CHOLMOD_LIBS, COLAMD_CPPFLAGS, COLAMD_LDFLAGS, COLAMD_LIBS, config_opts, CPICFLAG, CPPFLAGS, CURL_CPPFLAGS, CURL_LDFLAGS, CURL_LIBS, CXSPARSE_CPPFLAGS, CXSPARSE_LDFLAGS, CXSPARSE_LIBS, CXX, CXXCPP, CXXFLAGS, CXXPICFLAG, data_dir(), dataroot_dir(), default_pager(), DEFS, DL_LDFLAGS, error(), EXEEXT, F77, F77_FLOAT_STORE_FLAG, F77_INTEGER_8_FLAG, fcn_file_dir(), features(), FFLAGS, FFTW3_CPPFLAGS, FFTW3_LDFLAGS, FFTW3_LIBS, FFTW3F_CPPFLAGS, FFTW3F_LDFLAGS, FFTW3F_LIBS, fftw_version(), fftwf_version(), find_config_info(), FLIBS, float_format_as_string(), FLTK_CPPFLAGS, FLTK_LDFLAGS, FLTK_LIBS, FONTCONFIG_CPPFLAGS, FONTCONFIG_LIBS, FPICFLAG, FT2_CPPFLAGS, FT2_LIBS, GCC_VERSION, GLPK_CPPFLAGS, GLPK_LDFLAGS, GLPK_LIBS, GNUPLOT, GXX_VERSION, HDF5_CPPFLAGS, HDF5_LDFLAGS, HDF5_LIBS, image_dir(), include_dir(), info_dir(), octave_value::is_undefined(), LAPACK_LIBS, LD_STATIC_FLAG, LDFLAGS, LEX, LEXLIB, LFLAGS, lib_dir(), libexec_dir(), LIBOCTAVE, LIBOCTINTERP, liboctinterp_hg_id(), LIBS, LN_S, local_api_arch_lib_dir(), local_api_fcn_file_dir(), local_api_oct_file_dir(), local_arch_lib_dir(), local_fcn_file_dir(), local_oct_file_dir(), local_startupfile_dir(), local_ver_arch_lib_dir(), local_ver_fcn_file_dir(), local_ver_oct_file_dir(), MAGICK_CPPFLAGS, MAGICK_LDFLAGS, MAGICK_LIBS, man1_dir(), man1_ext(), man_dir(), MKOCTFILE_DL_LDFLAGS, native_float_format(), oct_data_dir(), oct_doc_dir(), oct_etc_dir(), oct_file_dir(), oct_fonts_dir(), oct_include_dir(), oct_lib_dir(), OCT_LINK_DEPS, OCT_LINK_OPTS, oct_tests_dir(), OCTAVE_LINK_DEPS, OCTAVE_LINK_OPTS, OCTAVE_VERSION, OPENGL_LIBS, ovl(), PCRE_CPPFLAGS, PCRE_LDFLAGS, PCRE_LIBS, print_usage(), PTHREAD_CFLAGS, PTHREAD_LIBS, QHULL_CPPFLAGS, QHULL_LDFLAGS, QHULL_LIBS, QRUPDATE_CPPFLAGS, QRUPDATE_LDFLAGS, QRUPDATE_LIBS, QT_CPPFLAGS, QT_LDFLAGS, QT_LIBS, QT_OPENGL_LIBS, RANLIB, RDYNAMIC_FLAG, READLINE_LIBS, SH_LDFLAGS, SHARED_LIBS, startupfile_dir(), STATIC_LIBS, STRINGIFY, SUITESPARSECONFIG_LIBS, UMFPACK_CPPFLAGS, UMFPACK_LDFLAGS, UMFPACK_LIBS, WARN_CFLAGS, WARN_CXXFLAGS, words_big_endian(), words_little_endian(), X11_INCFLAGS, X11_LIBS, XTRA_CFLAGS, XTRA_CXXFLAGS, YACC, YFLAGS, Z_CPPFLAGS, Z_LDFLAGS, and Z_LIBS.
|
static |
Definition at line 328 of file toplev.cc.
References Array< T, Alloc >::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 240 of file toplev.cc.
References 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(), run_command_and_return_output(), system(), wexitstatus(), and wifexited().
Referenced by F__open_with_system_app__().
OCTAVE_EXPORT octave_value_list Fwarranty | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 83 of file toplev.cc.
References octave_name_version_and_copyright(), octave_stdout, and ovl().
|
static |
Definition at line 161 of file toplev.cc.
References octave_alloc_signal_mask(), and octave_get_signal_mask().
Referenced by Fsystem().
|
static |
Definition at line 173 of file toplev.cc.
References octave_free_signal_mask(), and octave_set_signal_mask().
Referenced by Fsystem().
|
static |
Definition at line 108 of file toplev.cc.
References __get_child_list__(), action_container::add(), action_container::add_delete(), procstreambase::close(), error(), procstreambase::file_number(), octave_wait_for_input(), ovl(), procstreambase::pid(), child_list::remove(), wexitstatus(), and wifexited().
Referenced by Fsystem().