YAP 7.1.0
vfs

Public Attributes

const char * name
 
uintptr_t vflags
 A text that explains the file system. More...
 
const char * prefix
 the main flags describing the operation of the Fs More...
 
const char * suffix
 
bool(* chDir )(struct vfs *me, const char *s)
 
void *(* open )(struct vfs *, const char *fname, const char *io_mode, int sno)
 operations More...
 
bool(* close )(int sno)
 open an object More...
 
int(* get_char )(int sno)
 close the object More...
 
int(* get_wchar )(int sno)
 get an octet from the stream More...
 
int(* peek_char )(int sno)
 get an octet from the stream More...
 
int(* peek_wchar )(int sno)
 unget an octet from the stream More...
 
int(* put_char )(int sno, int ch)
 unget an octet from the stream More...
 
int(* put_wchar )(int sno, int ch)
 output an octet to the stream More...
 
void(* flush )(int sno)
 output a character to the stream More...
 
int64_t(* seek )(int sno, int64_t offset, int whence)
 flush a stream More...
 
void *(* opendir )(struct vfs *, const char *s)
 jump around the stream More...
 
const char *(* nextdir )(void *d)
 open a directory object, if one exists More...
 
bool(* closedir )(void *d)
 walk to the next entry in a directory object More...
 
bool(* stat )(struct vfs *, const char *s, vfs_stat *)
 close access a directory object More...
 
bool(* isdir )(struct vfs *, const char *s)
 obtain size, age, permissions of a file More...
 
bool(* exists )(struct vfs *, const char *s)
 verify whether is directory More...
 
bool(* chdir )(struct vfs *, const char *s)
 verify whether a file exists More...
 
encoding_t enc
 set working directory (may be virtual) More...
 
YAP_Term(* parsers )(int sno)
 default file encoded More...
 
int(* writers )(int ch, int sno)
 
void * priv
 VFS dep endent area. More...
 
struct vfsnext
 

Detailed Description

Definition at line 74 of file VFS.h.

Member Data Documentation

◆ chdir

bool(* chdir) (struct vfs *, const char *s)

verify whether a file exists

Definition at line 106 of file VFS.h.

◆ chDir

bool(* chDir) (struct vfs *me, const char *s)

Definition at line 80 of file VFS.h.

◆ close

bool(* close) (int sno)

open an object

in this space, usual w,r,a,b flags plus B (store in a buffer)

Definition at line 86 of file VFS.h.

◆ closedir

bool(* closedir) (void *d)

walk to the next entry in a directory object

Definition at line 100 of file VFS.h.

◆ enc

encoding_t enc

set working directory (may be virtual)

Definition at line 108 of file VFS.h.

◆ exists

bool(* exists) (struct vfs *, const char *s)

verify whether is directory

Definition at line 105 of file VFS.h.

◆ flush

void(* flush) (int sno)

output a character to the stream

Definition at line 93 of file VFS.h.

◆ get_char

int(* get_char) (int sno)

close the object

Definition at line 87 of file VFS.h.

◆ get_wchar

int(* get_wchar) (int sno)

get an octet from the stream

Definition at line 88 of file VFS.h.

◆ isdir

bool(* isdir) (struct vfs *, const char *s)

obtain size, age, permissions of a file

Definition at line 104 of file VFS.h.

◆ name

const char* name

Definition at line 75 of file VFS.h.

◆ next

struct vfs* next

Definition at line 115 of file VFS.h.

◆ nextdir

const char *(* nextdir) (void *d)

open a directory object, if one exists

Definition at line 98 of file VFS.h.

◆ open

void *(* open) (struct vfs *, const char *fname, const char *io_mode, int sno)

operations

Definition at line 82 of file VFS.h.

◆ opendir

void *(* opendir) (struct vfs *, const char *s)

jump around the stream

Definition at line 96 of file VFS.h.

◆ parsers

YAP_Term(* parsers) (int sno)

default file encoded

Definition at line 109 of file VFS.h.

◆ peek_char

int(* peek_char) (int sno)

get an octet from the stream

Definition at line 89 of file VFS.h.

◆ peek_wchar

int(* peek_wchar) (int sno)

unget an octet from the stream

Definition at line 90 of file VFS.h.

◆ prefix

const char* prefix

the main flags describing the operation of the Fs

a way to identify a file in this VFS: two special cases, prefix and suffix

Definition at line 78 of file VFS.h.

◆ priv

void* priv

VFS dep endent area.

Definition at line 114 of file VFS.h.

◆ put_char

int(* put_char) (int sno, int ch)

unget an octet from the stream

Definition at line 91 of file VFS.h.

◆ put_wchar

int(* put_wchar) (int sno, int ch)

output an octet to the stream

Definition at line 92 of file VFS.h.

◆ seek

int64_t(* seek) (int sno, int64_t offset, int whence)

flush a stream

Definition at line 94 of file VFS.h.

◆ stat

bool(* stat) (struct vfs *, const char *s, vfs_stat *)

close access a directory object

Definition at line 102 of file VFS.h.

◆ suffix

const char* suffix

Definition at line 79 of file VFS.h.

◆ vflags

uintptr_t vflags

A text that explains the file system.

Definition at line 76 of file VFS.h.

◆ writers

int(* writers) (int ch, int sno)

Definition at line 111 of file VFS.h.


The documentation for this struct was generated from the following file: