/usr/include/dovecot/ioloop-notify-fd.h is in dovecot-dev 1:2.2.9-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #ifndef IOLOOP_NOTIFY_FD_H
#define IOLOOP_NOTIFY_FD_H
/* common notify code for fd-based notifications (dnotify, inotify) */
struct io_notify {
struct io io;
/* use a doubly linked list so that io_remove() is quick */
struct io_notify *prev, *next;
int fd;
};
struct ioloop_notify_fd_context {
struct io_notify *notifies;
};
struct io *
io_notify_fd_add(struct ioloop_notify_fd_context *ctx, int fd,
io_callback_t *callback, void *context) ATTR_NULL(4);
void io_notify_fd_free(struct ioloop_notify_fd_context *ctx,
struct io_notify *io);
struct io_notify *
io_notify_fd_find(struct ioloop_notify_fd_context *ctx, int fd);
#endif
|