2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
17 // Where can I put this? I found the occurence of the same code
18 // three/four times. Don't you think it better to use a macro definition
19 // (an inlined member of some class)?
21 // This should have been a namespace
22 #ifdef CXX_WORKING_NAMESPACES
26 char * getcwd(char * buffer, size_t size);
28 int chdir(char const * name);
29 /// Returns false it it fails
30 bool rename(char const * from, char const * to);
31 /// Returns false it it fails
32 bool copy(string const & from, string const & to);
33 /// generates a checksum
34 unsigned long sum(char const * file);
35 /// returns a date string (not used currently)
37 /// returns the name of the user (not used currently)
38 string const getUserName();
40 int kill(long int pid, int sig);
44 int mkdir(char const * pathname, unsigned long int mode);
46 int putenv(char const * str);
52 static char * getcwd(char * buffer, size_t size);
54 static int chdir(char const * name);
55 /// Returns false it it fails
56 static bool rename(char const * from, char const * to);
57 /// Returns false it it fails
58 static bool copy(string const & from, string const & to);
59 /// generates a checksum
60 static unsigned long sum(char const * file);
61 /// returns a date string (not used currently)
63 /// returns the name of the user (not used currently)
64 static string const getUserName();
66 static int kill(long int pid, int sig);
70 static int mkdir(char const * pathname, unsigned long int mode);
72 static int putenv(char const * str);
74 #endif // CXX_WORKING_NAMESPACES