TRACE compile fixes, other fixes, and it basically works! It says HELLO.
This commit is contained in:
parent
38200cc6a5
commit
068d311ecc
12 changed files with 140 additions and 33 deletions
|
@ -46,7 +46,9 @@
|
|||
#include <Windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
|
@ -90,6 +92,15 @@ public:
|
|||
}
|
||||
static inline bool rm(const std::string &path) throw() { return rm(path.c_str()); }
|
||||
|
||||
static inline bool mkdir(const char *path)
|
||||
throw()
|
||||
{
|
||||
if (::mkdir(path,0755) != 0)
|
||||
return (errno == EEXIST);
|
||||
return true;
|
||||
}
|
||||
static inline bool mkdir(const std::string &path) throw() { return OSUtils::mkdir(path.c_str()); }
|
||||
|
||||
/**
|
||||
* List a directory's contents
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue