GNU Octave 11.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
oct-syscalls.h File Reference
#include "octave-config.h"
#include <string>
#include <sys/types.h>

Go to the source code of this file.

Functions

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

Function Documentation

◆ dup2() [1/2]

int dup2 ( int  old_fd,
int  new_fd 
)
extern

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

Referenced by octave_dup2_wrapper(), and octave_popen2().

◆ dup2() [2/2]

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

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

References octave_dup2_wrapper().

◆ execvp() [1/2]

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

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

Referenced by octave_execvp_wrapper(), and octave_popen2().

◆ execvp() [2/2]

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

◆ fcntl() [1/2]

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

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

Referenced by octave_fcntl_wrapper(), and octave_popen2().

◆ fcntl() [2/2]

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

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

References octave_fcntl_wrapper().

◆ fork()

pid_t fork ( std::string &  msg)
extern

◆ getegid()

gid_t getegid ( )
extern

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

References octave_getegid_wrapper().

Referenced by octave_getegid_wrapper().

◆ geteuid()

uid_t geteuid ( )
extern

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

References octave_geteuid_wrapper().

Referenced by octave_geteuid_wrapper().

◆ getgid()

gid_t getgid ( )
extern

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

References octave_getgid_wrapper().

Referenced by octave_getgid_wrapper().

◆ getpgrp()

pid_t getpgrp ( std::string &  msg)
extern

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

References octave_getpgrp_wrapper().

Referenced by octave_getpgrp_wrapper().

◆ getpid()

pid_t getpid ( )
extern

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

References octave_getpid_wrapper().

Referenced by octave_getpid_wrapper().

◆ getppid()

pid_t getppid ( )
extern

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

References octave_getppid_wrapper().

Referenced by octave_getppid_wrapper().

◆ getuid()

uid_t getuid ( )
extern

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

References octave_getuid_wrapper().

Referenced by octave_getuid_wrapper().

◆ kill() [1/2]

int kill ( pid_t  pid,
int  sig 
)
extern

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

Referenced by octave_kill_wrapper().

◆ kill() [2/2]

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

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

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

◆ pipe() [1/2]

int pipe ( int fildes)
extern

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

Referenced by octave_pipe_wrapper(), and octave_popen2().

◆ pipe() [2/2]

int pipe ( int fildes,
std::string &  msg 
)
extern

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

References octave_pipe_wrapper().

◆ popen2() [1/2]

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

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

◆ popen2() [2/2]

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

◆ vfork()

pid_t vfork ( std::string &  msg)
extern

◆ waitpid() [1/2]

pid_t waitpid ( pid_t  pid,
int status,
int  options 
)
extern

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

Referenced by octave_popen2(), and octave_waitpid_wrapper().

◆ waitpid() [2/2]

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

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

References octave_waitpid_wrapper().

◆ wcontinue()

int wcontinue ( )
extern

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

References octave_wcontinue_wrapper().

◆ wcoredump()

int wcoredump ( int  status)
extern

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

References octave_wcoredump_wrapper().

◆ wexitstatus()

int wexitstatus ( int  status)
extern

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

References octave_wexitstatus_wrapper().

◆ wifcontinued()

bool wifcontinued ( int  status)
extern

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

References octave_wifcontinued_wrapper().

◆ wifexited()

bool wifexited ( int  status)
extern

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

References octave_wifexited_wrapper().

◆ wifsignaled()

bool wifsignaled ( int  status)
extern

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

References octave_wifsignaled_wrapper().

◆ wifstopped()

bool wifstopped ( int  status)
extern

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

References octave_wifstopped_wrapper().

◆ wnohang()

int wnohang ( )
extern

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

References octave_wnohang_wrapper().

◆ wstopsig()

int wstopsig ( int  status)
extern

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

References octave_wstopsig_wrapper().

◆ wtermsig()

int wtermsig ( int  status)
extern

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

References octave_wtermsig_wrapper().

◆ wuntraced()

int wuntraced ( )
extern

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

References octave_wuntraced_wrapper().