extern struct DirEnt [src]
Alias for std.c.haiku.DirEnt
Fields
dev: dev_tdevice
pdev: dev_tparent device (only for queries)
ino: ino_tinode number
pino: ino_tparent inode (only for queries)
reclen: u16length of this record, not the name
name: [0]u8name of the entry (null byte terminated)
Members
- getName (Function)
Source
pub const DirEnt = extern struct {
/// device
dev: dev_t,
/// parent device (only for queries)
pdev: dev_t,
/// inode number
ino: ino_t,
/// parent inode (only for queries)
pino: ino_t,
/// length of this record, not the name
reclen: u16,
/// name of the entry (null byte terminated)
name: [0]u8,
pub fn getName(dirent: *const DirEnt) [*:0]const u8 {
return @ptrCast(&dirent.name);
}
}