diff options
author | Benji Dial <benji@benjidial.net> | 2024-01-13 16:43:49 -0500 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-01-13 16:43:49 -0500 |
commit | 4130562b1555cabe441efe9420cebe12e7ed8d39 (patch) | |
tree | beaf0012373aab2c3a13fe0147a5cda4af28ef78 /include/mercury/kernel/vfile.hpp | |
parent | 882e74b2191c059a9226cbd8bcb51c97da36247c (diff) | |
download | hilbert-os-4130562b1555cabe441efe9420cebe12e7ed8d39.tar.gz |
application loading
Diffstat (limited to 'include/mercury/kernel/vfile.hpp')
-rw-r--r-- | include/mercury/kernel/vfile.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mercury/kernel/vfile.hpp b/include/mercury/kernel/vfile.hpp index 43dff96..ce72bb1 100644 --- a/include/mercury/kernel/vfile.hpp +++ b/include/mercury/kernel/vfile.hpp @@ -48,6 +48,11 @@ namespace mercury::kernel::vfile { //dir_entry.type is assumed to be directory. out must be empty on entry. storage::fs_result get_children(utility::vector<vfile> &out) const; + //assumes file is a regular file and [start, start + length) + //is in bounds of file. start and length are in bytes. + storage::fs_result read_file( + uint64_t start, uint64_t length, void *into) const; + }; //path must be absolute. follows symlinks on all but the last node. |