GNU Octave  3.8.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
Macros | 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.

Macros

#define STDIN_FILENO   1

Functions

OCTAVE_EXPORT octave_value_list Fclc (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 Fputenv (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 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)

Macro Definition Documentation

#define STDIN_FILENO   1

Definition at line 88 of file sysdep.cc.

Referenced by QUnixTerminalImpl::connectToPty(), octave_syscalls::popen2(), and raw_mode().

Function Documentation

OCTAVE_EXPORT octave_value_list Fclc ( const octave_value_list ,
int   
)

Definition at line 536 of file sysdep.cc.

References command_editor::clear_screen().

Referenced by main_window::clear_command_window_callback().

OCTAVE_EXPORT octave_value_list Fgetenv ( const octave_value_list args,
int   
)

Definition at line 558 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 920 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 645 of file sysdep.cc.

References DEFUN, Fdrawnow(), forced_interactive, 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 Fputenv ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fsleep ( const octave_value_list args,
int   
)

Definition at line 739 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 Fusleep ( const octave_value_list args,
int   
)

Definition at line 779 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 493 of file sysdep.cc.

References octave_env::getenv(), and P_tmpdir.

Referenced by FP_tmpdir().

int octave_kbhit ( bool  wait)

Definition at line 462 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 450 of file sysdep.cc.

Referenced by octave_procbuf::close().

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

Definition at line 430 of file sysdep.cc.

Referenced by octave_procbuf::open().

void raw_mode ( bool  on,
bool  wait 
)

Definition at line 287 of file sysdep.cc.

References ECHO, error(), interactive, isatty(), STDIN_FILENO, 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 194 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 269 of file sysdep.cc.

References MINGW_SIGNAL_CLEANUP.

Referenced by do_octave_atexit().

void sysdep_init ( void  )

Definition at line 257 of file sysdep.cc.

Referenced by main(), and octave_main().