00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_syscalls_h)
00024 #define octave_syscalls_h 1
00025
00026 #include <string>
00027
00028 class string_vector;
00029
00030 #ifdef HAVE_SYS_TYPES_H
00031 #include <sys/types.h>
00032 #endif
00033
00034 struct
00035 octave_syscalls
00036 {
00037 static int dup2 (int, int);
00038 static int dup2 (int, int, std::string&);
00039
00040 static int execvp (const std::string&, const string_vector&);
00041 static int execvp (const std::string&, const string_vector&, std::string&);
00042
00043 static int fcntl (int, int, long);
00044 static int fcntl (int, int, long, std::string&);
00045
00046 static pid_t fork (std::string&);
00047 static pid_t vfork (std::string&);
00048
00049 static pid_t getpgrp (std::string&);
00050
00051 static pid_t getpid (void);
00052 static pid_t getppid (void);
00053
00054 static gid_t getgid (void);
00055 static gid_t getegid (void);
00056
00057 static uid_t getuid (void);
00058 static uid_t geteuid (void);
00059
00060 static int pipe (int *);
00061 static int pipe (int *, std::string&);
00062
00063 static pid_t waitpid (pid_t, int);
00064 static pid_t waitpid (pid_t, int, std::string&);
00065
00066 static int kill (pid_t, int);
00067 static int kill (pid_t, int, std::string&);
00068 };
00069
00070 #endif
00071
00072
00073
00074
00075
00076