Merge pull request #11598 from aiotter/master

Add functions from `dirent.h` to std.c
This commit is contained in:
Andrew Kelley
2022-05-26 20:11:54 -04:00
committed by GitHub
3 changed files with 54 additions and 26 deletions

View File

@@ -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,
};