GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
sysdep.cc File Reference
#include <cfloat>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <sys/types.h>
#include <unistd.h>
#include "cmd-edit.h"
#include "file-ops.h"
#include "lo-mappers.h"
#include "lo-math.h"
#include "mach-info.h"
#include "oct-env.h"
#include "quit.h"
#include "Cell.h"
#include "builtins.h"
#include "defun.h"
#include "display.h"
#include "error.h"
#include "input.h"
#include "oct-obj.h"
#include "ov.h"
#include "pager.h"
#include "parse.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "toplev.h"
#include "utils.h"
#include "file-stat.h"
Include dependency graph for sysdep.cc:

Go to the source code of this file.

Functions

OCTAVE_EXPORT octave_value_list F__open_with_system_app__ (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 Fhave_window_system (const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list Fisieee (const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list Fkbhit (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 (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fsetenv (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fsleep (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 Fusleep (const octave_value_list &args, int)
 
std::string get_P_tmpdir (void)
 
int octave_kbhit (bool wait)
 
int octave_pclose (FILE *f)
 
FILE * octave_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 sysdep_cleanup (void)
 
void sysdep_init (void)
 

Function Documentation

OCTAVE_EXPORT octave_value_list F__open_with_system_app__ ( const octave_value_list args,
int   
)

Definition at line 192 of file sysdep.cc.

References error(), error_state, Fsystem(), ovl(), print_usage(), and octave_value::string_value().

OCTAVE_EXPORT octave_value_list Fclc ( const octave_value_list ,
int   
)

Definition at line 588 of file sysdep.cc.

References command_editor::clear_screen().

OCTAVE_EXPORT octave_value_list Fget_home_directory ( const octave_value_list ,
int   
)

Definition at line 1035 of file sysdep.cc.

References octave_env::get_home_directory(), and octave_value().

OCTAVE_EXPORT octave_value_list Fgetenv ( const octave_value_list args,
int   
)

Definition at line 613 of file sysdep.cc.

References error_state, octave_env::getenv(), octave_value::length(), and print_usage().

OCTAVE_EXPORT octave_value_list Fhave_window_system ( const octave_value_list ,
int   
)

Definition at line 1057 of file sysdep.cc.

References display_info::display_available(), and octave_value().

OCTAVE_EXPORT octave_value_list Fisieee ( const octave_value_list ,
int   
)
OCTAVE_EXPORT octave_value_list Fkbhit ( const octave_value_list args,
int   
)

Definition at line 747 of file sysdep.cc.

References DEFUN, Fdrawnow(), interactive, and octave_kbhit().

OCTAVE_EXPORT octave_value_list Fnative_float_format ( const octave_value_list ,
int   
)
OCTAVE_EXPORT octave_value_list Fpause ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fsetenv ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fsleep ( const octave_value_list args,
int   
)

Definition at line 848 of file sysdep.cc.

References error_state, Fdrawnow(), octave_sleep(), print_usage(), warning(), and xisnan().

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   
)

Definition at line 693 of file sysdep.cc.

References error_state, octave_value::length(), and print_usage().

OCTAVE_EXPORT octave_value_list Fusleep ( const octave_value_list args,
int   
)

Definition at line 891 of file sysdep.cc.

References error_state, Fdrawnow(), NINT(), octave_usleep(), print_usage(), warning(), and xisnan().

std::string get_P_tmpdir ( void  )

Definition at line 545 of file sysdep.cc.

References octave_env::getenv().

Referenced by FP_tmpdir().

int octave_kbhit ( bool  wait)

Definition at line 514 of file sysdep.cc.

References octave_ignore_interrupts(), octave_set_interrupt_handler(), and raw_mode().

Referenced by Fkbhit(), and Fpause().

int octave_pclose ( FILE *  f)

Definition at line 502 of file sysdep.cc.

Referenced by octave_procbuf::close().

FILE* octave_popen ( const char command,
const char mode 
)

Definition at line 482 of file sysdep.cc.

Referenced by gl2ps_print(), and octave_procbuf::open().

void raw_mode ( bool  on,
bool  wait 
)

Definition at line 339 of file sysdep.cc.

References ECHO, error(), forced_interactive, interactive, and warning().

Referenced by do_octave_atexit(), and octave_kbhit().

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

Definition at line 246 of file sysdep.cc.

References base_file_stat::dev(), and base_file_stat::ino().

Referenced by same_file().

void sysdep_cleanup ( void  )

Definition at line 321 of file sysdep.cc.

References MINGW_SIGNAL_CLEANUP.

Referenced by do_octave_atexit().

void sysdep_init ( void  )

Definition at line 309 of file sysdep.cc.

Referenced by main(), and octave_main().