47 const char* mode,
int* error);
164 int* error = NULL) :
Device(
175 int* error = NULL) :
Device(
The root namespace for WFIO.
Definition: bin.h:879
WFIO_DLL const char * wfio_stdio_deriveMode(wfio_openmode_t mode, int *error)
Obtain an STDIO mode string for the provided mode.
WFIO_DLL wfio_openmode_t wfio_stdio_parseMode(const char *mode, int *error)
Obtain an openmode for the specified STDIO mode string.
#define WFIO_DLL
Mark the symbol as an element of the library.
Definition: host.h:397
#define WFIO_C_BEGIN
Definition: host.h:477
#define WFIO_DLL_FASTCALL
Shorthand for WFIO_DLL WFIO_FASTCALL.
Definition: host.h:425
FileDevice(const char *path, const char *mode, int *error=NULL)
Construct a new FDDevice from a file descriptor.
Definition: file.h:174
WFIO_DLL_FASTCALL int wfio_file_exists(const char *path, int *error)
Determine if path exists.
WFIO_DLL_FASTCALL const char * wfio_file_cwd(char *path, size_t len, int *error)
Obtain the path to the current working directory.
FileDevice(const char *path, ::wfio_openmode_t mode, int *error=NULL)
Construct a new FDDevice from a file descriptor.
Definition: file.h:163
WFIO_DLL int wfio_file_truncate(const char *path, size_t sz, int *error)
Trim the file at path to the specified sz.
A C++ wrapper for a wfio_device_t.
Definition: device.h:783
WFIO_DLL_FASTCALL int wfio_file_unlink(const char *path, int *error)
Remove path from the filesystem.
WFIO_DLL_FASTCALL int wfio_file_cd(const char *path, int *error)
Change the current working directory to path.
#define WFIO_C_END
Definition: host.h:485
A simple, byte-oriented channel.
Definition: device.h:164
WFIO_DLL struct wfio_device_t * wfio_device_open_fileEx(const char *path, wfio_openmode_t mode, int *error)
Open a file located at path using extended syntax.
WFIO_DLL_FASTCALL int wfio_file_rename(const char *src, const char *dest, int *error)
Rename the path supplied by src to dest.
A Device wrapping a file stream.
Definition: file.h:154
WFIO_C_BEGIN WFIO_DLL struct wfio_device_t * wfio_device_open_file(const char *path, const char *mode, int *error)
Open a file located at path.
int wfio_openmode_t
The type corresponding to an openmode.
Definition: iotype.h:103