4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Ruurd A. Reitsma
9 * Full author contact details are available in file CREDITS.
18 /// wrap OS specific stuff
25 UNIX, // Do we have to distinguish sh and csh?
29 // do some work just once
30 void init(int * argc, char ** argv[]);
31 // returns path of LyX binary
32 std::string binpath();
33 // returns name of LyX binary
34 std::string binname();
36 void setTmpDir(std::string const & p);
38 std::string getTmpDir();
40 std::string current_root();
44 std::string::size_type common_path(std::string const & p1, std::string const & p2);
45 // no-op on UNIX, '\\'->'/' on OS/2 and Win32, ':'->'/' on MacOS, etc.
46 std::string slashify_path(std::string const & p);
47 // converts a host OS path to unix style
48 std::string external_path(std::string const & p);
49 // converts a unix path to host OS style
50 std::string internal_path(std::string const & p);
52 bool is_absolute_path(std::string const & p);
53 // returns a string suitable to be passed to popen when
55 char const * popen_read_mode();
57 void warn(std::string const & mesg);
60 } // namespace support