// (an inlined member of some class)?
// This should have been a namespace
+#ifdef CXX_WORKING_NAMESPACES
+namespace lyx {
+ ///
+ char * getcwd(char * buffer, size_t size);
+ ///
+ int chdir(char const * name);
+ /// generates a checksum
+ unsigned long sum(char const * file);
+ /// returns a date string (not used currently)
+ char * date();
+ /// returns the name of the user (not used currently)
+ string getUserName();
+ ///
+ int kill(long int pid, int sig);
+ ///
+ void abort();
+ ///
+ int mkdir(char const * pathname, unsigned long int mode);
+ ///
+ int putenv(char const * str);
+}
+#else
struct lyx {
///
static char * getcwd(char * buffer, size_t size);
///
static int chdir(char const * name);
- /// generates an checksum
+ /// generates a checksum
static unsigned long sum(char const * file);
- /// returns a date string
+ /// returns a date string (not used currently)
static char * date();
- ///
+ /// returns the name of the user (not used currently)
static string getUserName();
///
- static int kill(int pid, int sig);
+ static int kill(long int pid, int sig);
///
static void abort();
+ ///
+ static int mkdir(char const * pathname, unsigned long int mode);
+ ///
+ static int putenv(char const * str);
};
+#endif // CXX_WORKING_NAMESPACES
#endif