-/* $Id$
-
-This file is part of libmspfs
-Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include <cerrno>
#ifdef WIN32
#include <io.h>
#endif
-#include <msp/core/except.h>
+#include <msp/core/systemerror.h>
#include "path.h"
#include "stat.h"
{
struct stat st;
if(stat(fn, st)==-1)
- throw SystemError("stat failed", errno);
+ throw system_error("stat");
return st;
}
{
struct stat st;
if(lstat(fn, st)==-1)
- throw SystemError("lstat failed", errno);
+ throw system_error("lstat");
return st;
}