Browse Source

fs_openat.hpp

toml4
Antonio SJ Musumeci 11 months ago
parent
commit
287efc5923
  1. 15
      src/fs_openat.hpp

15
src/fs_openat.hpp

@ -38,4 +38,19 @@ namespace fs
return ((rv == -1) ? -errno : rv);
}
static
inline
int
openat(const int dirfd_,
const char *pathname_,
const int flags_,
const mode_t mode_)
{
int rv;
rv = ::openat(dirfd_,pathname_,flags_);
return ((rv == -1) ? -errno : rv);
}
}
Loading…
Cancel
Save