#pragma once #include "capability/capability.h" #include "include/ztypes.h" void InitSyscall(); // FIXME: This probably belongs in capability.h z_err_t ValidateCap(const RefPtr& cap, uint64_t permissions); #define RET_IF_NULL(expr) \ { \ if (!expr) { \ return Z_ERR_CAP_TYPE; \ } \ }