summaryrefslogtreecommitdiff
path: root/lib/erl_interface/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Update copyright yearHenrik Nord2018-06-186-6/+6
| | |
* | | stdlib: Move eval_str/1 from mod_esi to erl_evalHans Bolinder2018-06-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See also https://bugs.erlang.org/browse/ERL-634. The utility program `erl_call' in erl_interface used to call lib:eval_str/1, which is no longer present in Erlang/OTP 21.0. The lib module was eliminated in OTP-15072, see also https://github.com/erlang/otp/pull/1786.
* | | Merge PR-1823 from jesperes/ERL-629-erl_call-free-before-use OTP-15105Sverker Eriksson2018-06-041-2/+9
|\ \ \ | | | | | | | | ERL-629 Do not free() module buffer until it has been used
| * | | ERL-629 Do not free() module buffer until it has been usedJesper Eskilson2018-05-221-2/+9
| |/ /
* | | erl_interface: fix bad memsetMikael Pettersson2018-04-211-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compiling OTP-20.3.4 with GCC-7 generates the following warning: CC /tmp/otp_src_20.3.4/lib/erl_interface/obj.st/x86_64-unknown-linux-gnu/erl_marshal.o legacy/erl_marshal.c: In function 'erl_init_marshal': legacy/erl_marshal.c:110:5: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] memset(cmp_array, 0, CMP_ARRAY_SIZE); ^~~~~~ CMP_ARRAY_SIZE (256) is the number of elements in that array, but the elements are not char but enum, which is 4 bytes on e.g. x86-64. This results in 3/4 of the array not being correctly initialized. Idiomatic C is to pass sizeof cmp_array to memset(), so that's what I did.
* | Merge branch 'sverker/optimize-atom-enc-dec/ERIERL-150/OTP-15023' into maint-20Erlang/OTP2018-04-191-0/+62
|\ \ | | | | | | | | | | | | | | | * sverker/optimize-atom-enc-dec/ERIERL-150/OTP-15023: erl_interface: Optimize latin1_to_utf8 and friend ic: Optimize oe_ei_encode_atom
| * | erl_interface: Optimize latin1_to_utf8 and friendSverker Eriksson2018-04-191-0/+62
| | | | | | | | | | | | | | | to do word wise check/copy for pure ASCII if ARCH allows it (x86 and amd64).
* | | erl_interface: Fix ei_connectSverker Eriksson2018-04-182-4/+64
|/ / | | | | | | when ei_gethostbyname_r returns ERANGE.
* | Add toplevel xmllint make targetLukas Larsson2017-10-312-1/+3
| |
* | Update copyright yearRaimo Niskanen2017-05-047-7/+7
| |
* | Merge branch sverker/remove-latin1-atom-encoding/OTP-14337Sverker Eriksson2017-04-124-75/+26
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sverker/remove-latin1-atom-encoding: kernel: Fix erl_distribution_wb_SUITE:whitebox kernel: Remove pg2_SUITE:compat erts: Remove fun_r13_SUITE stdlib: Remove test cases for R12 io protocol kernel: Make DFLAG_UTF8_ATOMS mandatory kernel: Rewrite distribution flag verification tools: Update assumptions in lcnt about external atom format stdlib: Tweak beam_lib_SUITE whitebox assumptions orber: Remove hard dependency to external atom format kernel: Try mend disk_log whitebox tests erts: Mark latin1 atom encoding as deprecated jinterface: Do not generate atoms on old latin1 external format erl_interface: Do not generate atoms on old latin1 ext format erts: Do not generate atoms on old latin1 external format erts: Fix faulty ASSERT for failed dec_term
| * | erl_interface: Do not generate atoms on old latin1 ext formatSverker Eriksson2017-03-084-75/+26
| | | | | | | | | | | | | | | Solved by letting ei_encode_atom_as ignore 'to_enc' argument and always encode in UTF8 format.
* | | Merge branch 'goeldeepak/erts/fix_inet_gethost_long/ERL-61/PR-1345/OTP-14310'Lukas Larsson2017-03-302-4/+8
|\ \ \ | |/ / |/| | | | | | | | * goeldeepak/erts/fix_inet_gethost_long/ERL-61/PR-1345/OTP-14310: This patch fixes the issue in which erlang fails to start if the hostname is 64 characters on a linux system.
| * | This patch fixes the issue in which erlang fails to startDeepak Goel2017-03-222-4/+8
| |/ | | | | | | if the hostname is 64 characters on a linux system.
* | Fixed typos in lib/erl_interfaceAndrew Dryga2017-02-143-5/+5
|/
* erl_interface: Fix compile warning in erl_callBjörn-Egil Dahlberg2016-12-071-37/+36
|
* use only two low bits of creationAlexandre Snarskii2016-10-131-2/+2
|
* Merge branch 'sverker/erl_interface/vxworks-socklen_t' into maintSverker Eriksson2016-08-301-1/+1
|\
| * erl_interface: Fix faulty #if logicSverker Eriksson2016-08-191-1/+1
| |
* | erl_interface: Look for .erlang.cookie in windows directorySverker Eriksson2016-06-211-0/+6
| | | | | | | | | | the same as erlexec do to set -home command argument which is used to look for .erlang.cookie.
* | erl_interface: Refactor get_home()Sverker Eriksson2016-06-211-16/+18
|/ | | | by separating WIN32 and other implementation more.
* erl_interface: Fix trace level tracing on windowsLukas Larsson2016-06-141-0/+2
|
* Fix decoding of LLONG_MIN in erl_decodeBjörn-Egil Dahlberg2016-06-131-14/+26
| | | | Reported-by: Peter Lemenkov
* erl_interface: Let struct iovec * be visibleBjörn-Egil Dahlberg2016-06-071-2/+7
|
* Merge branch 'henrik/update-copyrightyear'Henrik Nord2016-04-13158-158/+158
|\ | | | | | | | | * henrik/update-copyrightyear: update copyright-year
| * update copyright-yearHenrik Nord2016-03-15158-158/+158
| |
* | erts: Add DFLAG_BIG_CREATIONSverker Eriksson2016-04-072-1/+3
| | | | | | | | | | to let future nodes know that we can handle NEW_PID_EXT, NEW_PORT_EXT and NEWER_REFERENCE_EXT.
* | erl_interface: Support 32-bit creation for pid,port,refsSverker Eriksson2016-04-0714-117/+237
|/
* Merge branch 'maint'Henrik Nord2016-02-151-12/+2
|\
| * ei: fix breakage reported by Sergei GolovanTuncer Ayaz2015-12-271-2/+2
| | | | | | | | | | | | 192c4a80c broke the build on at least Debian/Hurd and Debian/kFreeBSD, because it's not linux but still using glibc. To fix it, test for __GLIBC__ in addition to __linux__.
| * Revert "musl: fix gethostbyname_r/gethostbyaddr_ selection"Tuncer Ayaz2015-12-271-12/+2
| | | | | | | | | | | | | | This reverts commit 192c4a80c7d6fe9949aecb864901c4a3d9549f36. This breaks on Debian/Hurd, Debian/kFreeBSD, and possibly other platforms as well. Will be solved differently in a follow-up commit.
* | Merge branch 'maint'Zandra2015-11-241-2/+12
|\ \ | |/
| * musl: fix gethostbyname_r/gethostbyaddr_ selectionTuncer Ayaz2015-11-141-2/+12
| | | | | | | | | | | | | | | | | | To fix conditional selection of the actually available gethostbyname_r and gethostbyaddr_r, we replace __GLIBC__ with __linux__. @zenhack tested this to work with gcc and clang targeting glibc, uclibc, musl, and bionic. The proper way to check this is through configure.in.
* | Remove OSE from erl_interfaceLukas Larsson2015-07-101-63/+0
|/
* Change license text to APLv2Bruce Yinhe2015-06-18158-1566/+1724
|
* erl_interface: Move math.h include after eidef.hBjörn-Egil Dahlberg2015-06-021-3/+3
|
* erl_interface: Surround isfinite with HAVE_ISFINITE conditionalBjörn-Egil Dahlberg2015-06-021-0/+4
|
* erl_interface: Move isfinite definition to headerBjörn-Egil Dahlberg2015-06-022-21/+21
|
* erl_interface: Use isfinite instead of fpclassifyBjörn-Egil Dahlberg2015-06-021-4/+2
|
* Do not accept Nan and Infinity valuesDavid N. Welton2015-03-192-0/+22
| | | | | | Erlang does not accept these values, so we return an error in the C interface rather than letting them through to the Erlang VM, which rejects the message with a somewhat cryptic "bad external term".
* Add .appup fileRickard Green2014-12-082-5/+35
|
* Distribute autoconf helpersRickard Green2014-12-023-3842/+0
| | | | | | Distribute aclocal.m4, install-sh, config.guess, and config.sub to applications at build time instead of having multiple identical copies committed in the repository.
* erts: Use finite instead of isfinite with gccLukas Larsson2014-11-241-0/+11
| | | | | | | Turns out that isfinite emits a function call and not an instruction in gcc, this makes estone float arith about 50-75% slower. finite emits the instruction so we use that instead.
* Use isfinite() instead of finite() when availableAnthony Ramine2014-10-281-3/+8
| | | | | | | | | | | | | | | | | | OS X Mavericks builds result in a number of warnings about finite() being deprecated, like these: beam/erl_arith.c:451:7: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations] ERTS_FP_ERROR(p, f1.fd, goto badarith); ^ sys/unix/erl_unix_sys.h:319:33: note: expanded from macro 'ERTS_FP_ERROR' ^ sys/unix/erl_unix_sys.h:244:51: note: expanded from macro '__ERTS_FP_ERROR' ^ /usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA); Add checks to use isfinite() instead of finite() where available. Verified on OS X Mavericks 10.9.5 and Ubuntu 12.04.
* Add erl_interface and jinterface .app filesRickard Green2014-09-192-5/+53
|
* Fix misspellings of 'another'Tuncer Ayaz2014-08-252-2/+2
|
* Raspberry PI / Android a minimal cross-compile configurationDmitry Kolesnikov2014-03-212-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable a cross compile Erlang/OTP platform to Android or Raspberry PI using Android NDK. Port emulator and core application to support target HW platform. Exclude any add-on services required for OTP platform deployment into target hardware due to device fragmentation and jail-break requirements. * fix erts/emulator/beam/sys.h Disable redefinition of __noreturn macro * port erts/emulator/sys/unix/erl_child_setup.c Use techniques proposed by https://code.google.com/p/erlang4android to access system properties * fix erts/emulator/sys/unix/erl_unix_sys_ddll.c The static linking of emulator cannot find dlerror(), dlopen() symbols * port erts/emulator/sys/unix/sys.c make path to shell configurable at build time * port erts/etc/common/Makefile.in disable librt for *-linux-androideabi * port erts/lib_src/pthread/ethread.c Use techniques proposed by https://code.google.com/p/erlang4android to disable emulator crash if kernel threads are on. Replace unreliable pthread_sigmask() by sigprocmask() * port lib/erl_interface/src/connect/ei_connect.c Disable call to undefined gethostid() * port lib/erl_interface/src/connect/ei_resolve.c Use gethostbyname_r() on Android platform
* erts: Add distribution capability flag for maps DFLAG_MAP_TAGSverker Eriksson2014-03-142-3/+5
| | | | | This is just a preparation to allow detection of older nodes that do not understand maps (R16 and older).
* erl_interface: Add map support in ei_skip_termSverker Eriksson2014-03-101-2/+8
|
* erl_interface: Add ei encode/decode for mapsSverker Eriksson2014-03-064-4/+53
|