GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <ctime>
#include <cstdio>
#include <cstring>
#include "cmd-hist.h"
#include "fcntl-wrappers.h"
#include "file-ops.h"
#include "file-stat.h"
#include "lo-utils.h"
#include "oct-env.h"
#include "oct-syscalls.h"
#include "oct-uname.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "oct-hist.h"
#include "oct-map.h"
#include "ovl.h"
#include "oct-stdstrm.h"
#include "oct-stream.h"
#include "sysdep.h"
#include "utils.h"
#include "variables.h"
#include "input.h"
Go to the source code of this file.
Functions | |
elseif (errno()==EAGAIN) pause(0.1) | |
fclear (out) | |
fclose (in) | |
OCTAVE_EXPORT octave_value_list | Fdup2 (const octave_value_list &args, int) ar |
fputs (in,"these\nare\nsome\nstrings\n") | |
if (ischar(s)) fputs(stdout | |
static octave_scalar_map | mk_stat_map (const octave::sys::base_file_stat &fs) |
static octave_value_list | mk_stat_result (const octave::sys::base_file_stat &fs) |
endif | until (done) fclose(out) |
waitpid (pid) | |
Variables | |
done = false | |
EAGAIN = errno ("EAGAIN") | |
unlike | ode {popen} |
unlike will not | ospell {"reap"} the child process. If you don't use @code{waitpid} to check the child's exit status |
rint {} these rint{} strings rint{} some rint{} are nd example Note that ode{popen2} | |
do | s = fgets (out) |
elseif | ( | errno() | = =EAGAIN | ) |
fclear | ( | out | ) |
fclose | ( | in | ) |
Referenced by octave_procbuf::close(), octave::CFile::close(), close_fcn(), BlockArray::decreaseBuffer(), c_file_ptr_buf::file_close(), BlockArray::increaseBuffer(), QConsolePrivate::log(), oct_init_by_entropy(), octave_procbuf::open(), safe_fclose(), BlockArray::setHistorySize(), and octave::CFile::~CFile().
OCTAVE_EXPORT octave_value_list Fdup2 | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 117 of file syscalls.cc.
References octave::sys::dup2(), octave_stream::file_number(), octave_stream_list::lookup(), ovl(), print_usage(), and string.
Referenced by install_syscalls_fcns().
fputs | ( | in | , |
"these\nare\nsome\nstrings\n" | |||
) |
Referenced by octave::default_command_editor::do_readline().
|
static |
Definition at line 60 of file syscalls.cc.
References octave_scalar_map::assign(), octave::sys::base_file_stat::atime(), octave::sys::base_file_stat::blksize(), octave::sys::base_file_stat::blocks(), octave::sys::base_file_stat::ctime(), octave::sys::base_file_stat::dev(), octave::sys::base_file_stat::gid(), octave::sys::base_file_stat::have_struct_stat_st_blksize(), octave::sys::base_file_stat::have_struct_stat_st_blocks(), octave::sys::base_file_stat::have_struct_stat_st_rdev(), octave::sys::base_file_stat::ino(), m, octave::sys::base_file_stat::mode(), octave::sys::base_file_stat::mode_as_string(), octave::sys::base_file_stat::mtime(), NaN(), octave::sys::base_file_stat::nlink(), octave::sys::base_file_stat::rdev(), octave::sys::base_file_stat::size(), and octave::sys::base_file_stat::uid().
Referenced by mk_stat_result().
|
static |
Definition at line 100 of file syscalls.cc.
References octave::sys::base_file_stat::error(), mk_stat_map(), and ovl().
endif until | ( | done | ) |
waitpid | ( | pid | ) |
Referenced by octave_waitpid_wrapper().
Definition at line 248 of file syscalls.cc.
Referenced by ListDialog::buttonCancel_clicked(), InputDialog::buttonCancel_clicked(), ListDialog::buttonOk_clicked(), InputDialog::buttonOk_clicked(), load_path::do_find_first_of(), elem_xpow(), get_lines_and_columns(), hdf5_read_next_data_internal(), jcobi(), jit_typeinfo::jit_typeinfo(), keyword_almost_match(), octave_base_value::numeric_assign(), octave_jit_paren_subsasgn_matrix_range(), path_find_first_of(), path_search(), octave::textscan_format_list::process_conversion(), qp(), radio_values::radio_values(), octave::textscan::read_format_once(), octave::textscan::read_until(), octave_base_matrix< MT >::short_disp(), and jit_convert::visit_binary_expression().
EAGAIN = errno ("EAGAIN") |
Definition at line 248 of file syscalls.cc.
Referenced by octave_errno::octave_errno(), and run_command_and_return_output().
unlike ode {popen} |
Definition at line 248 of file syscalls.cc.
unlike will not ospell {"reap"} the child process. If you don't use @code{waitpid} to check the child's exit status |
Definition at line 248 of file syscalls.cc.
Definition at line 248 of file syscalls.cc.
s = fgets (out) |
Definition at line 248 of file syscalls.cc.