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.
11 * wrap OS-specific stuff
26 UNIX, // Do we have to distinguish sh and csh?
30 // do some work just once
31 void init(int argc, char * argv[]);
32 // returns path of LyX binary
33 std::string const & binpath();
34 // returns name of LyX binary
35 std::string const & binname();
37 void setTmpDir(std::string const & p);
39 std::string const & getTmpDir();
40 // Returns the user's home directory ($HOME in the unix world).
41 std::string const & homepath();
42 // Returns the name of the NULL device (/dev/null, null).
43 std::string const & nulldev();
45 std::string current_root();
49 std::string::size_type common_path(std::string const & p1, std::string const & p2);
50 // no-op on UNIX, '\\'->'/' on OS/2 and Win32, ':'->'/' on MacOS, etc.
51 std::string slashify_path(std::string const & p);
52 // Converts a unix style path to host OS style.
53 std::string external_path(std::string const & p);
54 // Converts a host OS style path to unix style.
55 std::string internal_path(std::string const & p);
57 bool is_absolute_path(std::string const & p);
58 // returns a string suitable to be passed to popen when
60 char const * popen_read_mode();
62 void warn(std::string const & mesg);
65 } // namespace support