Skip to content
Snippets Groups Projects
  • Colin Walters's avatar
    91e06069
    dirfd: Add a public API to ensure a filled dtype · 91e06069
    Colin Walters authored
    It's quite common to iterate over a directory recursively, only caring
    about the file type, but not other bits returned by `stat()`.
    
    Good file systems fill in `dt_type`, but not all do.  This function
    papers over that in userspace conveniently.
    91e06069
    History
    dirfd: Add a public API to ensure a filled dtype
    Colin Walters authored
    It's quite common to iterate over a directory recursively, only caring
    about the file type, but not other bits returned by `stat()`.
    
    Good file systems fill in `dt_type`, but not all do.  This function
    papers over that in userspace conveniently.