def METHOD_NAME(self, fd, pathname, mask):
    # type: (int, bytes, int) -> int
    assert self._libc is not None
    pathname_buf = ctypes.create_string_buffer(pathname)
    return self._libc.inotify_add_watch(fd, pathname_buf, mask)