kiba-engine
|
Linux implementation to access the filesystem. More...
#include <kiba/platform/filesystem.h>
#include <kiba/core/log.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
Go to the source code of this file.
Functions | |
b8 | filesystem_exists (const char *path) |
Check if a given path exists. More... | |
b8 | filesystem_open (file_handle *file, const char *path, b8 binary, file_modes modes) |
void | filesystem_close (file_handle *file) |
b8 | filesystem_size (file_handle *file, usize *size) |
b8 | filesystem_read (file_handle *file, usize size, void *out, usize *bytes_read) |
b8 | filesystem_read_line (file_handle *file, usize max_size, char *out, usize *chars_read) |
b8 | filesystem_read_all (file_handle *file, usize max_size, void *out, usize *bytes_read) |
b8 | filesystem_read_all_text (file_handle *file, usize max_size, char *out, usize *chars_read) |
b8 | filesystem_write (file_handle *file, usize size, const void *data, usize *bytes_written) |
b8 | filesystem_write_line (file_handle *file, usize size, const char *data, usize *chars_written) |
Linux implementation to access the filesystem.
Definition in file filesystem.c.
b8 filesystem_exists | ( | const char * | path | ) |
Check if a given path exists.
Path can point to a file or directory.
path | the path to the file |
Definition at line 16 of file filesystem.c.