23 #if ! defined (octave_oct_syscalls_h) 24 #define octave_oct_syscalls_h 1 26 #include "octave-config.h" 32 #include <sys/types.h> 38 extern OCTAVE_API
int dup2 (
int,
int);
51 extern OCTAVE_API pid_t
getpid (
void);
53 extern OCTAVE_API pid_t
getppid (
void);
55 extern OCTAVE_API gid_t
getgid (
void);
57 extern OCTAVE_API gid_t
getegid (
void);
59 extern OCTAVE_API uid_t
getuid (
void);
61 extern OCTAVE_API uid_t
geteuid (
void);
63 extern OCTAVE_API
int pipe (
int *);
66 extern OCTAVE_API pid_t
waitpid (pid_t,
int *status,
int);
71 extern OCTAVE_API
int wcoredump (
int status);
75 extern OCTAVE_API
bool wifexited (
int status);
79 extern OCTAVE_API
bool wifstopped (
int status);
83 extern OCTAVE_API
int wnohang (
void);
85 extern OCTAVE_API
int wstopsig (
int status);
87 extern OCTAVE_API
int wtermsig (
int status);
91 extern OCTAVE_API
int kill (pid_t,
int);
94 extern OCTAVE_API pid_t
97 extern OCTAVE_API pid_t
101 extern OCTAVE_API
int fcntl (
int,
int,
long);
106 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) 108 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::popen2' instead")
111 bool sync_mode,
int *filedes)
116 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::popen2' instead")
119 bool sync_mode,
int *filedes,
std::
string& msg)
124 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::popen2' instead")
127 bool sync_mode,
int *filedes,
std::
string& msg,
int dup2(int old_fd, int new_fd)
int fcntl(int fd, int cmd, long arg)
int kill(pid_t pid, int sig)
bool wifstopped(int status)
pid_t octave_popen2(const char *cmd, char *const *args, bool sync_mode, int *fildes, const char **errmsg)
bool wifsignaled(int status)
pid_t waitpid(pid_t pid, int *status, int options)
int wexitstatus(int status)
int wcoredump(int status)
bool wifexited(int status)
bool wifcontinued(int status)
int execvp(const std::string &file, const string_vector &argv)
pid_t fork(std::string &msg)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
pid_t getpgrp(std::string &msg)
pid_t vfork(std::string &msg)
pid_t popen2(const std::string &cmd, const string_vector &args, bool sync_mode, int *fildes)