Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: ports/libevent/README.nacl

Issue 1503493002: Add libevent port (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build_tools/find_effected_packages.py ('k') | ports/libevent/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Libevent for NaCl
2 =================
3
4 This is a port of libevent (an event notification library) to NaCl platform.
5 For details visit : http://libevent.org .
6
7 **The library is "functional" albeit with some issues, this documents lists and
8 keep track of all those.**
9
10 1. **Callbacks due to signals are NOT supported.**
11
12 **Reason:** nacl_io do not support POSIX signals.
13
14 **Details:** sigaction(...) and signal(...) are not(yet) implemented on
15 NaCl.io,thus the calls evsignal_add,evsignal_del,evsignal_pending should
16 be avoided,also event_add/event_del when passed with EV_SIGNAL will
17 also fail.
18
19 For details about these functions visit :
20 http://www.wangafu.net/~nickm/libevent-book/Ref4_event.html
21
22 See /samples/hello-world.c for more details.
23 To check if everything is working fine, run hello-world.nexe in nacl-devenv
24 extension and point your browser to localhost:9995 and you should see "hello
25 world".
26
27 To debug/see implementation
28 Look for /event.c, /signal.c and /evmap.c
29 In /signal.c see function _evsig_set_handler and _evsig_restore_handler
30
31 Typical function call
32 event_add > event_add_internal > (if signal) evmap_signal_add > evsig_add
33
34 2. **Post build tests are skipped.**
35
36 **Reason:** setitimer and getitimer not available in newlib.
37
38 3. **Build against glibc is not functional, ie either static linking fails or
39 sometimes ELF header error pops up.**
40
41 **Reason:** unknown (issue de-prioritized,toolchain disabled in pkg_info)
42
43 **Notes**
44
45 - Code in /samples/ (except hello-world.c) is not yet tested (or not yet
46 modified to work on nacl platform)
47 - Libevent uses socketpair(...) extensively, however the same is not
48 implemented on nacl, thus custom implementation is used, to see details
49 look for evutil_ersatz_socketpair(...) in /evutil.c
OLDNEW
« no previous file with comments | « build_tools/find_effected_packages.py ('k') | ports/libevent/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698