Does OS X not support epoll function?

_
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. 

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

Does OS X not support epoll function?

up vote 3 down vote favorite
1

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?

share improve this question
 

1 Answer

active oldest votes
up vote 10 down vote accepted

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

share improve this answer
 

你可能感兴趣的:(Does OS X not support epoll function?)