1 // os.h copyright "Ruurd A. Reitsma" <R.A.Reitsma@wbmt.tudelft.nl>
12 /// wrap OS specific stuff
16 UNIX, // Do we have to distinguish sh and csh?
20 // do some work just once
21 void init(int * argc, char ** argv[]);
22 // returns path of LyX binary
24 // returns name of LyX binary
26 // system_tempdir actually doesn't belong here
27 // I put it here only to avoid a global variable.
28 void setTmpDir(string const & p);
32 string current_root();
36 string::size_type common_path(string const & p1, string const & p2);
37 // no-op on UNIX, '\\'->'/' on OS/2 and Win32, ':'->'/' on MacOS, etc.
38 string slashify_path(string const & p);
39 // converts a host OS path to unix style
40 string external_path(string const & p);
41 // converts a unix path to host OS style
42 string internal_path(string const & p);
44 bool is_absolute_path(string const & p);
45 // returns a string suitable to be passed to popen when
47 char const * popen_read_mode();
49 void warn(string const & mesg);