17#ifndef TOOLBOX_IO_INOTIFY_HPP 
   18#define TOOLBOX_IO_INOTIFY_HPP 
   22#include <sys/inotify.h> 
   81                                         std::error_code& 
ec) 
noexcept 
 
  118    int fd() const noexcept { 
return fh_.get(); }
 
  122                                            std::error_code& ec) 
noexcept 
 
 
  139    using Path = std::filesystem::path;
 
  153    void watch(const 
Path& path, 
Slot slot, 
std::uint32_t mask = IN_ALL_EVENTS);
 
  162    void on_inotify(
CyclTime , 
int fd, 
unsigned events);
 
  166    std::map<Path, Watch> path_index_;
 
  167    std::map<int, const Watch*> wd_index_;