aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library.js578
-rw-r--r--src/settings.js129
-rw-r--r--system/include/libcxx/CREDITS.TXT24
-rw-r--r--system/include/libcxx/__bit_reference35
-rw-r--r--system/include/libcxx/__config77
-rw-r--r--system/include/libcxx/__debug6
-rw-r--r--system/include/libcxx/__functional_0348
-rw-r--r--system/include/libcxx/__functional_base26
-rw-r--r--system/include/libcxx/__hash_table620
-rw-r--r--system/include/libcxx/__locale14
-rw-r--r--system/include/libcxx/__split_buffer12
-rw-r--r--system/include/libcxx/__std_stream88
-rw-r--r--system/include/libcxx/__tree109
-rw-r--r--system/include/libcxx/__tuple18
-rw-r--r--system/include/libcxx/algorithm236
-rw-r--r--system/include/libcxx/array35
-rw-r--r--system/include/libcxx/atomic20
-rw-r--r--system/include/libcxx/cctype4
-rw-r--r--system/include/libcxx/chrono167
-rw-r--r--system/include/libcxx/cmath77
-rw-r--r--system/include/libcxx/complex98
-rw-r--r--system/include/libcxx/cstdio4
-rw-r--r--system/include/libcxx/cstdlib10
-rw-r--r--system/include/libcxx/cstring4
-rw-r--r--system/include/libcxx/cwchar35
-rw-r--r--system/include/libcxx/deque41
-rw-r--r--system/include/libcxx/forward_list71
-rw-r--r--system/include/libcxx/fstream16
-rw-r--r--system/include/libcxx/functional371
-rw-r--r--system/include/libcxx/future66
-rw-r--r--system/include/libcxx/ios27
-rw-r--r--system/include/libcxx/istream6
-rw-r--r--system/include/libcxx/iterator26
-rw-r--r--system/include/libcxx/limits4
-rw-r--r--system/include/libcxx/list270
-rw-r--r--system/include/libcxx/locale197
-rw-r--r--system/include/libcxx/map389
-rw-r--r--system/include/libcxx/memory167
-rw-r--r--system/include/libcxx/random31
-rw-r--r--system/include/libcxx/readme.txt2
-rw-r--r--system/include/libcxx/regex75
-rw-r--r--system/include/libcxx/sstream164
-rw-r--r--system/include/libcxx/string527
-rw-r--r--system/include/libcxx/support/win32/limits_win32.h6
-rw-r--r--system/include/libcxx/support/win32/locale_win32.h17
-rw-r--r--system/include/libcxx/support/win32/math_win32.h6
-rw-r--r--system/include/libcxx/support/win32/support.h21
-rw-r--r--system/include/libcxx/thread4
-rw-r--r--system/include/libcxx/tuple199
-rw-r--r--system/include/libcxx/type_traits256
-rw-r--r--system/include/libcxx/unordered_map475
-rw-r--r--system/include/libcxx/unordered_set162
-rw-r--r--system/include/libcxx/utility265
-rw-r--r--system/include/libcxx/vector109
-rw-r--r--system/lib/dlmalloc.c22
-rw-r--r--system/lib/libcxx/CREDITS.TXT24
-rw-r--r--system/lib/libcxx/debug.cpp20
-rw-r--r--system/lib/libcxx/exception.cpp9
-rw-r--r--system/lib/libcxx/hash.cpp6
-rw-r--r--system/lib/libcxx/iostream.cpp8
-rw-r--r--system/lib/libcxx/locale.cpp133
-rw-r--r--system/lib/libcxx/readme.txt2
-rw-r--r--system/lib/libcxx/stdexcept.cpp2
-rw-r--r--system/lib/libcxx/string.cpp823
-rw-r--r--system/lib/libcxx/support/win32/locale_win32.cpp6
-rw-r--r--system/lib/libcxx/support/win32/support.cpp181
-rw-r--r--system/lib/libcxx/symbols265
-rw-r--r--system/lib/libcxx/system_error.cpp3
-rw-r--r--system/lib/libcxx/thread.cpp19
-rw-r--r--system/lib/libcxx/typeinfo.cpp14
-rwxr-xr-xtests/runner.py114
-rw-r--r--tests/sockets/test_sockets.c (renamed from tests/websockets.c)118
-rw-r--r--tests/sockets/test_sockets_bi.c (renamed from tests/websockets_bi.c)114
-rw-r--r--tests/sockets/test_sockets_bi_bigdata.c (renamed from tests/websockets_bi_bigdata.c)119
-rw-r--r--tests/sockets/test_sockets_bi_side.c93
-rw-r--r--tests/sockets/test_sockets_bi_side_bigdata.c90
-rw-r--r--tests/sockets/test_sockets_bigdata.h (renamed from tests/websockets_bigdata.h)0
-rw-r--r--tests/sockets/test_sockets_gethostbyname.c138
-rw-r--r--tests/sockets/test_sockets_partial.c119
-rw-r--r--tests/sockets/test_sockets_select.c98
-rw-r--r--tests/sockets/test_sockets_select_server_closes_connection.c112
-rw-r--r--tests/sockets/test_sockets_select_server_closes_connection_rw.c (renamed from tests/websockets_select_server_closes_connection_rw.c)176
-rw-r--r--tests/stdio/test_rename.c3
-rw-r--r--tests/websockets_bi_listener.c151
-rw-r--r--tests/websockets_bi_side.c76
-rw-r--r--tests/websockets_bi_side_bigdata.c69
-rw-r--r--tests/websockets_gethostbyname.c132
-rw-r--r--tests/websockets_partial.c127
-rw-r--r--tests/websockets_select.c95
-rw-r--r--tests/websockets_select_server_closes_connection.c126
-rw-r--r--tools/file_packager.py4
-rw-r--r--tools/shared.py2
92 files changed, 6284 insertions, 3773 deletions
diff --git a/src/library.js b/src/library.js
index 69f413d2..b68a9324 100644
--- a/src/library.js
+++ b/src/library.js
@@ -1022,14 +1022,14 @@ LibraryManager.library = {
if (relative.charAt(0) !== '.') {
throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
}
- // see if the new path alreay exists
+ // see if the new path already exists
var new_node;
try {
new_node = FS.lookupNode(new_dir, new_name);
} catch (e) {
// not fatal
}
- // early out if nothing needs to changews
+ // early out if nothing needs to change
if (old_node === new_node) {
return;
}
@@ -1383,7 +1383,7 @@ LibraryManager.library = {
stream.stream_ops.allocate(stream, offset, length);
},
mmap: function(stream, buffer, offset, length, position, prot, flags) {
- // TODO if PROT is PROT_WRITE, make sure we have write acccess
+ // TODO if PROT is PROT_WRITE, make sure we have write access
if ((stream.flags & {{{ cDefine('O_ACCMODE') }}}) === {{{ cDefine('O_WRONLY')}}}) {
throw new FS.ErrnoError(ERRNO_CODES.EACCES);
}
@@ -1695,7 +1695,7 @@ LibraryManager.library = {
}
},
// NOTE: This is weird to support stdout and stderr
- // overrides in addition to print and printErr orverrides.
+ // overrides in addition to print and printErr overrides.
default_tty_ops: {
get_char: function(tty) {
if (!tty.input.length) {
@@ -2901,7 +2901,7 @@ LibraryManager.library = {
value = ENV['PATH'] || '/';
break;
case {{{ cDefine('_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS') }}}:
- // Mimicing glibc.
+ // Mimicking glibc.
value = 'POSIX_V6_ILP32_OFF32\nPOSIX_V6_ILP32_OFFBIG';
break;
case {{{ cDefine('_CS_GNU_LIBC_VERSION') }}}:
@@ -8148,262 +8148,262 @@ LibraryManager.library = {
// ==========================================================================
$ERRNO_CODES: {
- EPERM: 1,
- ENOENT: 2,
- ESRCH: 3,
- EINTR: 4,
- EIO: 5,
- ENXIO: 6,
- E2BIG: 7,
- ENOEXEC: 8,
- EBADF: 9,
- ECHILD: 10,
- EAGAIN: 11,
- EWOULDBLOCK: 11,
- ENOMEM: 12,
- EACCES: 13,
- EFAULT: 14,
- ENOTBLK: 15,
- EBUSY: 16,
- EEXIST: 17,
- EXDEV: 18,
- ENODEV: 19,
- ENOTDIR: 20,
- EISDIR: 21,
- EINVAL: 22,
- ENFILE: 23,
- EMFILE: 24,
- ENOTTY: 25,
- ETXTBSY: 26,
- EFBIG: 27,
- ENOSPC: 28,
- ESPIPE: 29,
- EROFS: 30,
- EMLINK: 31,
- EPIPE: 32,
- EDOM: 33,
- ERANGE: 34,
- ENOMSG: 35,
- EIDRM: 36,
- ECHRNG: 37,
- EL2NSYNC: 38,
- EL3HLT: 39,
- EL3RST: 40,
- ELNRNG: 41,
- EUNATCH: 42,
- ENOCSI: 43,
- EL2HLT: 44,
- EDEADLK: 45,
- ENOLCK: 46,
- EBADE: 50,
- EBADR: 51,
- EXFULL: 52,
- ENOANO: 53,
- EBADRQC: 54,
- EBADSLT: 55,
- EDEADLOCK: 56,
- EBFONT: 57,
- ENOSTR: 60,
- ENODATA: 61,
- ETIME: 62,
- ENOSR: 63,
- ENONET: 64,
- ENOPKG: 65,
- EREMOTE: 66,
- ENOLINK: 67,
- EADV: 68,
- ESRMNT: 69,
- ECOMM: 70,
- EPROTO: 71,
- EMULTIHOP: 74,
- ELBIN: 75,
- EDOTDOT: 76,
- EBADMSG: 77,
- EFTYPE: 79,
- ENOTUNIQ: 80,
- EBADFD: 81,
- EREMCHG: 82,
- ELIBACC: 83,
- ELIBBAD: 84,
- ELIBSCN: 85,
- ELIBMAX: 86,
- ELIBEXEC: 87,
- ENOSYS: 88,
- ENMFILE: 89,
- ENOTEMPTY: 90,
- ENAMETOOLONG: 91,
- ELOOP: 92,
- EOPNOTSUPP: 95,
- EPFNOSUPPORT: 96,
- ECONNRESET: 104,
- ENOBUFS: 105,
- EAFNOSUPPORT: 106,
- EPROTOTYPE: 107,
- ENOTSOCK: 108,
- ENOPROTOOPT: 109,
- ESHUTDOWN: 110,
- ECONNREFUSED: 111,
- EADDRINUSE: 112,
- ECONNABORTED: 113,
- ENETUNREACH: 114,
- ENETDOWN: 115,
- ETIMEDOUT: 116,
- EHOSTDOWN: 117,
- EHOSTUNREACH: 118,
- EINPROGRESS: 119,
- EALREADY: 120,
- EDESTADDRREQ: 121,
- EMSGSIZE: 122,
- EPROTONOSUPPORT: 123,
- ESOCKTNOSUPPORT: 124,
- EADDRNOTAVAIL: 125,
- ENETRESET: 126,
- EISCONN: 127,
- ENOTCONN: 128,
- ETOOMANYREFS: 129,
- EPROCLIM: 130,
- EUSERS: 131,
- EDQUOT: 132,
- ESTALE: 133,
- ENOTSUP: 134,
- ENOMEDIUM: 135,
- ENOSHARE: 136,
- ECASECLASH: 137,
- EILSEQ: 138,
- EOVERFLOW: 139,
- ECANCELED: 140,
- ENOTRECOVERABLE: 141,
- EOWNERDEAD: 142,
- ESTRPIPE: 143
+ EPERM: {{{ cDefine('EPERM') }}},
+ ENOENT: {{{ cDefine('ENOENT') }}},
+ ESRCH: {{{ cDefine('ESRCH') }}},
+ EINTR: {{{ cDefine('EINTR') }}},
+ EIO: {{{ cDefine('EIO') }}},
+ ENXIO: {{{ cDefine('ENXIO') }}},
+ E2BIG: {{{ cDefine('E2BIG') }}},
+ ENOEXEC: {{{ cDefine('ENOEXEC') }}},
+ EBADF: {{{ cDefine('EBADF') }}},
+ ECHILD: {{{ cDefine('ECHILD') }}},
+ EAGAIN: {{{ cDefine('EAGAIN') }}},
+ EWOULDBLOCK: {{{ cDefine('EWOULDBLOCK') }}},
+ ENOMEM: {{{ cDefine('ENOMEM') }}},
+ EACCES: {{{ cDefine('EACCES') }}},
+ EFAULT: {{{ cDefine('EFAULT') }}},
+ ENOTBLK: {{{ cDefine('ENOTBLK') }}},
+ EBUSY: {{{ cDefine('EBUSY') }}},
+ EEXIST: {{{ cDefine('EEXIST') }}},
+ EXDEV: {{{ cDefine('EXDEV') }}},
+ ENODEV: {{{ cDefine('ENODEV') }}},
+ ENOTDIR: {{{ cDefine('ENOTDIR') }}},
+ EISDIR: {{{ cDefine('EISDIR') }}},
+ EINVAL: {{{ cDefine('EINVAL') }}},
+ ENFILE: {{{ cDefine('ENFILE') }}},
+ EMFILE: {{{ cDefine('EMFILE') }}},
+ ENOTTY: {{{ cDefine('ENOTTY') }}},
+ ETXTBSY: {{{ cDefine('ETXTBSY') }}},
+ EFBIG: {{{ cDefine('EFBIG') }}},
+ ENOSPC: {{{ cDefine('ENOSPC') }}},
+ ESPIPE: {{{ cDefine('ESPIPE') }}},
+ EROFS: {{{ cDefine('EROFS') }}},
+ EMLINK: {{{ cDefine('EMLINK') }}},
+ EPIPE: {{{ cDefine('EPIPE') }}},
+ EDOM: {{{ cDefine('EDOM') }}},
+ ERANGE: {{{ cDefine('ERANGE') }}},
+ ENOMSG: {{{ cDefine('ENOMSG') }}},
+ EIDRM: {{{ cDefine('EIDRM') }}},
+ ECHRNG: {{{ cDefine('ECHRNG') }}},
+ EL2NSYNC: {{{ cDefine('EL2NSYNC') }}},
+ EL3HLT: {{{ cDefine('EL3HLT') }}},
+ EL3RST: {{{ cDefine('EL3RST') }}},
+ ELNRNG: {{{ cDefine('ELNRNG') }}},
+ EUNATCH: {{{ cDefine('EUNATCH') }}},
+ ENOCSI: {{{ cDefine('ENOCSI') }}},
+ EL2HLT: {{{ cDefine('EL2HLT') }}},
+ EDEADLK: {{{ cDefine('EDEADLK') }}},
+ ENOLCK: {{{ cDefine('ENOLCK') }}},
+ EBADE: {{{ cDefine('EBADE') }}},
+ EBADR: {{{ cDefine('EBADR') }}},
+ EXFULL: {{{ cDefine('EXFULL') }}},
+ ENOANO: {{{ cDefine('ENOANO') }}},
+ EBADRQC: {{{ cDefine('EBADRQC') }}},
+ EBADSLT: {{{ cDefine('EBADSLT') }}},
+ EDEADLOCK: {{{ cDefine('EDEADLOCK') }}},
+ EBFONT: {{{ cDefine('EBFONT') }}},
+ ENOSTR: {{{ cDefine('ENOSTR') }}},
+ ENODATA: {{{ cDefine('ENODATA') }}},
+ ETIME: {{{ cDefine('ETIME') }}},
+ ENOSR: {{{ cDefine('ENOSR') }}},
+ ENONET: {{{ cDefine('ENONET') }}},
+ ENOPKG: {{{ cDefine('ENOPKG') }}},
+ EREMOTE: {{{ cDefine('EREMOTE') }}},
+ ENOLINK: {{{ cDefine('ENOLINK') }}},
+ EADV: {{{ cDefine('EADV') }}},
+ ESRMNT: {{{ cDefine('ESRMNT') }}},
+ ECOMM: {{{ cDefine('ECOMM') }}},
+ EPROTO: {{{ cDefine('EPROTO') }}},
+ EMULTIHOP: {{{ cDefine('EMULTIHOP') }}},
+ ELBIN: {{{ cDefine('ELBIN') }}},
+ EDOTDOT: {{{ cDefine('EDOTDOT') }}},
+ EBADMSG: {{{ cDefine('EBADMSG') }}},
+ EFTYPE: {{{ cDefine('EFTYPE') }}},
+ ENOTUNIQ: {{{ cDefine('ENOTUNIQ') }}},
+ EBADFD: {{{ cDefine('EBADFD') }}},
+ EREMCHG: {{{ cDefine('EREMCHG') }}},
+ ELIBACC: {{{ cDefine('ELIBACC') }}},
+ ELIBBAD: {{{ cDefine('ELIBBAD') }}},
+ ELIBSCN: {{{ cDefine('ELIBSCN') }}},
+ ELIBMAX: {{{ cDefine('ELIBMAX') }}},
+ ELIBEXEC: {{{ cDefine('ELIBEXEC') }}},
+ ENOSYS: {{{ cDefine('ENOSYS') }}},
+ ENMFILE: {{{ cDefine('ENMFILE') }}},
+ ENOTEMPTY: {{{ cDefine('ENOTEMPTY') }}},
+ ENAMETOOLONG: {{{ cDefine('ENAMETOOLONG') }}},
+ ELOOP: {{{ cDefine('ELOOP') }}},
+ EOPNOTSUPP: {{{ cDefine('EOPNOTSUPP') }}},
+ EPFNOSUPPORT: {{{ cDefine('EPFNOSUPPORT') }}},
+ ECONNRESET: {{{ cDefine('ECONNRESET') }}},
+ ENOBUFS: {{{ cDefine('ENOBUFS') }}},
+ EAFNOSUPPORT: {{{ cDefine('EAFNOSUPPORT') }}},
+ EPROTOTYPE: {{{ cDefine('EPROTOTYPE') }}},
+ ENOTSOCK: {{{ cDefine('ENOTSOCK') }}},
+ ENOPROTOOPT: {{{ cDefine('ENOPROTOOPT') }}},
+ ESHUTDOWN: {{{ cDefine('ESHUTDOWN') }}},
+ ECONNREFUSED: {{{ cDefine('ECONNREFUSED') }}},
+ EADDRINUSE: {{{ cDefine('EADDRINUSE') }}},
+ ECONNABORTED: {{{ cDefine('ECONNABORTED') }}},
+ ENETUNREACH: {{{ cDefine('ENETUNREACH') }}},
+ ENETDOWN: {{{ cDefine('ENETDOWN') }}},
+ E