Browse Source

restructure osx fallocate

pull/384/head
Antonio SJ Musumeci 9 years ago
parent
commit
b0fb5187c4
  1. 6
      src/fs_fallocate_osx.icpp

6
src/fs_fallocate_osx.icpp

@ -20,8 +20,6 @@
#include "fs_fallocate.hpp"
#include "fs_base_ftruncate.hpp"
namespace fs
{
static
int
_fallocate_core(const int fd,
@ -44,6 +42,8 @@ namespace fs
return ::ftruncate(fd,(offset+len));
}
namespace fs
{
int
fallocate(const int fd,
const int mode,
@ -53,6 +53,6 @@ namespace fs
if(mode)
return (errno=EOPNOTSUPP,-1);
return _fallocate_core(fd,offset,len);
return ::_fallocate_core(fd,offset,len);
}
}
Loading…
Cancel
Save