diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-13 22:06:40 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-13 22:06:40 -0400 |
commit | 44d29a33df81ac07163d5146a9e43a0c4fb80af0 (patch) | |
tree | 94d4fb506a80d73cb53dc9ea66dfc952d7a9432a /src/user/include/knob/file.h | |
parent | 143156f63e2448733f1a35a74e629fe0ae9bb567 (diff) | |
download | portland-os-44d29a33df81ac07163d5146a9e43a0c4fb80af0.tar.gz |
new shell
Diffstat (limited to 'src/user/include/knob/file.h')
-rw-r--r-- | src/user/include/knob/file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user/include/knob/file.h b/src/user/include/knob/file.h index 4d0da87..a0d084f 100644 --- a/src/user/include/knob/file.h +++ b/src/user/include/knob/file.h @@ -9,8 +9,11 @@ const char *remove_prefix(const char *path, uint8_t *dn_out); struct file *open_file(const char *path); void close_file(struct file *f); +void _close_all_files(); uint32_t read_from_file(struct file *f, uint32_t max, void *buf); +//return value and max_length don't include null terminator +uint32_t read_line_from_file(struct file *f, char *sz, uint32_t max_length); uint32_t seek_file_to(struct file *f, uint32_t to); int32_t seek_file_by(struct file *f, int32_t by); |