From 880dc3ee72809e74a5bde2275fc8f419a762b255 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Mon, 7 Sep 2026 21:14:36 -0400 Subject: small refactor to vsnprintf --- api/syscall.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'api/syscall.h') diff --git a/api/syscall.h b/api/syscall.h index cf8b1c1..bdd9972 100644 --- a/api/syscall.h +++ b/api/syscall.h @@ -10,16 +10,21 @@ struct syscall_header { uint16_t callid; uint16_t pathlen; - uint16_t path[]; + objpath_part_t path[]; }; -#define SYSCALL_VTT_WRITE 0 struct syscall_generic_write { size_t len; char data[]; }; +struct syscall_generic_objpath +{ + uint16_t pathlen; + objpath_part_t path[]; +}; + #define SYSCALL_UNTYPED_SIZE 0 #define SYSCALL_UNTYPED_ALIGN 1 @@ -37,12 +42,9 @@ struct syscall_untyped_split uint16_t dest_pathlen; objpath_part_t dest_path[]; }; -struct syscall_generic_objpath -{ - uint16_t second_pathlen; - objpath_part_t second_path[]; -}; #define SYSCALL_OBJDIR_OBJTYPE 0 +#define SYSCALL_VTT_WRITE 0 + #endif -- cgit v1.2.3