GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-syscalls.h File Reference
#include "octave-config.h"
#include <string>
#include <sys/types.h>
Include dependency graph for oct-syscalls.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OCTAVE_API int dup2 (int, int)
 
OCTAVE_API int dup2 (int, int, std::string &)
 
OCTAVE_API int execvp (const std::string &, const string_vector &)
 
OCTAVE_API int execvp (const std::string &, const string_vector &, std::string &)
 
OCTAVE_API int fcntl (int, int, long)
 
OCTAVE_API int fcntl (int, int, long, std::string &)
 
OCTAVE_API pid_t fork (std::string &)
 
OCTAVE_API gid_t getegid (void)
 
OCTAVE_API uid_t geteuid (void)
 
OCTAVE_API gid_t getgid (void)
 
OCTAVE_API pid_t getpgrp (std::string &)
 
OCTAVE_API pid_t getpid (void)
 
OCTAVE_API pid_t getppid (void)
 
OCTAVE_API uid_t getuid (void)
 
OCTAVE_API int kill (pid_t, int)
 
OCTAVE_API int kill (pid_t, int, std::string &)
 
OCTAVE_API int pipe (int *)
 
OCTAVE_API int pipe (int *, std::string &)
 
OCTAVE_API pid_t popen2 (const std::string &, const string_vector &, bool, int *)
 
OCTAVE_API pid_t popen2 (const std::string &, const string_vector &, bool, int *, std::string &)
 
OCTAVE_API pid_t vfork (std::string &)
 
OCTAVE_API pid_t waitpid (pid_t, int *status, int)
 
OCTAVE_API pid_t waitpid (pid_t, int *status, int, std::string &)
 
OCTAVE_API int wcontinue (void)
 
OCTAVE_API int wcoredump (int status)
 
OCTAVE_API int wexitstatus (int status)
 
OCTAVE_API bool wifcontinued (int status)
 
OCTAVE_API bool wifexited (int status)
 
OCTAVE_API bool wifsignaled (int status)
 
OCTAVE_API bool wifstopped (int status)
 
OCTAVE_API int wnohang (void)
 
OCTAVE_API int wstopsig (int status)
 
OCTAVE_API int wtermsig (int status)
 
OCTAVE_API int wuntraced (void)
 

Function Documentation

◆ dup2() [1/2]

◆ dup2() [2/2]

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

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

References octave_dup2_wrapper().

◆ execvp() [1/2]

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

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

Referenced by Fexec(), octave_execvp_wrapper(), and octave_popen2().

◆ execvp() [2/2]

OCTAVE_API int execvp ( const std::string &  file,
const string_vector args,
std::string &  msg 
)

◆ fcntl() [1/2]

OCTAVE_API int fcntl ( int  fd,
int  cmd,
long  arg 
)

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

Referenced by KPty::close(), Ffcntl(), octave_fcntl_wrapper(), octave_popen2(), and KPty::open().

◆ fcntl() [2/2]

OCTAVE_API int fcntl ( int  fd,
int  cmd,
long  arg,
std::string &  msg 
)

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

References octave_fcntl_wrapper().

◆ fork()

OCTAVE_API pid_t fork ( std::string &  msg)

◆ getegid()

OCTAVE_API gid_t getegid ( void  )

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

References octave_getegid_wrapper().

Referenced by Fgetegid(), and octave_getegid_wrapper().

◆ geteuid()

OCTAVE_API uid_t geteuid ( void  )

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

References octave_geteuid_wrapper().

Referenced by KPty::close(), Fgeteuid(), octave_geteuid_wrapper(), and KPty::open().

◆ getgid()

OCTAVE_API gid_t getgid ( void  )

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

References octave_getgid_wrapper().

Referenced by KPty::close(), Fgetgid(), octave_getgid_wrapper(), and KPty::open().

◆ getpgrp()

OCTAVE_API pid_t getpgrp ( std::string &  msg)

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

References octave_getpgrp_wrapper().

Referenced by Fgetpgrp(), and octave_getpgrp_wrapper().

◆ getpid()

OCTAVE_API pid_t getpid ( void  )

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

References octave_getpid_wrapper().

Referenced by Fgetpid(), init_mersenne_twister(), and octave_getpid_wrapper().

◆ getppid()

OCTAVE_API pid_t getppid ( void  )

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

References octave_getppid_wrapper().

Referenced by Fgetppid(), and octave_getppid_wrapper().

◆ getuid()

◆ kill() [1/2]

OCTAVE_API int kill ( pid_t  pid,
int  sig 
)

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

Referenced by Fkill(), and octave_kill_wrapper().

◆ kill() [2/2]

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

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

References NOT_SUPPORTED, octave_have_kill(), and octave_kill_wrapper().

◆ pipe() [1/2]

OCTAVE_API int pipe ( int *  fildes)

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

Referenced by Fpipe(), octave_pipe_wrapper(), octave_popen2(), and procbuf::open().

◆ pipe() [2/2]

OCTAVE_API int pipe ( int *  fildes,
std::string &  msg 
)

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

References octave_pipe_wrapper().

◆ popen2() [1/2]

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

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

Referenced by Fpopen2().

◆ popen2() [2/2]

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

◆ vfork()

OCTAVE_API pid_t vfork ( std::string &  msg)

◆ waitpid() [1/2]

OCTAVE_API pid_t waitpid ( pid_t  pid,
int *  status,
int  options 
)

◆ waitpid() [2/2]

OCTAVE_API pid_t waitpid ( pid_t  pid,
int *  status,
int  options,
std::string &  msg 
)

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

References octave_waitpid_wrapper().

◆ wcontinue()

OCTAVE_API int wcontinue ( void  )

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

References octave_wcontinue_wrapper().

Referenced by FWCONTINUE().

◆ wcoredump()

OCTAVE_API int wcoredump ( int  status)

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

References octave_wcoredump_wrapper().

Referenced by FWCOREDUMP().

◆ wexitstatus()

OCTAVE_API int wexitstatus ( int  status)

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

References octave_wexitstatus_wrapper().

Referenced by Fsystem(), FWEXITSTATUS(), and run_command_and_return_output().

◆ wifcontinued()

OCTAVE_API bool wifcontinued ( int  status)

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

References octave_wifcontinued_wrapper().

Referenced by FWIFCONTINUED().

◆ wifexited()

OCTAVE_API bool wifexited ( int  status)

◆ wifsignaled()

OCTAVE_API bool wifsignaled ( int  status)

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

References octave_wifsignaled_wrapper().

Referenced by FWIFSIGNALED(), and pager_event_handler().

◆ wifstopped()

OCTAVE_API bool wifstopped ( int  status)

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

References octave_wifstopped_wrapper().

Referenced by FWIFSTOPPED().

◆ wnohang()

OCTAVE_API int wnohang ( void  )

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

References octave_wnohang_wrapper().

Referenced by FWNOHANG(), and child_list::wait().

◆ wstopsig()

OCTAVE_API int wstopsig ( int  status)

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

References octave_wstopsig_wrapper().

Referenced by FWSTOPSIG().

◆ wtermsig()

OCTAVE_API int wtermsig ( int  status)

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

References octave_wtermsig_wrapper().

Referenced by FWTERMSIG().

◆ wuntraced()

OCTAVE_API int wuntraced ( void  )

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

References octave_wuntraced_wrapper().

Referenced by FWUNTRACED().