diff options
author | Anton Kling <anton@kling.gg> | 2024-04-02 12:03:52 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-02 12:03:52 +0200 |
commit | e25a47fcc4db09ab9b845a691297da67243e6049 (patch) | |
tree | dfb7c473e001fa93a1a8018c36992a5bc77ae5c3 /kernel/lib/list.h | |
parent | 2229fd91f7230ae7068814ae029b733945852eb1 (diff) |
Kernel: Use "struct list" to handle file descriptors instead of a fixed sized array
Diffstat (limited to 'kernel/lib/list.h')
-rw-r--r-- | kernel/lib/list.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/lib/list.h b/kernel/lib/list.h index b7085cd..b1f0127 100644 --- a/kernel/lib/list.h +++ b/kernel/lib/list.h @@ -9,6 +9,8 @@ struct list { int list_init(struct list *list); void list_reset(struct list *list); void list_free(struct list *list); +int list_clone(struct list *in, struct list *out); int list_add(struct list *list, void *entry, int *index); +int list_set(struct list *list, int index, void *entry); int list_get(const struct list *list, int index, void **out); #endif |