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_liboctave_sysdep_h)
00024 #define octave_liboctave_sysdep_h 1
00025
00026 #include <string>
00027
00028 #include "lo-ieee.h"
00029 class string_vector;
00030
00031 extern std::string octave_getcwd (void);
00032
00033 extern int octave_chdir (const std::string&);
00034
00035 #if ! defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H)
00036 extern int gethostname (char *, int);
00037 #endif
00038
00039 #if defined (__WIN32__) && ! defined (__CYGWIN__)
00040 extern pid_t octave_popen2 (const std::string&, const string_vector&,
00041 bool, int *, std::string&);
00042 #endif
00043
00044 #if defined (_MSC_VER) && ! defined (HAVE_DIRENT_H)
00045
00046
00047
00048
00049
00050
00051 struct direct
00052 {
00053 char *d_name;
00054 };
00055
00056 typedef struct __DIR DIR;
00057
00058 extern DIR* opendir (const char *name);
00059 extern void rewinddir (DIR *d);
00060 extern void closedir (DIR *d);
00061 extern struct direct *readdir (DIR *d);
00062
00063 #endif
00064
00065 #endif
00066
00067
00068
00069
00070
00071