procfs: once opened, an entry should have a length so we can SEEK_END

This commit is contained in:
K. Lange 2023-10-09 19:56:02 +09:00
parent afcf36de70
commit d608044bac

View File

@ -85,6 +85,7 @@ int procfs_printf(fs_node_t * node, const char * fmt, ...) {
static void procfs_entry_open(fs_node_t * node, unsigned int flags) {
procfs_entry_t * entry = (void*)node;
entry->func(node);
node->length = entry->used;
}
static void procfs_entry_close(fs_node_t * node) {