Home About us GitHub Contact us Docs

FoxOS

Welcome to the FoxOS website!

saf_mount::saf_mount

Signature: saf_mount::saf_mount(void* data)
Attributes: undefined
Description: Constructor for the saf mount class

Parameters:

saf_mount::open

Signature: file_t* saf_mount::open(char* path)
Description: Opens a file

Parameters:

Return: file_t*

saf_mount::close

Signature: void saf_mount::close(file_t* file)
Description: Closes a file

Parameters:

Return: void

saf_mount::read

Signature: void saf_mount::read(file_t* file, void* buffer, size_t size, size_t offset)
Description: Reads from a file

Parameters:

Return: void

saf_mount::dir_at

Signature: dir_t saf_mount::dir_at(int idx, char* path)
Description: Gets the directory at a path

Parameters:

Return: dir_t

saf_mount::resolve

Signature: saf_node_hdr_t* saf_mount::resolve(saf_node_hdr_t* curr, int level, char** path)
Description: Resolves a path to a file

Parameters:

Return: saf_node_hdr_t*

saf_mount::process_path

Signature: char** saf_mount::process_path(char* path)
Description: Processes a path

Parameters:

Return: char**

Show file on GitHub