Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
wfilesystem.cpp File Reference
#include "precompiled.h"
#include "lib/sysdep/filesystem.h"
#include "lib/debug.h"
#include "lib/sysdep/os/win/wutil.h"
#include "lib/sysdep/os/win/wposix/waio.h"
#include "lib/sysdep/os/win/wposix/wtime_internal.h"
#include "lib/sysdep/os/win/wposix/crt_posix.h"
#include <atomic>
Include dependency graph for wfilesystem.cpp:

Classes

struct  WDIR
 

Functions

static WDIRwdir_alloc ()
 
static void wdir_free (WDIR *d)
 
static bool IsValidDirectory (const OsPath &path)
 
WDIRwopendir (const OsPath &path)
 
struct wdirentwreaddir (WDIR *d)
 
int wreaddir_stat_np (WDIR *d, struct stat *s)
 
int wclosedir (WDIR *d)
 
int wopen (const OsPath &pathname, int oflag)
 
int wopen (const OsPath &pathname, int oflag, mode_t mode)
 
int wclose (int fd)
 
int read (int fd, void *buf, size_t nbytes)
 
int write (int fd, void *buf, size_t nbytes)
 
off_t lseek (int fd, off_t ofs, int whence)
 
int wtruncate (const OsPath &pathname, off_t length)
 
int wunlink (const OsPath &pathname)
 
int wrmdir (const OsPath &path)
 
OsPath wrealpath (const OsPath &pathname)
 
static int ErrnoFromCreateDirectory ()
 
int wmkdir (const OsPath &path, mode_t mode)
 
int wstat (const OsPath &pathname, struct stat *buf)
 

Variables

static WDIR wdir_storage
 
static std::atomic< bool > wdir_in_use { false }
 

Function Documentation

◆ ErrnoFromCreateDirectory()

static int ErrnoFromCreateDirectory ( )
static

◆ IsValidDirectory()

static bool IsValidDirectory ( const OsPath path)
static

◆ lseek()

off_t lseek ( int  fd,
off_t  ofs,
int  whence 
)

◆ read()

int read ( int  fd,
void *  buf,
size_t  nbytes 
)

◆ wclose()

int wclose ( int  fd)

◆ wclosedir()

int wclosedir ( WDIR d)

◆ wdir_alloc()

static WDIR * wdir_alloc ( )
inlinestatic

◆ wdir_free()

static void wdir_free ( WDIR d)
inlinestatic

◆ wmkdir()

int wmkdir ( const OsPath path,
mode_t  mode 
)

◆ wopen() [1/2]

int wopen ( const OsPath pathname,
int  oflag 
)

◆ wopen() [2/2]

int wopen ( const OsPath pathname,
int  oflag,
mode_t  mode 
)

◆ wopendir()

WDIR * wopendir ( const OsPath path)

◆ wreaddir()

struct wdirent * wreaddir ( WDIR d)

◆ wreaddir_stat_np()

int wreaddir_stat_np ( WDIR d,
struct stat *  s 
)

◆ wrealpath()

OsPath wrealpath ( const OsPath pathname)

◆ write()

int write ( int  fd,
void *  buf,
size_t  nbytes 
)

◆ wrmdir()

int wrmdir ( const OsPath path)

◆ wstat()

int wstat ( const OsPath pathname,
struct stat *  buf 
)

◆ wtruncate()

int wtruncate ( const OsPath pathname,
off_t  length 
)

◆ wunlink()

int wunlink ( const OsPath pathname)

Variable Documentation

◆ wdir_in_use

std::atomic<bool> wdir_in_use { false }
static

◆ wdir_storage

WDIR wdir_storage
static