26 #if ! defined (octave_oct_syscalls_h)
27 #define octave_oct_syscalls_h 1
29 #include "octave-config.h"
35 #include <sys/types.h>
41 extern OCTAVE_API
int dup2 (
int,
int);
42 extern OCTAVE_API
int dup2 (
int,
int, std::string&);
48 extern OCTAVE_API pid_t
fork (std::string&);
50 extern OCTAVE_API pid_t
vfork (std::string&);
52 extern OCTAVE_API pid_t
getpgrp (std::string&);
54 extern OCTAVE_API pid_t
getpid (
void);
56 extern OCTAVE_API pid_t
getppid (
void);
58 extern OCTAVE_API gid_t
getgid (
void);
60 extern OCTAVE_API gid_t
getegid (
void);
62 extern OCTAVE_API uid_t
getuid (
void);
64 extern OCTAVE_API uid_t
geteuid (
void);
66 extern OCTAVE_API
int pipe (
int *);
67 extern OCTAVE_API
int pipe (
int *, std::string&);
69 extern OCTAVE_API pid_t
waitpid (pid_t,
int *status,
int);
70 extern OCTAVE_API pid_t
waitpid (pid_t,
int *status,
int, std::string&);
74 extern OCTAVE_API
int wcoredump (
int status);
78 extern OCTAVE_API
bool wifexited (
int status);
82 extern OCTAVE_API
bool wifstopped (
int status);
86 extern OCTAVE_API
int wnohang (
void);
88 extern OCTAVE_API
int wstopsig (
int status);
90 extern OCTAVE_API
int wtermsig (
int status);
94 extern OCTAVE_API
int kill (pid_t,
int);
95 extern OCTAVE_API
int kill (pid_t,
int, std::string&);
97 extern OCTAVE_API pid_t
100 extern OCTAVE_API pid_t
104 extern OCTAVE_API
int fcntl (
int,
int,
long);
105 extern OCTAVE_API
int fcntl (
int,
int,
long, std::string&);
int wexitstatus(int status)
pid_t getpgrp(std::string &msg)
bool wifstopped(int status)
pid_t popen2(const std::string &cmd, const string_vector &args, bool sync_mode, int *fildes)
int execvp(const std::string &file, const string_vector &argv)
bool wifsignaled(int status)
int kill(pid_t pid, int sig)
pid_t waitpid(pid_t pid, int *status, int options)
bool wifcontinued(int status)
int fcntl(int fd, int cmd, long arg)
int dup2(int old_fd, int new_fd)
bool wifexited(int status)
int wcoredump(int status)
pid_t fork(std::string &msg)
pid_t vfork(std::string &msg)