Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
file.cpp File Reference
#include "precompiled.h"
#include "lib/file/file.h"
#include "lib/file/common/file_stats.h"
Include dependency graph for file.cpp:

Functions

 STATUS_ADD_DEFINITIONS (fileStatusDefinitions)
 
Status FileOpen (const OsPath &pathname, int oflag)
 
void FileClose (int &fd)
 

Variables

static const StatusDefinition fileStatusDefinitions []
 

Function Documentation

◆ FileClose()

void FileClose ( int &  fd)

◆ FileOpen()

Status FileOpen ( const OsPath pathname,
int  oflag 
)

◆ STATUS_ADD_DEFINITIONS()

STATUS_ADD_DEFINITIONS ( fileStatusDefinitions  )

Variable Documentation

◆ fileStatusDefinitions

const StatusDefinition fileStatusDefinitions[]
static
Initial value:
= {
{ ERR::FILE_ACCESS, L"Insufficient access rights to open file", EACCES },
{ ERR::FILE_NOT_FOUND, L"No such file or directory", ENOENT }
}
const Status FILE_ACCESS
Definition: file.h:35
const Status FILE_NOT_FOUND
Definition: file.h:36