Does OS X not support epoll function?

inherithandle picture inherithandle · Dec 13, 2012 · Viewed 16.7k times · Source

I'm learning to use epoll function. But my OS X, Mountain Lion doesn't have a header file, sys/epoll.h.

I'd like to use epoll function on OS X. How Can I use epoll function?

Answer

cmeerw picture cmeerw · Dec 13, 2012

Mac OS X doesn't support epoll, but it does support kqueue which is very similar.