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);
30 int chdir(string const & name);
31 /// Returns false it it fails
32 bool rename(char const * from, char const * to);
33 /// Returns false if it fails
34 bool rename(string const & from, string const & to);
35 /// Returns false it it fails
36 bool copy(string const & from, string const & to);
37 /// generates a checksum
38 unsigned long sum(char const * file);
39 /// generates a checksum
40 unsigned long sum(string const & file);
41 /// returns a date string (not used currently)
43 /// returns the name of the user (not used currently)
44 string const getUserName();
46 int kill(long int pid, int sig);
50 int mkdir(string const & pathname, unsigned long int mode);
52 int putenv(char const * str);
54 int unlink(string const & file);
56 int rmdir(string const & file);
58 int atoi(string const & nstr);
64 static char * getcwd(char * buffer, size_t size);
66 static int chdir(char const * name);
68 static int chdir(string const & name);
69 /// Returns false it it fails
70 static bool rename(char const * from, char const * to);
71 /// Returns false if it fails
72 static bool rename(string const & from, string const & to);
73 /// Returns false it it fails
74 static bool copy(string const & from, string const & to);
75 /// generates a checksum
76 static unsigned long sum(char const * file);
77 /// generates a checksum
78 static unsigned long sum(string const & file);
79 /// returns a date string (not used currently)
81 /// returns the name of the user (not used currently)
82 static string const getUserName();
84 static int kill(long int pid, int sig);
88 static int mkdir(string const & pathname, unsigned long int mode);
90 static int putenv(char const * str);
92 int unlink(string const & file);
94 int rmdir(string const & file);
96 int atoi(string const & nstr);
98 #endif // CXX_WORKING_NAMESPACES