Porting to OS/2: Case #9 poll()
poll() is similiar to select(), and is used widely. However, kLIBC does not have it. Fortunately, there are many replacements for it. Here, I provide the one from VLC. You can find them in many projects such as FFmpeg and Gnulib.
poll.h : https://github.com/komh/os2compat/blob/master/network/poll.h
poll.c : https://github.com/komh/os2compat/blob/master/network/poll.c
poll.h : https://github.com/komh/os2compat/blob/master/network/poll.h
poll.c : https://github.com/komh/os2compat/blob/master/network/poll.c
댓글
댓글 쓰기