diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-06 13:44:20 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-06 13:44:20 -0400 |
commit | 73bb0e48640b842824a0b45fe4854df8ff7faf7b (patch) | |
tree | 077dec8a426db1e835393964da4736e91ff4c69d /src/user/include/knob | |
parent | cbc85f6e897808b29e2f712156e2fa4d073d8277 (diff) | |
download | portland-os-73bb0e48640b842824a0b45fe4854df8ff7faf7b.tar.gz |
bugfixes, init program, hello world
Diffstat (limited to 'src/user/include/knob')
-rw-r--r-- | src/user/include/knob/block.h | 8 | ||||
-rw-r--r-- | src/user/include/knob/file.h | 2 | ||||
-rw-r--r-- | src/user/include/knob/task.h | 9 |
3 files changed, 11 insertions, 8 deletions
diff --git a/src/user/include/knob/block.h b/src/user/include/knob/block.h deleted file mode 100644 index 53b3deb..0000000 --- a/src/user/include/knob/block.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef KNOB_BLOCK_H -#define KNOB_BLOCK_H - -#include <stdint.h> - -void blockcpy(void *to, const void *from, uint32_t count); - -#endif
\ No newline at end of file diff --git a/src/user/include/knob/file.h b/src/user/include/knob/file.h index 6068077..4d0da87 100644 --- a/src/user/include/knob/file.h +++ b/src/user/include/knob/file.h @@ -5,6 +5,8 @@ struct file; +const char *remove_prefix(const char *path, uint8_t *dn_out); + struct file *open_file(const char *path); void close_file(struct file *f); diff --git a/src/user/include/knob/task.h b/src/user/include/knob/task.h new file mode 100644 index 0000000..ea5df62 --- /dev/null +++ b/src/user/include/knob/task.h @@ -0,0 +1,9 @@ +#ifndef KNOB_TASK_H +#define KNOB_TASK_H + +#include <stdbool.h> + +bool try_run_command(const char *path); +void yield_task(); + +#endif
\ No newline at end of file |