diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-01-18 14:31:20 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-01-18 14:31:20 +0700 |
commit | 8762f317490f82ddadf8257d29f8dc2b074b2683 (patch) | |
tree | e716bdf760eacfa4ee89aa279931879c17270fad /src | |
parent | ab0a6e5a6fc4a5d25d19bdfaf818fc4151e95148 (diff) |
Implement catopen/catgets/catclose to help libcxx tests pass.
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index f59cf3b3..b38a74bf 100644 --- a/src/library.js +++ b/src/library.js @@ -558,6 +558,25 @@ LibraryManager.library = { }, // ========================================================================== + // nl_types.h + // ========================================================================== + + catopen: function(name, oflag) { + // nl_catd catopen (const char *name, int oflag) + return -1; + }, + + catgets: function(catd, set_id, msg_id, s) { + // char *catgets (nl_catd catd, int set_id, int msg_id, const char *s) + return s; + }, + + catclose: function(catd) { + // int catclose (nl_catd catd) + return 0; + }, + + // ========================================================================== // poll.h // ========================================================================== @@ -9155,7 +9174,7 @@ function autoAddDeps(object, name) { } // Add aborting stubs for various libc stuff needed by libc++ -['pthread_cond_signal', 'pthread_equal', 'pthread_join', 'pthread_detach', 'catgets', 'catopen', 'catclose'].forEach(function(aborter) { +['pthread_cond_signal', 'pthread_equal', 'pthread_join', 'pthread_detach'].forEach(function(aborter) { LibraryManager.library[aborter] = function aborting_stub() { throw 'TODO: ' + aborter }; }); |