X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Fbackend.h;h=e2090ff14068ebe0a34317941bb8efc6f7cb9a0a;hp=77d51dda9bf1825a6e02a6be85b3a0f3184c5804;hb=12ab811533406e22b78ce8b227474f1056375ae4;hpb=e40f5c50a7a930fc98974936b7366b498ebf984c diff --git a/ccan/io/backend.h b/ccan/io/backend.h index 77d51dda..e2090ff1 100644 --- a/ccan/io/backend.h +++ b/ccan/io/backend.h @@ -3,6 +3,10 @@ #define CCAN_IO_BACKEND_H #include #include +#include + +/* A setting for actions to always run (eg. zero-length reads). */ +#define POLLALWAYS (((POLLIN|POLLOUT) + 1) & ~((POLLIN|POLLOUT))) struct io_alloc { void *(*alloc)(size_t size);