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 // Use a namespace if we can, a struct otherwise
22 #ifdef CXX_WORKING_NAMESPACES
26 #define OPT_STATIC static
30 OPT_STATIC char * getcwd(char * buffer, size_t size);
32 OPT_STATIC int chdir(string const & name);
33 /// Returns false if it fails
34 OPT_STATIC bool rename(string const & from, string const & to);
35 /// Returns false it it fails
36 OPT_STATIC bool copy(string const & from, string const & to);
37 /// generates a checksum
38 OPT_STATIC unsigned long sum(string const & file);
39 /// returns a date string (not used currently)
40 OPT_STATIC char * date();
41 /// returns the name of the user (not used currently)
42 OPT_STATIC string const getUserName();
44 OPT_STATIC int kill(int pid, int sig);
46 OPT_STATIC void abort();
48 OPT_STATIC int mkdir(string const & pathname, unsigned long int mode);
50 OPT_STATIC int putenv(char const * str);
52 OPT_STATIC int unlink(string const & file);
54 OPT_STATIC int rmdir(string const & file);
56 OPT_STATIC int atoi(string const & nstr);
57 #ifdef CXX_WORKING_NAMESPACES
65 #endif /* LYX_LIB_H */