#include <klibc/string.h>
#include <lunaix/fs.h>
#include <lunaix/mm/valloc.h>
+#include <lunaix/process.h>
#include <lunaix/syscall.h>
+#include <lunaix/syscall_utils.h>
struct v_xattr_entry*
xattr_new(struct hstr* name)
return NULL;
}
*entry =
- (struct v_xattr_entry){ .name = HHSTR(valloc(VFS_NAME_MAXLEN), 0, 0) };
+ (struct v_xattr_entry){ .name = HHSTR(valloc(VFS_NAME_MAXLEN), 0, 0),
+ .value = NULL };
hstrcpy(&entry->name, name);
return entry;
void
xattr_free(struct v_xattr_entry* entry)
{
- vfree(entry->name.value);
+ vfree((void*)entry->name.value);
vfree(entry);
}