#include "support/FileName.h"
#include "support/lstrings.h"
+#include <limits.h>
+#include <stdlib.h>
+
#ifdef __APPLE__
#include <Carbon/Carbon.h>
#endif
}
+bool is_terminal(io_channel channel)
+{
+ return isatty(channel);
+}
+
+
shell_type shell()
{
return UNIX;
#endif
}
+
+string real_path(string const & path)
+{
+ char rpath[PATH_MAX + 1];
+ char * result = realpath(path.c_str(), rpath);
+ return FileName::fromFilesystemEncoding(result ? rpath : path).absFilename();
+}
+
} // namespace os
} // namespace support
} // namespace lyx