Skip to content

Commit 08d1eb1

Browse files
POSIX File and System fixes
1 parent 06112d2 commit 08d1eb1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/nbl/system/ISystemPOSIX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ISystemPOSIX : public ISystem
1313
class CCaller final : public ISystem::ICaller
1414
{
1515
public:
16-
core::smart_refctd_ptr<IFile> createFile_impl(const std::filesystem::path& filename, core::bitflag<IFile::E_CREATE_FLAGS> flags) override final;
16+
core::smart_refctd_ptr<ISystemFile> createFile(const std::filesystem::path& filename, const core::bitflag<IFile::E_CREATE_FLAGS> flags) override;
1717
};
1818

1919
ISystemPOSIX() : ISystem(core::make_smart_refctd_ptr<CCaller>(this)) {}

src/nbl/system/CFilePOSIX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CFilePOSIX::CFilePOSIX(
1414
void* const _mappedPtr,
1515
const size_t _size,
1616
const native_file_handle_t _native
17-
) : IFile(std::move(sys),std::move(_filename),_flags,_mappedPtr),
17+
) : ISystemFile(std::move(sys),std::move(_filename),_flags,_mappedPtr),
1818
m_size(_size), m_native(_native)
1919
{
2020
}

src/nbl/system/ISystemPOSIX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using namespace nbl::system;
99
#include <sys/mman.h>
1010
#include <sys/stat.h>
1111

12-
core::smart_refctd_ptr<ISystemFile> ISystemPOSIX::CCaller::createFile_impl(const std::filesystem::path& filename, const core::bitflag<IFile::E_CREATE_FLAGS> flags)
12+
core::smart_refctd_ptr<ISystemFile> ISystemPOSIX::CCaller::createFile(const std::filesystem::path& filename, const core::bitflag<IFile::E_CREATE_FLAGS> flags)
1313
{
1414
const bool writeAccess = flags.value&IFile::ECF_WRITE;
1515
int createFlags = O_LARGEFILE|(writeAccess ? O_CREAT:0);

0 commit comments

Comments
 (0)