Bruce Mitchener
894d13a4db
Add wprintf, swprintf, vswprintf, vfwprintf, etc.
2013-09-26 06:46:53 +07:00
Bruce Mitchener
7d58080e93
Add a lot of locale code.
2013-09-26 06:46:48 +07:00
Bruce Mitchener
baa4d38f13
Mark __assert_fail as _Noreturn.
...
This eliminates a performance regression caused in the box2d
benchmark by switching to the musl headers. Without this
being _Noreturn, clang / llvm generates much worse code involving
phis and extra loads.
2013-09-24 21:01:04 +07:00
Alon Zakai
1fc6762e31
emscripten_async_load_script
2013-09-13 15:13:30 -07:00
Bruce Mitchener
61c818d8da
Add compat sys/socketvar.h
...
This is required by xmlvm's hysock which is needed for the
benchmark.test_zzz_java_nbody test.
2013-09-13 10:11:51 -07:00
Bruce Mitchener
bf349b84d9
Don't define _POSIX_SHARED_MEMORY_OBJECTS.
...
This isn't implemented, so don't define it.
2013-09-13 10:11:32 -07:00
Alon Zakai
ed9596d393
headers readme
2013-09-13 10:07:03 -07:00
Bruce Mitchener
1dc5a8a5cd
Don't define _POSIX_SHARED_MEMORY_OBJECTS.
...
This isn't implemented, so don't define it.
2013-09-13 10:07:03 -07:00
Bruce Mitchener
8f1db82f5a
Incorrect return type on a compat header.
...
This was exposed by the update to musl 0.9.13 which now has a
prototype for this function.
2013-09-13 10:07:03 -07:00
Bruce Mitchener
733e6877d7
Update to musl-0.9.13 headers.
2013-09-13 10:07:03 -07:00
Bruce Mitchener
4c3c7df30a
Correctly note musl provenance and differences.
2013-09-13 10:07:03 -07:00
Bruce Mitchener
595d7eeae6
Change various 64 bit typedefs over to 32 bit.
...
This also removes all of the changes that were needed for those
typedefs to be 64 bit.
2013-09-13 10:07:03 -07:00
Bruce Mitchener
b9c8b95795
gethostbyname_r update.
...
* gethostbyname_r is now the 6 arg version.
* Make enet use the right code path (this should be upstreamed).
* Add a compat header to make these declarations visible to all without
extra compilation flags.
2013-09-13 10:07:03 -07:00
Bruce Mitchener
7b583fbae8
Emscripten requires different #s for stdio fds.
2013-09-13 10:07:03 -07:00
Bruce Mitchener
e06db69564
Add __va_copy as a compat/stdarg.h
2013-09-13 10:07:02 -07:00
Bruce Mitchener
d4400bfa41
Fix other.test_embind & other.test_static_link.
2013-09-13 10:07:02 -07:00
Bruce Mitchener
a9d0a7f981
Update to work with new libc headers.
2013-09-13 10:07:02 -07:00
Bruce Mitchener
5c6e1633d2
Update libc headers to use musl headers.
2013-09-13 10:07:02 -07:00
Alon Zakai
7ee8f9ba09
remove unnecessary -lSDL in sdl-config
2013-09-09 10:05:56 -07:00
Alon Zakai
a694963fb6
add sdl-config tool
2013-09-07 20:25:41 -07:00
Bruce Mitchener
e5f6f3a3d8
Use __EMSCRIPTEN__ rather than EMSCRIPTEN.
...
This was requested by someone upstream when I'd originally submitted
these changes and is more correct.
2013-09-06 12:19:24 +07:00
Alon Zakai
02cfae8fdd
fix gethostbyname_r types
2013-08-31 19:48:20 -07:00
Alon Zakai
a96b03e9c1
remove temporary enet fix, and define gethostbyname_r in a header, so that we can be sure at compilation time that it is used in the way it is expected to be (that function has more than one possible signature in various unixes)
2013-08-31 15:46:10 -07:00
ToadKing
42c0bcffe6
implement emscripten_get_canvas_size
2013-08-25 00:32:05 -04:00
Alon Zakai
c03324859d
EM_ASM option for nicer inline assembly
2013-08-23 10:29:55 -07:00
Alon Zakai
c4bd45a8f3
restore EMSCRIPTEN_KEEPALIVE, needed to prevent inlining, EXPORTED_FUNCTIONS is too late for that
2013-08-18 18:03:24 -07:00
Bruce Mitchener
10d1cb9f3e
Add compat headers, move some things to them.
...
This is groundwork for landing musl includes which remove
some of the deprecated functions or very old BSDisms.
2013-08-16 18:04:54 +07:00
Bruce Mitchener
6f894d481d
Update libcxx to revision 187959, 2013-08-08.
2013-08-09 09:53:12 +07:00
Alon Zakai
6c275bebb4
fix typo
2013-08-08 19:50:27 -07:00
Alon Zakai
470c131991
collect malloc defaults for emscripten, and do not try to trim
2013-08-08 18:13:50 -07:00
Alon Zakai
2bf16c8c1f
Merge pull request #1446 from yukoba/network-constants
...
Added constants to network headers.
2013-08-07 21:24:09 -07:00
Bruce Mitchener
8d4e0cad02
Add fcvt, ecvt, gcvt functions.
2013-08-07 22:25:18 +07:00
Yu Kobayashi
821cd998cf
Remove sys/socket.h comment about glibc
2013-08-07 03:13:57 +09:00
Yu Kobayashi
10c25316f5
Modified the values of SO_* and SOL_SOCKET to be the same values of glibc
2013-08-07 03:13:57 +09:00
Yu Kobayashi
0a9dc0b0b2
Add constants to network headers
2013-08-07 03:13:57 +09:00
Yu Kobayashi
c06061de23
Add sys/sendfile.h
2013-08-03 19:31:17 +09:00
Yu Kobayashi
4258d64d0c
Added isinff and isnanf
2013-07-30 09:00:44 +09:00
Yu Kobayashi
be02aa4e10
Third argument of mincore is unsigned char
2013-07-30 08:43:14 +09:00
Alon Zakai
e6e22495e2
Merge pull request #1394 from inolen/stat_tests
...
added lchmod, new tests, fixed for mknod return values
2013-07-24 11:44:53 -07:00
Anthony Pesch
9c52c8a191
- added lchmod
...
- fixed up errno values for mknod
- split up stat tests into test_stat, test_stat_chmod, test_stat_mknod
2013-07-20 11:19:15 -07:00
Chad Austin
c86809e40d
Rename value_tuple to value_array and value_struct to value_object
2013-07-17 11:28:42 -07:00
David Barksdale
6765b7405a
Add SHUT_WR to sys/socket.h.
2013-07-15 20:21:23 -05:00
David Barksdale
9b97977a57
Added IN6ADDR_*_INIT macros.
...
Some code uses these instead of the extern symbols.
2013-07-15 20:21:22 -05:00
Alon Zakai
673ea2ec24
Merge pull request #1372 from inolen/dirent_fixes
...
minor fixes to return codes of closedir, telldir
2013-07-13 12:38:31 -07:00
Anthony Pesch
49e6272b09
minor fixes to return codes of closedir, telldir
2013-07-12 14:12:04 -07:00
Jez Ng
4dff051937
Bunch of changes to support Syobon Action.
2013-07-09 20:42:13 -07:00
Mokhtar Naamani
d3307c57f6
align sin6_family of sockaddr_in6 with other socket address structures
2013-06-29 22:11:03 +03:00
David Barksdale
906e648789
Define timezone.
2013-06-24 22:09:55 -05:00
David Barksdale
cec818774c
Define SA_RESTART.
2013-06-24 22:09:54 -05:00
David Barksdale
15fb8c884e
Move initgroups outside of !_XOPEN_SOURCE.
...
It was put into newlib grp.h revision 1.2 by Edward M. Lee,
but every other system's grp.h I looked at doesn't do this.
2013-06-24 22:09:54 -05:00
David Barksdale
59651e35af
Add some IPv6 stuff to netinet/in.h.
2013-06-24 22:09:54 -05:00
David Barksdale
aae0d8cbc4
Fix prototypes for stat64, fstat64, lstat64.
2013-06-24 22:09:54 -05:00
David Barksdale
8025e367a8
Make AF_UNIX and AF_INET different.
...
GNUnet contains a switch with cases for AF_UNIX and AF_INET.
2013-06-24 22:09:54 -05:00
David Barksdale
90202efebc
Add IN6_IS_ADDR_* macros and other IPv6 stuff.
2013-06-24 22:09:54 -05:00
David Barksdale
f602fe5f6f
Fix LDBL_ constants in float.h.
...
This fixes a bug compiling libunistring which checks
these constants against sizeof(long double).
2013-06-17 17:01:15 -07:00
Anthony Pesch
80e72facb8
fix weak alias for warn
2013-06-17 10:50:12 -07:00
Alon Zakai
f665c7f0b1
add some dirent defines, fixes #1277
2013-06-16 16:06:38 -07:00
Alon Zakai
45fa7ca807
fix sockaddr sa_data; fixes #1272
2013-06-09 12:31:29 -07:00
Michael Bishop
292502f15a
Added header guards around emscripten.h
2013-05-31 12:35:45 -04:00
Alon Zakai
69b39b965f
implement std::exception::what()
2013-05-30 10:42:19 -07:00
Alon Zakai
d3ff354398
implement ~exception in header, to make std::exception usable; fixes #1198
2013-05-28 11:03:03 -07:00
Alon Zakai
2fe956af7c
emscripten_exit_with_live_runtime
2013-05-27 10:41:55 -07:00
Alon Zakai
fa03914578
remove llvm.global_ctors from libcxx symbols
2013-05-23 18:42:38 -07:00
Chad Austin
fec256e358
Add support for multiple overloaded smart pointer constructors.
2013-05-17 12:58:44 -07:00
Chad Austin
40037cce12
Workaround a bug in LLVM? Emscripten? that causes it to generate terrible code when registering class methods and properties.
2013-05-17 12:58:36 -07:00
Chad Austin
61a7dea5d4
Kill some dead code.
2013-05-17 12:57:52 -07:00
Chad Austin
69d3621782
We can get away with passing memory_view on the stack here...
2013-05-17 12:57:10 -07:00
Chad Austin
fd8cbaa853
Add support for (fast?) memory_view objects. If C++ passes a memory_view to JS, it gets converted into a typed array object on the other side. Intended for WebGL.
2013-05-17 12:56:48 -07:00
Chad Austin
31d6f4e7bf
Checkpoint work towards making vtable->JS calls faster.
2013-05-17 12:56:16 -07:00
Alon Zakai
5e86eb0a83
include netinet/in.h in netdb.h, like linux does; fixes #1153
2013-05-08 18:42:30 -07:00
Alon Zakai
be0fb5cc46
auto-include malloc/free when SDL is used; fixes #1139
2013-05-06 13:35:33 -07:00
Sylvestre Ledru
aa7dbbb0bb
Remove more +x permissions on source or javascript files
2013-05-04 17:32:14 +02:00
Alon Zakai
1e3e0e5cf1
Merge pull request #1126 from imvu/more_embind_updates
...
More embind updates
2013-05-03 13:40:01 -07:00
Sylvestre Ledru
155342908c
Remove executable permissions on simple files
2013-05-03 13:18:26 -07:00
Chad Austin
58352074e5
Add a benchmark for calling from C++ into JS via interfaces
2013-05-02 18:55:54 -07:00
Chad Austin
9b2cb58a35
Snip some dead code
2013-05-02 18:54:49 -07:00
Chad Austin
2dc3ce9992
namespace the binding struct a bit more
2013-05-02 18:54:42 -07:00
Chad Austin
9e375f0d24
snip dead code
2013-05-02 18:54:36 -07:00
Chad Austin
6566a0c989
Add a select_const for selecting the const method implementation if there are only two.
...
Conflicts:
tests/embind/embind_test.cpp
2013-05-02 18:54:27 -07:00
Alon Zakai
80343d7637
add glew test and some degree of support
2013-04-29 18:19:55 -07:00
Bruce Mitchener
edc773c64d
[libcextra] Add wcwidth, wcswidth.
2013-04-29 15:30:32 +07:00
Bruce Mitchener
454d7f9dd2
[libcextra] wctrans and friends.
2013-04-29 14:01:11 +07:00
Bruce Mitchener
30c055fb82
[libcextra] add isw* classification functions.
2013-04-29 12:10:55 +07:00
Bruce Mitchener
c6932c1ea9
Flag malloc_usable_size as weak.
...
This makes it match the other malloc symbols.
2013-04-27 08:03:29 +07:00
Alon Zakai
ce39f0a30b
Merge pull request #1089 from waywardmonkeys/remove-wchar-embind
...
emscripten libcextra provides wmemset,wmemcpy.
2013-04-24 20:38:27 -07:00
Bruce Mitchener
740961e3a4
Don't list internal / undefined symbols.
2013-04-24 14:58:11 +07:00
Bruce Mitchener
f40259d46d
emscripten libcextra provides wmemset,wmemcpy.
2013-04-24 08:57:22 +07:00
Bruce Mitchener
b3dc9ab122
Add a readme giving the date / revision of these sources.
2013-04-23 02:25:34 +07:00
Bruce Mitchener
654b36699e
Move wchar,mb stuff to libcextra.
2013-04-22 18:51:43 +07:00
Bruce Mitchener
7cacf252e7
Add musl multibyte function implementations.
2013-04-22 16:45:07 +07:00
Bruce Mitchener
b9090fa1f2
Add musl wchar function implementations.
2013-04-22 16:45:07 +07:00
Bruce Mitchener
58175e7276
Let libc.symbols use same symbol format as libcxx.
...
This is just the output of 'llvm-nm -extern-only -defined-only'.
2013-04-22 16:45:07 +07:00
Bruce Mitchener
41e2d50e93
Remove unused file.
2013-04-22 16:45:07 +07:00
Alon Zakai
b22b5914e2
Merge pull request #1060 from arlolra/socketpair
...
Socketpair
2013-04-19 14:13:17 -07:00
Chad Austin
a02d08a15f
Make select_overload work for member functions
2013-04-18 20:08:41 +03:00
Chad Austin
b4cc2e135b
calloperator wasn't pulling its own weight. We probably should have a higher-level register_function though...
2013-04-18 20:08:40 +03:00
Chad Austin
f25a4c9d19
Add support for read-only properties.
2013-04-18 20:08:39 +03:00
Chad Austin
a76d9ceaee
switch to EMSCRIPTEN_SYMBOL which improves code size a bit by storing the pointer to the string literal as a constant as opposed to a global variable.
2013-04-18 20:08:19 +03:00
Chad Austin
e5c04828c4
fix readLatin1String to actually cover the range of latin-1 characters and add support for interned string symbols to emscripten::val
2013-04-18 20:08:18 +03:00
Chad Austin
775f840e37
Add perfect forwarding throughout emscripten::val. This shaves 50 KB off the non-minified JS in Northstar.
2013-04-18 20:08:18 +03:00