+int lstat(const Path &fn, struct stat &st)
+{
+#ifdef WIN32
+ return stat(fn, st);
+#else
+ return ::lstat(fn.str().c_str(), &st);
+#endif
+}
+
+struct stat lstat(const Path &fn)
+{
+ struct stat st;
+ if(lstat(fn, st)==-1)
+ throw SystemError("lstat failed", errno);
+ return st;
+}
+