GNU Octave  4.2.1
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 | Variables
sysdep.cc File Reference
#include <cfloat>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#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 "unistd-wrappers.h"
#include "unsetenv-wrapper.h"
#include "builtin-defun-decls.h"
#include "Cell.h"
#include "defun.h"
#include "display.h"
#include "error.h"
#include "errwarn.h"
#include "input.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 STDIN_FILENO   1
 

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 Fgetenv (const octave_value_list &args, int) xample getenv("PATH") nd example oindent returns a string containing the value of your path.eealso
 
OCTAVE_EXPORT octave_value_list Fsetenv (const octave_value_list &args, int) getenv}nd deftypefn */)
 
OCTAVE_EXPORT octave_value_list Funsetenv (const octave_value_list &args, int) or did not exist
 
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)
 
return ovl (octave::sys::env::getenv(name))
 
 pause (0.05)
 
 pause (5)
 
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

 clc
 
OCTAVE_EXPORT
octave_value_list and if an
error occurred 
eealso
 
end example noindent is
identical to the above 
example
 
end example noindent is
identical to the above but
doesn t wait for a 
keypress
 
nd deftypefn *std::string name = args(0).string_value ()
 
toc rint {} Elapsed time is 0.05039 seconds. nd group nd example The following example prints a message and then waits 5 seconds before clearing the screen. xample roup disp ("wait please...")
 
end example noindent will set var {x} to the next character typed at the keyboard as soon as it is typed. @example x = kbhit (1)
 

Macro Definition Documentation

#define STDIN_FILENO   1

Function Documentation

OCTAVE_EXPORT octave_value_list F__open_with_system_app__ ( const octave_value_list args,
int   
)

Definition at line 211 of file sysdep.cc.

References file, Fsystem(), ovl(), print_usage(), retval, string, and tmp.

Referenced by install_sysdep_fcns().

OCTAVE_EXPORT octave_value_list Fclc ( const octave_value_list ,
int   
)

Definition at line 623 of file sysdep.cc.

References octave::command_editor::clear_screen(), and ovl().

Referenced by install_sysdep_fcns().

OCTAVE_EXPORT octave_value_list Fgetenv ( const octave_value_list args,
int   
)

Definition at line 648 of file sysdep.cc.

References print_usage().

Referenced by install_sysdep_fcns().

OCTAVE_EXPORT octave_value_list Fsetenv ( const octave_value_list args,
int   
)

Definition at line 672 of file sysdep.cc.

References nargin, ovl(), print_usage(), octave::sys::env::putenv(), string, val, and var.

Referenced by install_sysdep_fcns().

OCTAVE_EXPORT octave_value_list Funsetenv ( const octave_value_list args,
int   
)

Referenced by install_sysdep_fcns().

std::string get_P_tmpdir ( void  )

Definition at line 580 of file sysdep.cc.

References octave::sys::env::getenv(), retval, and string.

int octave_kbhit ( bool  wait)

Definition at line 542 of file sysdep.cc.

References c, octave::ignore_interrupts(), raw_mode(), and octave::set_interrupt_handler().

int octave_pclose ( FILE *  f)

Definition at line 530 of file sysdep.cc.

Referenced by octave_procbuf::close().

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

Definition at line 510 of file sysdep.cc.

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

return ovl ( octave::sys::env::  getenvname)
pause ( 0.  05)
pause ( )
void raw_mode ( bool  on,
bool  wait 
)

Definition at line 367 of file sysdep.cc.

References ECHO, error(), octave_isatty_wrapper(), s, STDIN_FILENO, and warn_disabled_feature().

Referenced by octave_kbhit().

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

Definition at line 264 of file sysdep.cc.

References octave::sys::base_file_stat::dev(), octave::sys::base_file_stat::ino(), and retval.

Referenced by same_file().

void set_application_id ( void  )

Definition at line 184 of file sysdep.cc.

Referenced by octave::gui_application::execute().

void sysdep_cleanup ( void  )

Definition at line 346 of file sysdep.cc.

Referenced by octave::my_friendly_exit().

void sysdep_init ( void  )

Definition at line 327 of file sysdep.cc.

Variable Documentation

clc

Definition at line 804 of file sysdep.cc.

end example noindent is identical to the above but doesn t wait for a returning the empty string if no key is available eealso

Definition at line 708 of file sysdep.cc.

end example noindent is identical to the above example

Definition at line 750 of file sysdep.cc.

end example noindent is identical to the above but doesn t wait for a keypress

Definition at line 750 of file sysdep.cc.

nd deftypefn* std::string name = args(0).string_value ()

Definition at line 653 of file sysdep.cc.

toc rint {} Elapsed time is 0.05039 seconds. nd group nd example The following example prints a message and then waits 5 seconds before clearing the screen. xample roup disp ("wait please...")

Definition at line 804 of file sysdep.cc.

end example noindent will set var {x} to the next character typed at the keyboard as soon as it is typed. @example x = kbhit (1)

Definition at line 750 of file sysdep.cc.

Referenced by Fsetenv().