GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
toplev.cc File Reference
#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"
Include dependency graph for toplev.cc:

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)
 

Macro Definition Documentation

◆ SHELL_PATH

#define SHELL_PATH   "/bin/sh"

Definition at line 72 of file toplev.cc.

Enumeration Type Documentation

◆ system_exec_type

Enumerator
et_sync 
et_async 

Definition at line 177 of file toplev.cc.

Function Documentation

◆ F__octave_config_info__()

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.

◆ find_config_info()

static octave_value find_config_info ( const octave_scalar_map m,
const std::string &  key 
)
static

Definition at line 326 of file toplev.cc.

References Array< T >::isempty(), m, and octave_value().

Referenced by F__octave_config_info__().

◆ Fsystem()

◆ Fwarranty()

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().

◆ get_signal_mask()

static void* get_signal_mask ( void  )
static

Definition at line 158 of file toplev.cc.

References octave_alloc_signal_mask(), and octave_get_signal_mask().

Referenced by Fsystem().

◆ restore_signal_mask()

static void restore_signal_mask ( void *  mask)
static

Definition at line 170 of file toplev.cc.

References octave_free_signal_mask(), and octave_set_signal_mask().

Referenced by Fsystem().

◆ run_command_and_return_output()