Skip to content
Snippets Groups Projects
  • Bill Fraser's avatar
    1ada396b
    add DT_UNKNOWN · 1ada396b
    Bill Fraser authored
    The `d_type` field of `struct dirent` can be `DT_UNKNOWN` if a
    filesystem doesn't support returning the file type in directory entries.
    Linux's readdir(3) man page, for example, says: "Currently, only some
    filesystems [...] have full support for returning the file type in
    d_type. All applications must properly handle a return of DT_UNKNOWN."
    1ada396b
    History
    add DT_UNKNOWN
    Bill Fraser authored
    The `d_type` field of `struct dirent` can be `DT_UNKNOWN` if a
    filesystem doesn't support returning the file type in directory entries.
    Linux's readdir(3) man page, for example, says: "Currently, only some
    filesystems [...] have full support for returning the file type in
    d_type. All applications must properly handle a return of DT_UNKNOWN."