#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 "interpreter.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 (octave::interpreter &interp, const octave_value_list &args, int) ar |
fputs (in, "these\re\ome\trings\) | |
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 | ) |
OCTAVE_EXPORT octave_value_list Fdup2 | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 118 of file syscalls.cc.
References octave::sys::dup2(), octave::stream::file_number(), octave::stream_list::lookup(), ovl(), print_usage(), streams, and string.
fputs | ( | in | , |
"these\\e\ings\ | |||
) |
Referenced by octave::default_command_editor::do_readline(), and octave_show_sigmask().
|
static |
Definition at line 61 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(), fs, 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(), 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 101 of file syscalls.cc.
References octave::sys::base_file_stat::error(), fs, mk_stat_map(), and ovl().
endif until | ( | done | ) |
waitpid | ( | pid | ) |
Referenced by octave_waitpid_wrapper().
Definition at line 251 of file syscalls.cc.
Referenced by octave::ListDialog::buttonCancel_clicked(), octave::InputDialog::buttonCancel_clicked(), octave::ListDialog::buttonOk_clicked(), octave::InputDialog::buttonOk_clicked(), elem_xpow(), octave::load_path::find_first_of(), get_lines_and_columns(), hdf5_read_next_data_internal(), jcobi(), octave::jit_typeinfo::jit_typeinfo(), keyword_almost_match(), octave_base_value::numeric_assign(), octave::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< boolNDArray >::short_disp(), octave_base_diag< DiagMatrix, Matrix >::short_disp(), octave_perm_matrix::short_disp(), and octave::jit_convert::visit_boolean_expression().
EAGAIN = errno ("EAGAIN") |
Definition at line 251 of file syscalls.cc.
Referenced by octave_errno::octave_errno(), and run_command_and_return_output().
unlike ode {popen} |
Definition at line 251 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 251 of file syscalls.cc.
Definition at line 251 of file syscalls.cc.
s = fgets (out) |
Definition at line 251 of file syscalls.cc.