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

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
 

Macro Definition Documentation

◆ FSYSTEM_OPEN_STR

#define FSYSTEM_OPEN_STR   "xdg-open "

◆ STDIN_FILENO

#define STDIN_FILENO   1

Definition at line 92 of file sysdep.cc.

Function Documentation

◆ drive_or_unc_share()

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

◆ F__blas_version__()

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

◆ F__is_elevated_process__()

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

◆ F__lapack_version__()

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

◆ F__open_with_system_app__()

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

◆ F__wmemory__()

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

◆ Fclc()

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

◆ Fget_home_directory()

OCTAVE_EXPORT octave_value_list Fget_home_directory ( const octave_value_list ,
int   
)

Definition at line 1464 of file sysdep.cc.

References ovl().

◆ Fgetenv()

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

◆ Fisieee()

OCTAVE_EXPORT octave_value_list Fisieee ( const octave_value_list ,
int   
)

◆ Fkbhit()

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

◆ Fnative_float_format()

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

◆ Fpause()

OCTAVE_EXPORT octave_value_list Fpause ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

◆ Fsetenv()

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

◆ Ftilde_expand()

OCTAVE_EXPORT octave_value_list Ftilde_expand ( const octave_value_list args,
int   
)

◆ Funsetenv()

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

◆ Fwinqueryreg()

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

◆ get_P_tmpdir()

std::string get_P_tmpdir ( void  )

Definition at line 766 of file sysdep.cc.

Referenced by FP_tmpdir().

◆ kbhit()

int kbhit ( bool  wait)

Definition at line 722 of file sysdep.cc.

References ignore_interrupts(), raw_mode(), and set_interrupt_handler().

Referenced by Fkbhit(), and sleep().

◆ pclose()

int pclose ( FILE *  f)

Definition at line 711 of file sysdep.cc.

References f.

Referenced by procbuf::close(), and main().

◆ popen()

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

◆ raw_mode()

void raw_mode ( bool  on,
bool  wait 
)

◆ same_file_internal()

bool same_file_internal ( const std::string &  file1,
const std::string &  file2 
)

Definition at line 385 of file sysdep.cc.

References u8_to_wstring().

Referenced by same_file().

◆ set_application_id()

void set_application_id ( void  )

Definition at line 183 of file sysdep.cc.

Referenced by qt_application::execute().

◆ sysdep_cleanup()

void sysdep_cleanup ( void  )

Definition at line 527 of file sysdep.cc.

Referenced by my_friendly_exit(), and interpreter::shutdown().

◆ sysdep_init()

void sysdep_init ( void  )

Definition at line 509 of file sysdep.cc.

Referenced by qt_application::qt_application(), and application::init().

Variable Documentation

◆ Vpause_enabled

bool Vpause_enabled = true
static

Definition at line 1258 of file sysdep.cc.

Referenced by Fpause().