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

This commit is contained in:
Alex Rønne Petersen 2024-08-03 18:49:12 +02:00
parent 64e119124f
commit 0ad97b4122
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View File

@ -188,7 +188,10 @@ pub const Elf_Symndx = u32;
pub const MMAP2_UNIT = 4096;
pub const VDSO = struct {};
pub const VDSO = struct {
pub const CGT_SYM = "__vdso_clock_gettime";
pub const CGT_VER = "LINUX_4.15";
};
/// TODO
pub const ucontext_t = void;

View File

@ -215,7 +215,10 @@ pub const Stat = extern struct {
pub const Elf_Symndx = u32;
pub const VDSO = struct {};
pub const VDSO = struct {
pub const CGT_SYM = "__vdso_clock_gettime";
pub const CGT_VER = "LINUX_4.15";
};
/// TODO
pub const ucontext_t = void;