commit 552ef5f2e4ecc4b788476be6836d262aaf3216d3 (tree)
parent ad7f725dbacb8144bdff7f0ce3bcfaf47725a4bc
Author: aiotter <git@aiotter.com>
Date: Sat, 7 May 2022 10:10:21 +0900
std.c: Implement dirent on std/c/linux.zig
Diffstat:
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/lib/std/c/linux.zig b/lib/std/c/linux.zig
@@ -364,3 +364,18 @@ pub const RTLD = struct {
pub const GLOBAL = 256;
pub const LOCAL = 0;
};
+
+pub const dirent = struct {
+ d_ino: c_uint,
+ d_off: c_uint,
+ d_reclen: c_ushort,
+ d_type: u8,
+ d_name: [256]u8,
+};
+pub const dirent64 = struct {
+ d_ino: c_ulong,
+ d_off: c_ulong,
+ d_reclen: c_ushort,
+ d_type: u8,
+ d_name: [256]u8,
+};