libww libww
WWitch compatibility library for the Wonderful toolchain
Loading...
Searching...
No Matches
_FsIL Struct Reference

#include <indirect.h>

Data Fields

IL super
IL_FUNCTION fent_t __far *(* _entries )(FS fs)
IL_FUNCTION int(* _n_entries )(FS fs)
IL_FUNCTION int(* _getent )(FS fs, int index, fent_t __far *entry)
IL_FUNCTION int(* _findent )(FS fs, const char __far *filename, fent_t __far *entry)
IL_FUNCTION void __far *(* _mmap )(FS fs, const char __far *filename)
IL_FUNCTION int(* _open )(FS fs, const char __far *filename, int mode, int perms)
IL_FUNCTION int(* _close )(int fd)
IL_FUNCTION int(* _read )(int fd, char __far *data, int length)
IL_FUNCTION int(* _write )(int fd, const char __far *data, int length)
IL_FUNCTION long(* _lseek )(int fd, long offset, int whence)
IL_FUNCTION int(* _chmod )(FS fs, const char __far *filename, int mode)
IL_FUNCTION int(* _freeze )(FS fs, const char __far *filename)
IL_FUNCTION int(* _melt )(FS fs, const char __far *filename)
IL_FUNCTION int(* _creat )(FS fs, fent_t __far *entry)
IL_FUNCTION int(* _unlink )(FS fs, const char __far *filename)
IL_FUNCTION int(* _newfs )(FS fs)
IL_FUNCTION int(* _defrag )(FS fs)
IL_FUNCTION unsigned long(* _space )(FS fs)

Detailed Description

Definition at line 91 of file indirect.h.

Field Documentation

◆ _chmod

IL_FUNCTION int(* _chmod) (FS fs, const char __far *filename, int mode)

Definition at line 124 of file indirect.h.

◆ _close

IL_FUNCTION int(* _close) (int fd)

Definition at line 120 of file indirect.h.

◆ _creat

IL_FUNCTION int(* _creat) (FS fs, fent_t __far *entry)

Definition at line 127 of file indirect.h.

◆ _defrag

IL_FUNCTION int(* _defrag) (FS fs)

Re-arrange file system contents to maximize the amount of free space.

The FreyaOS file system architecture, due to being based around NOR flash, does not automatically free space when a file is deleted.

Definition at line 142 of file indirect.h.

◆ _entries

IL_FUNCTION fent_t __far *(* _entries) (FS fs)

Retrieve a pointer to the file system's entry table.

Definition at line 97 of file indirect.h.

◆ _findent

IL_FUNCTION int(* _findent) (FS fs, const char __far *filename, fent_t __far *entry)

Find the entry with a given file name in the file system.

Definition at line 112 of file indirect.h.

◆ _freeze

IL_FUNCTION int(* _freeze) (FS fs, const char __far *filename)

Definition at line 125 of file indirect.h.

◆ _getent

IL_FUNCTION int(* _getent) (FS fs, int index, fent_t __far *entry)

Retrieve the entry with a given index from the file system.

Definition at line 107 of file indirect.h.

◆ _lseek

IL_FUNCTION long(* _lseek) (int fd, long offset, int whence)

Definition at line 123 of file indirect.h.

◆ _melt

IL_FUNCTION int(* _melt) (FS fs, const char __far *filename)

Definition at line 126 of file indirect.h.

◆ _mmap

IL_FUNCTION void __far *(* _mmap) (FS fs, const char __far *filename)

Map a given file to memory. Returns a ROM memory pointer, or NULL.

Definition at line 117 of file indirect.h.

◆ _n_entries

IL_FUNCTION int(* _n_entries) (FS fs)

Retrieve the number of entries in the file system.

Definition at line 102 of file indirect.h.

◆ _newfs

IL_FUNCTION int(* _newfs) (FS fs)

Re-initialize the file system; this removes all files present on the file system.

Definition at line 134 of file indirect.h.

◆ _open

IL_FUNCTION int(* _open) (FS fs, const char __far *filename, int mode, int perms)

Definition at line 119 of file indirect.h.

◆ _read

IL_FUNCTION int(* _read) (int fd, char __far *data, int length)

Definition at line 121 of file indirect.h.

◆ _space

IL_FUNCTION unsigned long(* _space) (FS fs)

Query the amount of free space.

Returns
The amount of free space on the file system, in bytes.

Definition at line 148 of file indirect.h.

◆ _unlink

IL_FUNCTION int(* _unlink) (FS fs, const char __far *filename)

Definition at line 128 of file indirect.h.

◆ _write

IL_FUNCTION int(* _write) (int fd, const char __far *data, int length)

Definition at line 122 of file indirect.h.

◆ super

IL super

Definition at line 92 of file indirect.h.


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