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
Static Public Member Functions | List of all members
octave_syscalls Struct Reference

#include "oct-syscalls.h"

Static Public Member Functions

static int dup2 (int, int)
static int dup2 (int, int, std::string &)
static int execvp (const std::string &, const string_vector &)
static int execvp (const std::string &, const string_vector &, std::string &)
static pid_t fork (std::string &)
static gid_t getegid (void)
static uid_t geteuid (void)
static gid_t getgid (void)
static pid_t getpgrp (std::string &)
static pid_t getpid (void)
static pid_t getppid (void)
static uid_t getuid (void)
static int kill (pid_t, int)
static int kill (pid_t, int, std::string &)
static int pipe (int *)
static int pipe (int *, std::string &)
static pid_t popen2 (const std::string &, const string_vector &, bool, int *)
static pid_t popen2 (const std::string &, const string_vector &, bool, int *, std::string &)
static pid_t popen2 (const std::string &, const string_vector &, bool, int *, std::string &, bool &interactive)
static pid_t vfork (std::string &)
static pid_t waitpid (pid_t, int *status, int)
static pid_t waitpid (pid_t, int *status, int, std::string &)

Detailed Description

Definition at line 32 of file oct-syscalls.h.

Member Function Documentation

int octave_syscalls::dup2 ( int  old_fd,
int  new_fd 
)
static

Definition at line 51 of file oct-syscalls.cc.

Referenced by dup2(), Fdup2(), and popen2().

int octave_syscalls::dup2 ( int  old_fd,
int  new_fd,
std::string &  msg 
)
static

Definition at line 58 of file oct-syscalls.cc.

References dup2(), and NOT_SUPPORTED.

int octave_syscalls::execvp ( const std::string &  file,
const string_vector argv 
)
static

Definition at line 77 of file oct-syscalls.cc.

Referenced by execvp(), Fexec(), and popen2().

int octave_syscalls::execvp ( const std::string &  file,
const string_vector args,
std::string &  msg 
)
static
pid_t octave_syscalls::fork ( std::string &  msg)
static

Definition at line 108 of file oct-syscalls.cc.

References NOT_SUPPORTED.

Referenced by Ffork(), popen2(), and vfork().

gid_t octave_syscalls::getegid ( void  )
static

Definition at line 193 of file oct-syscalls.cc.

Referenced by Fgetegid().

uid_t octave_syscalls::geteuid ( void  )
static

Definition at line 213 of file oct-syscalls.cc.

Referenced by Fgeteuid().

gid_t octave_syscalls::getgid ( void  )
static

Definition at line 183 of file oct-syscalls.cc.

Referenced by Fgetgid().

pid_t octave_syscalls::getpgrp ( std::string &  msg)
static

Definition at line 146 of file oct-syscalls.cc.

References NOT_SUPPORTED.

Referenced by Fgetpgrp().

pid_t octave_syscalls::getpid ( void  )
static

Definition at line 163 of file oct-syscalls.cc.

Referenced by Fgetpid().

pid_t octave_syscalls::getppid ( void  )
static

Definition at line 173 of file oct-syscalls.cc.

Referenced by Fgetppid().

uid_t octave_syscalls::getuid ( void  )
static
int octave_syscalls::kill ( pid_t  pid,
int  sig 
)
static

Definition at line 275 of file oct-syscalls.cc.

Referenced by Fkill(), and kill().

int octave_syscalls::kill ( pid_t  pid,
int  sig,
std::string &  msg 
)
static

Definition at line 282 of file oct-syscalls.cc.

References kill(), and NOT_SUPPORTED.

int octave_syscalls::pipe ( int fildes)
static

Definition at line 223 of file oct-syscalls.cc.

Referenced by Fpipe(), pipe(), and popen2().

int octave_syscalls::pipe ( int fildes,
std::string &  msg 
)
static

Definition at line 230 of file oct-syscalls.cc.

References NOT_SUPPORTED, and pipe().

pid_t octave_syscalls::popen2 ( const std::string &  cmd,
const string_vector args,
bool  sync_mode,
int fildes 
)
static

Definition at line 301 of file oct-syscalls.cc.

References interactive.

Referenced by Fpopen2(), and popen2().

pid_t octave_syscalls::popen2 ( const std::string &  cmd,
const string_vector args,
bool  sync_mode,
int fildes,
std::string &  msg 
)
static

Definition at line 310 of file oct-syscalls.cc.

References interactive, and popen2().

pid_t octave_syscalls::popen2 ( const std::string &  cmd,
const string_vector args,
bool  sync_mode,
int fildes,
std::string &  msg,
bool interactive 
)
static

Definition at line 318 of file oct-syscalls.cc.

References dup2(), execvp(), fork(), octave_fcntl(), pipe(), and STDIN_FILENO.

pid_t octave_syscalls::vfork ( std::string &  msg)
static

Definition at line 125 of file oct-syscalls.cc.

References fork(), and NOT_SUPPORTED.

pid_t octave_syscalls::waitpid ( pid_t  pid,
int status,
int  options 
)
static
pid_t octave_syscalls::waitpid ( pid_t  pid,
int status,
int  options,
std::string &  msg 
)
static

Definition at line 256 of file oct-syscalls.cc.

References NOT_SUPPORTED, and octave_waitpid().


The documentation for this struct was generated from the following files: