From 905e9c8093b2bb06def609975929465be0f41a0c Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 20 Aug 2020 13:49:09 +1200 Subject: Simplify bitmasks for IO events. --- include/ruby/io.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/ruby/io.h') diff --git a/include/ruby/io.h b/include/ruby/io.h index 359282a31e..5774a3fc10 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -41,6 +41,12 @@ # define RB_WAITFD_OUT 0x004 #endif +typedef enum { + RUBY_IO_READABLE = RB_WAITFD_IN, + RUBY_IO_WRITABLE = RB_WAITFD_OUT, + RUBY_IO_PRIORITY = RB_WAITFD_PRI, +} rb_io_event_t; + #include "ruby/internal/dllexport.h" RBIMPL_SYMBOL_EXPORT_BEGIN() -- cgit v1.2.3