Adjust type of 'n' used by imsgbuf_get and imsgbuf_read to int.
Additionally stop abusing 'n' for other means and use better variables
for those cases.
OK tb@
Import wayland/cow
Comment:
stacking window manager for wayland
Description:
CoW is a stacking window manager. Unlike other compositors based on wlroots,
CoW is a window manager using river as the compositor.
WWW: https://codeberg.org/thomasadam/cow
ok to import landry@, tests and feedback from yaydn - thanks!
When using the high-level FUSE API, the filesystem may choose between
two modes of operation when implementing readdir().
1) The readdir implementation ignores the offset parameter, and
passes zero to the filler function's offset. The filler function
will not return '1' (unless an error happens), so the whole
directory is read in a single readdir operation.
2) The readdir implementation keeps track of the offsets of the
directory entries. It uses the offset parameter and always passes
non-zero offset to the filler function. When the buffer is full
(or an error happens) the filler function will return '1'.
We currently don't support 1) and instead implement an alternative
mode that is stateless but emulates the behaviour. For each
FUSE_READDIR received from the kernel, it will invoke the file
system's readdir() callback and ask it to completely fill the buffer
again, but ignore any entries that are before the given offset or
exceed the size of the buffer. This of course has a performance
[11 lines not shown]