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