diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-04-24 13:34:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 13:34:46 +0200 |
commit | ad57cff9bc38a4a97f4ecccc7655e2dfd73fc75c (patch) | |
tree | 52ba5b58c693e847a2b6eca36584476892a86456 /src/libfetchers | |
parent | 01232358ffd78600d170ca5c1526a7031f6f2762 (diff) |
Document tMisc
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Diffstat (limited to 'src/libfetchers')
-rw-r--r-- | src/libfetchers/input-accessor.hh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libfetchers/input-accessor.hh b/src/libfetchers/input-accessor.hh index 23c510d4d..1cb233c51 100644 --- a/src/libfetchers/input-accessor.hh +++ b/src/libfetchers/input-accessor.hh @@ -13,7 +13,17 @@ class Store; struct InputAccessor { - enum Type { tRegular, tSymlink, tDirectory, tMisc }; + enum Type { + tRegular, tSymlink, tDirectory, + /** + Any other node types that may be encountered on the file system, such as device nodes, sockets, named pipe, and possibly even more exotic things. + + Responsible for `"unknown"` from `builtins.readFileType "/dev/null"`. + + Unlike `DT_UNKNOWN`, this must not be used for deferring the lookup of types. + */ + tMisc + }; struct Stat { |