Files | |
file | vfile.c |
VFile core file. | |
Functions | |
l_long | file_get_mlong (PFile f) |
Reads a long in motorola format from a file stream. | |
void | FreeFileInfo (PFileInfo o) |
Free a File Information. | |
PList | ListDir (l_text Dir, l_uchar Attrib) |
List a directory. | |
PList | ListDir2 (PFileInfo fi, l_uchar Attrib) |
List a directory. | |
PFile | FileOpen (l_text File, l_text Mode) |
Open a file stream. | |
PFile | FileOpen2 (PFileInfo fi, l_text Mode) |
Open a file stream from of FileInfo reference. | |
void | FileClose (PFile f) |
Close a file stream. | |
l_int | FileEOF (PFile f) |
Determines if pointer is at the end of the file. | |
l_int | FileRead (void *o, l_ulong n, l_ulong s, PFile f) |
Read data from a file stream and store it to memory. | |
l_int | FileWrite (void *o, l_ulong n, l_ulong s, PFile f) |
Write data to a file stream from memory. | |
l_text | FileGets (l_text s, l_int n, PFile f) |
Read a line form a file buffer. | |
l_bool | FileWriteBinString (PFile f, l_text Txt) |
Write a string to a file stream in binary mode. | |
l_text | FileReadBinString (PFile f) |
Read a string from a file stream in binary mode written by FileWriteBinString. | |
PFileInfo | FileGetInfo (l_text File) |
Get a File Information from a file. | |
l_bool | FileSetAttributes (l_text File, l_uchar Attrib) |
Change a file attributes. | |
l_text | GetPathParent (l_text dir) |
Determines the parent of a path. | |
l_bool | MakeDir (l_text Path) |
Creates a directory. | |
l_text | ResolveFileName (l_text File) |
Clean a path. | |
int | GSSystemVFSInstall (void) |
NAME: GSSystemVFSInstall DESCRIPTION: Installs the VFS, is called during kernel setup. |
Most standart functions are provided but under an unuasual name. (fread becomes FileRead)
|
Reads a long in motorola format from a file stream.
|
|
Close a file stream.
|
|
Determines if pointer is at the end of the file.
|
|
Get a File Information from a file.
|
|
Read a line form a file buffer. Stops if buffer is full or when a end of line or end of file is reached.
|
|
Open a file stream.
|
|
Open a file stream from of FileInfo reference.
|
|
Read data from a file stream and store it to memory. Reads n*s bytes.
|
|
Read a string from a file stream in binary mode written by FileWriteBinString.
|
|
Change a file attributes.
|
|
Write data to a file stream from memory. Write n*s bytes.
|
|
Write a string to a file stream in binary mode. The string can be read by FileReadBinString.
|
|
Free a File Information.
|
|
Determines the parent of a path. Path should be an absolute one (exemple : "/c/my files/stuff")
|
|
List a directory.
|
|
List a directory.
|
|
Creates a directory.
|
|
Clean a path. Removes and solve the "/./", "/../", "//"
|