#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 "event-manager.h"
#include "input.h"
#include "interpreter.h"
#include "oct-hist.h"
#include "oct-map.h"
#include "oct-stdstrm.h"
#include "oct-stream.h"
#include "ovl.h"
#include "sysdep.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
|
inlinestatic |
Definition at line 1355 of file syscalls.cc.
References octave_value_list::length(), octave_value(), and print_usage().
Referenced by FF_DUPFD(), FF_GETFD(), FF_GETFL(), FF_SETFD(), FF_SETFL(), FO_APPEND(), FO_ASYNC(), FO_CREAT(), FO_EXCL(), FO_NONBLOCK(), FO_RDONLY(), FO_RDWR(), FO_SYNC(), FO_TRUNC(), FO_WRONLY(), FWCONTINUE(), FWNOHANG(), and FWUNTRACED().
|
static |
OCTAVE_EXPORT octave_value_list Fcanonicalize_file_name | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1340 of file syscalls.cc.
References octave::sys::canonicalize_file_name(), name, ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fdup2 | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 121 of file syscalls.cc.
References octave::sys::dup2(), octave::stream::file_number(), octave::stream_list::lookup(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fexec | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 166 of file syscalls.cc.
References octave::command_history::clean_up_and_save(), octave::sys::execvp(), octave::command_history::ignoring_entries(), len, string_vector::numel(), ovl(), print_usage(), string_vector::resize(), and octave::history_system::write_timestamp().
OCTAVE_EXPORT octave_value_list FF_DUPFD | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1369 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_f_dupfd_wrapper().
OCTAVE_EXPORT octave_value_list FF_GETFD | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1385 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_f_getfd_wrapper().
OCTAVE_EXPORT octave_value_list FF_GETFL | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1401 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_f_getfl_wrapper().
OCTAVE_EXPORT octave_value_list FF_SETFD | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1417 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_f_setfd_wrapper().
OCTAVE_EXPORT octave_value_list FF_SETFL | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1433 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_f_setfl_wrapper().
OCTAVE_EXPORT octave_value_list Ffcntl | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 437 of file syscalls.cc.
References error(), octave::sys::fcntl(), octave::stream::file_number(), octave::stream_list::lookup(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Ffork | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 485 of file syscalls.cc.
References error(), octave::sys::fork(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgetegid | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 547 of file syscalls.cc.
References octave::sys::getegid(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgeteuid | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 573 of file syscalls.cc.
References octave::sys::geteuid(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgetgid | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 560 of file syscalls.cc.
References octave::sys::getgid(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgethostname | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1018 of file syscalls.cc.
References octave::sys::env::get_host_name(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgetpgrp | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 504 of file syscalls.cc.
References octave::sys::getpgrp(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgetpid | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 521 of file syscalls.cc.
References octave::sys::getpid(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgetppid | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 534 of file syscalls.cc.
References octave::sys::getppid(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgetuid | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 586 of file syscalls.cc.
References octave::sys::getuid(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fkill | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 614 of file syscalls.cc.
References octave::sys::kill(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Flstat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 639 of file syscalls.cc.
References mk_stat_result(), and print_usage().
OCTAVE_EXPORT octave_value_list Fmkfifo | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 692 of file syscalls.cc.
References convert(), error(), octave::sys::mkfifo(), name, ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list FO_APPEND | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1452 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_append_wrapper().
OCTAVE_EXPORT octave_value_list FO_ASYNC | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1470 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_async_wrapper().
OCTAVE_EXPORT octave_value_list FO_CREAT | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1489 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_creat_wrapper().
OCTAVE_EXPORT octave_value_list FO_EXCL | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1507 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_excl_wrapper().
OCTAVE_EXPORT octave_value_list FO_NONBLOCK | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1526 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_nonblock_wrapper().
OCTAVE_EXPORT octave_value_list FO_RDONLY | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1544 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_rdonly_wrapper().
OCTAVE_EXPORT octave_value_list FO_RDWR | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1563 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_rdwr_wrapper().
OCTAVE_EXPORT octave_value_list FO_SYNC | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1581 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_sync_wrapper().
OCTAVE_EXPORT octave_value_list FO_TRUNC | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1600 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_trunc_wrapper().
OCTAVE_EXPORT octave_value_list FO_WRONLY | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1618 of file syscalls.cc.
References const_value(), err_disabled_feature(), and octave_o_wronly_wrapper().
OCTAVE_EXPORT octave_value_list Fpipe | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 736 of file syscalls.cc.
References octave_stdiostream::create(), octave::stream_list::insert(), ovl(), octave::sys::pipe(), and print_usage().
OCTAVE_EXPORT octave_value_list Fpopen2 | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 256 of file syscalls.cc.
References octave_stdiostream::create(), error(), octave::stream_list::insert(), len, string_vector::numel(), ovl(), octave::sys::popen2(), print_usage(), and string_vector::resize().
OCTAVE_EXPORT octave_value_list FS_ISBLK | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 950 of file syscalls.cc.
References octave::sys::base_file_stat::is_blk(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list FS_ISCHR | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 932 of file syscalls.cc.
References octave::sys::base_file_stat::is_chr(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list FS_ISDIR | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 914 of file syscalls.cc.
References octave::sys::base_file_stat::is_dir(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list FS_ISFIFO | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 968 of file syscalls.cc.
References octave::sys::base_file_stat::is_fifo(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list FS_ISLNK | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 986 of file syscalls.cc.
References octave::sys::base_file_stat::is_lnk(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list FS_ISREG | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 896 of file syscalls.cc.
References octave::sys::base_file_stat::is_reg(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list FS_ISSOCK | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1004 of file syscalls.cc.
References octave::sys::base_file_stat::is_sock(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fstat | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 859 of file syscalls.cc.
References octave::stream_list::get_file_number(), mk_stat_result(), print_usage(), and retval.
OCTAVE_EXPORT octave_value_list Funame | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1049 of file syscalls.cc.
References octave::sys::uname::error(), m, octave::sys::uname::machine(), octave::sys::uname::message(), octave::sys::uname::nodename(), ovl(), print_usage(), octave::sys::uname::release(), octave::sys::uname::sysname(), and octave::sys::uname::version().
OCTAVE_EXPORT octave_value_list Funlink | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 1085 of file syscalls.cc.
References octave::event_manager::file_remove(), octave::event_manager::file_renamed(), name, ovl(), print_usage(), and octave::sys::unlink().
OCTAVE_EXPORT octave_value_list Fwaitpid | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1169 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::waitpid().
Referenced by gnuplot_graphics_toolkit::send_quit().
OCTAVE_EXPORT octave_value_list FWCONTINUE | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1665 of file syscalls.cc.
References const_value(), and octave::sys::wcontinue().
OCTAVE_EXPORT octave_value_list FWCOREDUMP | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1269 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::wcoredump().
OCTAVE_EXPORT octave_value_list FWEXITSTATUS | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1215 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::wexitstatus().
OCTAVE_EXPORT octave_value_list FWIFCONTINUED | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1322 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::wifcontinued().
OCTAVE_EXPORT octave_value_list FWIFEXITED | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1197 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::wifexited().
OCTAVE_EXPORT octave_value_list FWIFSIGNALED | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1231 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::wifsignaled().
OCTAVE_EXPORT octave_value_list FWIFSTOPPED | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1288 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::wifstopped().
OCTAVE_EXPORT octave_value_list FWNOHANG | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1637 of file syscalls.cc.
References const_value(), and octave::sys::wnohang().
OCTAVE_EXPORT octave_value_list FWSTOPSIG | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1306 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::wstopsig().
OCTAVE_EXPORT octave_value_list FWTERMSIG | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1249 of file syscalls.cc.
References ovl(), print_usage(), and octave::sys::wtermsig().
OCTAVE_EXPORT octave_value_list FWUNTRACED | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1651 of file syscalls.cc.
References const_value(), and octave::sys::wuntraced().
|
static |
Definition at line 64 of file syscalls.cc.
References 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 104 of file syscalls.cc.
References octave::sys::base_file_stat::error(), mk_stat_map(), and ovl().