summaryrefslogtreecommitdiff
path: root/lib/erl_interface/src
Commit message (Collapse)AuthorAgeFilesLines
...
* (memcheck) Uninitialized structure in gen_challengeOlivier Girondel2014-01-201-0/+1
|
* Silence two warnings about tests being always trueAnthony Ramine2013-12-022-2/+2
| | | | | | | | | | encode/encode_ulonglong.c:55:25: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] if ((p < 256) && (p >= 0)) { ~ ^ ~ legacy/erl_marshal.c:293:24: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] if ((ul < 256) && (ul >= 0)) { ~~ ^ ~
* Conditionally compile my_gethostbyname_r and my_gethostbyaddr_rAnthony Ramine2013-12-021-0/+7
| | | | | | | | | | | These are not needed when not on VXWORKS or without _REENTRANT. connect/ei_resolve.c:302:24: warning: unused function 'my_gethostbyname_r' [-Wunused-function] static struct hostent *my_gethostbyname_r(const char *name, ^ connect/ei_resolve.c:360:24: warning: unused function 'my_gethostbyaddr_r' [-Wunused-function] static struct hostent *my_gethostbyaddr_r(const char *addr, ^
* Silence a mismatching type pointer warning in ei_resolveAnthony Ramine2013-12-021-1/+1
| | | | | | | | | | | Why we are assigning a pointer to pointer to char to a pointer to char baffles me. The warning is: connect/ei_resolve.c:229:11: warning: incompatible pointer types assigning to 'char *' from 'char **'; dereference with * [-Wincompatible-pointer-types] *pptr = src_aliases; ^ ~~~~~~~~~~~ *
* Remove ^L characters hidden randomly in the code. Not those used in text ↵Pierre Fenoll2013-09-121-1/+1
| | | | | | | | files as delimiters. While working on a tool that processes Erlang code and testing it against this repo, I found out about those little sneaky 0xff. I thought it may be of help to other people build such tools to remove non-conforming-to-standard characters.
* ei ic: install headers and libs into usrLukas Larsson2013-08-291-0/+4
|
* erl_interface: check if file descriptor is valid before closingFredrik Gustafsson2013-05-081-1/+2
|
* Update copyright yearsBjörn-Egil Dahlberg2013-02-222-2/+2
|
* Merge branch 'sverk/erlang_pid-revert'Sverker Eriksson2013-02-2210-17/+33
|\ | | | | | | | | | | * sverk/erlang_pid-revert: erl_interface: Fix some warnings in test code erl_interface,ic: Remove node_org_enc from erlang_{pid,port,ref}
| * erl_interface,ic: Remove node_org_enc from erlang_{pid,port,ref}Sverker Eriksson2013-02-1810-17/+33
| | | | | | | | | | | | | | | | | | | | | | in order to be backward compatible with user code that accesses the members of erlang_pid and friend. The documentation does not mention the content of these structs, but we have example code that does. So the safe way it the revert the node_org_enc field (added in R16A) and instead determine in runtime which atom encoding to use depending on if the node atom contains unicode (>255) characters or not.
* | Update config.guess and config.sub to latest versionsLukas Larsson2013-02-142-367/+541
|/
* erl_interface: Fixup of b069306, typdef enum erlang_char_encodingSverker Eriksson2013-02-111-1/+1
|
* Merge branch 'sverk/erl_interface-enum-typedef'Sverker Eriksson2013-02-087-25/+25
|\ | | | | | | | | * sverk/erl_interface-enum-typedef: erl_interface: Change enum erlang_char_encoding to a typedef
| * erl_interface: Change enum erlang_char_encoding to a typedefSverker Eriksson2013-02-077-25/+25
| | | | | | | | to make the API independent of the actual type of erlang_char_encoding
* | erl_interface: Fix ei_skip_termSverker Eriksson2013-01-306-41/+72
|/
* Merge branch 'lukas/erl_interface/test_atom_as_functions/OTP-10753'Lukas Larsson2013-01-282-33/+51
|\ | | | | | | | | | | | | * lukas/erl_interface/test_atom_as_functions/OTP-10753: Return if size test fails Add utf8 atom encode and decode testcases Validate UTF8/ASCII when buf is NULL
| * Return if size test failsLukas Larsson2013-01-251-16/+32
| | | | | | | | | | This is needed in order to avoid potential buffer overruns in the encode functions
| * Validate UTF8/ASCII when buf is NULLLukas Larsson2013-01-252-17/+19
| |
* | Update copyright yearsBjörn-Egil Dahlberg2013-01-2531-31/+31
|/
* Merge branch 'sverk/r16/utf8-atoms'Sverker Eriksson2013-01-2329-498/+830
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sverk/r16/utf8-atoms: erl_interface: Fix bug when transcoding atoms from and to UTF8 erl_interface: Changed erlang_char_encoding interface erts: Testcase doing unicode atom printout with ~w erl_interface: even more utf8 atom stuff erts: Fix bug in analyze_utf8 causing faulty latin1 detection Add UTF-8 node name support for epmd workaround... Fix merge conflict with hasse UTF-8 atom documentation test case erl_interface: utf8 atoms continued Add utf8 atom distribution test cases atom fixes for NIFs and atom_to_binary UTF-8 support for distribution Implement UTF-8 atom support for jinterface erl_interface: Enable decode of unicode atoms stdlib: Fix printing of unicode atoms erts: Change internal representation of atoms to utf8 erts: Refactor rename DFLAG(S)_INTERNAL_TAGS for conformity Conflicts: erts/emulator/beam/io.c OTP-10753
| * erl_interface: Fix bug when transcoding atoms from and to UTF8Lukas Larsson2013-01-231-2/+2
| |
| * erl_interface: Changed erlang_char_encoding interfaceSverker Eriksson2013-01-233-6/+5
| | | | | | | | to allow bitwise-or'd combinations.
| * erl_interface: even more utf8 atom stuffSverker Eriksson2013-01-227-8/+69
| |
| * erl_interface: utf8 atoms continuedSverker Eriksson2013-01-1827-377/+650
| |
| * erl_interface: Enable decode of unicode atomsSverker Eriksson2013-01-0810-201/+200
| | | | | | | | | | | | No API changes or additions. Just the ability for erl_interface to decode unicode atoms and convert them into latin1 strings to preserve backward compatibility for the existing API.
* | Implement ./otp_build configure --enable-silent-rulesAnthony Ramine2013-01-152-69/+81
|/ | | | | | With silent rules, the output of make is less verbose and compilation warnings are easier to spot. Silent rules are disabled by default and can be disabled or enabled at will by make V=0 and make V=1.
* erl_interface: Avoid redefinition of ALIGNBYTESBjörn-Egil Dahlberg2012-10-101-3/+5
| | | | Changed to EI_ALIGNBYTES
* Update copyright yearsBjörn-Egil Dahlberg2012-08-311-1/+1
|
* Update to work with whitespace in exec pathLukas Larsson2012-06-051-25/+25
| | | | | OTP-10106 OTP-10107
* Update copyright yearsBjörn-Egil Dahlberg2012-03-301-1/+1
|
* ei: Remove unused variable in ei_format.cBjörn-Egil Dahlberg2012-01-031-2/+1
|
* Update copyright yearsBjörn-Egil Dahlberg2011-12-092-2/+2
|
* Only step pointer arity stepsLukas Larsson2011-12-081-1/+1
| | | | | | | Don't know why the 1 was there, it does however cause the buffer to overflow when decoding the atoms from rex. OTP-9799
* Make whole of OTP build and release on Win64Patrik Nyblom2011-12-023-3/+3668
| | | | Removed symbolic links from repository.
* Build Win64 Erlang emulator using MSYSunknown2011-12-021-1/+3
| | | | Still does not run, just compiles.
* Merge branch 'dev' into majorBjörn-Egil Dahlberg2011-09-293-3/+3
|\ | | | | | | | | * dev: Update copyright years
| * Update copyright yearsBjörn-Egil Dahlberg2011-09-293-3/+3
| |
* | Merge branch 'dev' into majorHenrik Nord2011-09-204-7/+13
|\ \ | |/ | | | | | | | | Conflicts: erts/aclocal.m4 erts/include/internal/ethread_header_config.h.in
| * Merge branch 'ac/fix-erl_interface-docs' into devHenrik Nord2011-09-201-5/+5
| |\ | | | | | | | | | | | | | | | | | | | | | * ac/fix-erl_interface-docs: Make comment reflect code in erl_interface/src/misc/ei_decode_term.c ei_decode_ei_term() returns 1 if index is incremented OTP-9559
| | * Make comment reflect code in erl_interface/src/misc/ei_decode_term.cAnneli Cuss2011-09-071-5/+5
| | | | | | | | | | | | | | | Note that ei_decode_term.h has the correct behaviour described! Also removed extraneous '/* return 0; */' comments.
| * | Merge branch 'cr/cppcheck' into devHenrik Nord2011-09-203-2/+8
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | * cr/cppcheck: Changes inspired by running cppcheck(1) OTP-9557
| | * | Changes inspired by running cppcheck(1)Christian von Roques2011-09-063-2/+8
| | |/
* | | Merge branch 'dev' into majorHenrik Nord2011-09-082-2/+10
|\ \ \ | |/ /
| * | Merge branch 'ms/ei-int-overflow-in-string-atom-enc' into devHenrik Nord2011-09-082-2/+10
| |\ \ | | |/ | |/| | | | | | | | | | | | | * ms/ei-int-overflow-in-string-atom-enc: ei: integer overflow in string/atom encoding OTP-9530
| | * ei: integer overflow in string/atom encodingMichael Santos2011-06-072-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | ei_encode_atom() and ei_encode_string() use strlen() to get the length of the buffer. As strlen() returns an unsigned long long and both ei functions take a signed integer, the length fields may overflow. Check the results of strlen can be held in a signed integer.
* | | erl_interface: Support parallel makeBjörn Gustavsson2011-08-081-33/+1
|/ /
* | Align ei buffer according to size of pointersBjörn-Egil Dahlberg2011-06-291-1/+6
|/
* Update copyright yearsBjörn-Egil Dahlberg2011-05-201-1/+1
|
* Remove unused variable in epmd_portBjörn-Egil Dahlberg2011-05-171-5/+2
|
* Merge branch 'gl/erl_do_receive_msg/OTP-9241' into devBjörn-Egil Dahlberg2011-05-111-0/+5
|\ | | | | | | | | * gl/erl_do_receive_msg/OTP-9241: The function 'erl_xreceive_msg' returned garbage in the 'to' and 'to_name' members of the message. The reason for that was found in the 'erl_do_receive_msg' function. When no 'pid' is provided by the sender, like when doing rpc calls as those uses registered name sends, it doesn't initialize the 'to' member and also the 'to_name' member is copied by the function.