authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-03 18:49:12+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-03 18:49:12+02:00
log0ad97b41229805fac0e20d88cb24118535fbf056
treecdc6709dcf6594a75e9307398a43602109803ccd
parent64e119124f03e94467032949cbd9b51c8311db05
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux: Add VDSO definition for riscv32/riscv64.


2 files changed, 8 insertions(+), 2 deletions(-)

lib/std/os/linux/riscv32.zig+4-1
......@@ -188,7 +188,10 @@ pub const Elf_Symndx = u32;
188188
189189pub const MMAP2_UNIT = 4096;
190190
191pub const VDSO = struct {};
191pub const VDSO = struct {
192 pub const CGT_SYM = "__vdso_clock_gettime";
193 pub const CGT_VER = "LINUX_4.15";
194};
192195
193196/// TODO
194197pub const ucontext_t = void;
lib/std/os/linux/riscv64.zig+4-1
......@@ -215,7 +215,10 @@ pub const Stat = extern struct {
215215
216216pub const Elf_Symndx = u32;
217217
218pub const VDSO = struct {};
218pub const VDSO = struct {
219 pub const CGT_SYM = "__vdso_clock_gettime";
220 pub const CGT_VER = "LINUX_4.15";
221};
219222
220223/// TODO
221224pub const ucontext_t = void;