I'm currently trying to port Weston (with gl-renderer) to emscripten. The Wayland server requires epoll_create, epoll_ctl, epoll_create1, epoll_wait from clang's Epoll api. The question is do I have to reimplement those with web-sockets friendly code (like socket accept API)? or is it possible to do syscall somehow in Emscripten 1.37.3 (which can translate to websockets automatically)?
Another unrelated question is Wayland's libinput...Do I have to reimplement udev/mtdev libraries or is it possible to use them directly?
Update:
Looks like an answer to my first question is "no" because epoll is not supported at all: https://github.com/kripken/emscripten/blob/master/src/library_syscall.js
Maybe I could emulate it somehow...Got it: https://github.com/fd00/cygepoll/blob/master/epoll.c. Basically it compiles with emcc, so you could add this hack if it really works.
It seems like there is ioctl syscall support, so maybe udev/mtdev will work somehow...
I'm currently trying to port Weston (with gl-renderer) to emscripten. The Wayland server requires epoll_create, epoll_ctl, epoll_create1, epoll_wait from clang's Epoll api. The question is do I have to reimplement those with web-sockets friendly code (like socket accept API)? or is it possible to do syscall somehow in Emscripten 1.37.3 (which can translate to websockets automatically)?
Another unrelated question is Wayland's libinput...Do I have to reimplement udev/mtdev libraries or is it possible to use them directly?
Update:
Looks like an answer to my first question is "no" because epoll is not supported at all: https://github.com/kripken/emscripten/blob/master/src/library_syscall.js
Maybe I could emulate it somehow...Got it: https://github.com/fd00/cygepoll/blob/master/epoll.c. Basically it compiles with emcc, so you could add this hack if it really works.
It seems like there is ioctl syscall support, so maybe udev/mtdev will work somehow...