authorgravatar for git@aiotter.comaiotter <git@aiotter.com> 2022-05-07 10:10:21+09:00
committergravatar for git@aiotter.comaiotter <git@aiotter.com> 2022-05-17 15:23:55+09:00
log552ef5f2e4ecc4b788476be6836d262aaf3216d3
treebd7d658cee3db539c4aefa927818c1708c698429
parentad7f725dbacb8144bdff7f0ce3bcfaf47725a4bc

std.c: Implement dirent on std/c/linux.zig


1 files changed, 15 insertions(+), 0 deletions(-)

lib/std/c/linux.zig+15
...@@ -364,3 +364,18 @@ pub const RTLD = struct {...@@ -364,3 +364,18 @@ pub const RTLD = struct {
364 pub const GLOBAL = 256;364 pub const GLOBAL = 256;
365 pub const LOCAL = 0;365 pub const LOCAL = 0;
366};366};
367
368pub const dirent = struct {
369 d_ino: c_uint,
370 d_off: c_uint,
371 d_reclen: c_ushort,
372 d_type: u8,
373 d_name: [256]u8,
374};
375pub const dirent64 = struct {
376 d_ino: c_ulong,
377 d_off: c_ulong,
378 d_reclen: c_ushort,
379 d_type: u8,
380 d_name: [256]u8,
381};