23 #if !defined (octave_oct_syscalls_h)
24 #define octave_oct_syscalls_h 1
30 #include <sys/types.h>
36 static int dup2 (
int,
int);
37 static int dup2 (
int,
int, std::string&);
40 static int execvp (
const std::string&,
const string_vector&, std::string&);
42 static pid_t fork (std::string&);
43 static pid_t vfork (std::string&);
45 static pid_t getpgrp (std::string&);
47 static pid_t getpid (
void);
48 static pid_t getppid (
void);
50 static gid_t getgid (
void);
51 static gid_t getegid (
void);
53 static uid_t getuid (
void);
54 static uid_t geteuid (
void);
56 static int pipe (
int *);
57 static int pipe (
int *, std::string&);
59 static pid_t waitpid (pid_t,
int *status,
int);
60 static pid_t waitpid (pid_t,
int *status,
int, std::string&);
62 static int kill (pid_t,
int);
63 static int kill (pid_t,
int, std::string&);
65 static pid_t popen2 (
const std::string&,
const string_vector&,
bool,
int *);
66 static pid_t popen2 (
const std::string&,
const string_vector&,
bool,
int *,
68 static pid_t popen2 (
const std::string&,
const string_vector&,
bool,
int *,
75 extern OCTAVE_API
int octave_fcntl (
int,
int,
long, std::string&);
OCTAVE_API int octave_fcntl(int, int, long)