aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2018-03-26Merge pull request #1757 from c-bik/patch-1John Högberg
Fix a small typo
2018-03-26Merge branch 'raimo/type-posix-0-overhaul/ERL_550/OTP-14019'Raimo Niskanen
* raimo/type-posix-0-overhaul/ERL_550/OTP-14019: Update types for posix error codes
2018-03-26Update types for posix error codesRaimo Niskanen
I have read the man pages for most socket and file operations on recent Linux, FreeBSD, OpenBSD and Solaris 10 and noted the possible error codes. Which error codes that are possible for file operations have been updated in file:posix/0. Error codes for socket operations in inet:posix/0. The latter refers to the former so it is a superset, assuming that e.g sendfile and AF_UNIX socket operations could cause socket operations to return any file error code. That is not entirely true, but could be, especially in the future. Added to file:posix/0 are: ebadmsg edeadlk edeadlock eftype emultihop enobufs enolck enolink enosr enostr enosys eopnotsupp eoverflow erange etxtbsy Added to inet:posix/0 are all but: exbadport exbadseq file:posix() These are still possible according to erl_posix_str.c, but are not in file:posix/0 nor in inet:posix/0, and many of them are not file nor inet related, but some might be: e2big eadv ealign ebade ebadfd ebadr ebadrpc ebadrqc ebadslt ebfont echild echrng ecomm edirty edom edotdot eduppkg eidrm einit eisnam elbin el2hlt el2nsync el3hlt el3rst elibacc elibbad elibexec elibmax elibscn elnrng enavail enet enoano enocsi enodata enoexec enonet enosym enotempty enotnam enotuniq eproclim eprocunavail eprogmismatch eprogunavail erefused eremchg eremdev eremote eremoteio eremoterelease erpcmismatch erremote eshutdown esrmnt esuccesss etime etoomanyrefs euclean eunatch eusers eversion exfull sysnotready vernotsupported ediscon enomore ecancelled einvalidproctable einvalidprovider eproviderfailedinit syscallfailure service_not_found type_not_found e_no_more e_cancelled unknown
2018-03-26Merge pull request #1703 from juhlig/masterHans Bolinder
[ERL-557] add is_empty/1 to sets and ordsets OTP-14996, ERL-557, PR-1703
2018-03-23tests for is_empty/1j.uhlig
2018-03-23Merge branch 'rickard/signals/OTP-14589'Rickard Green
* rickard/signals/OTP-14589: Fix VM probes compilation Fix lock counting Fix signal order for is_process_alive Fix signal handling priority elevation
2018-03-23Merge pull request #1756 from zimmer7/xmerl_xsd_doc_typoLars Thorsén
Fix a simple typo in xmerl documentation
2018-03-23Merge branch 'hans/ssh/exec_fun_mfa/OTP-14851'Hans Nilsson
* hans/ssh/exec_fun_mfa/OTP-14851: ssh: Document the exec option ssh: Simplification of using fun:s as exec subsystems
2018-03-23ssh: Document the exec optionHans Nilsson
2018-03-23Merge branch 'hans/ssh/doc_fix_shell_return/OTP-14880'Hans Nilsson
* hans/ssh/doc_fix_shell_return/OTP-14880: ssh: Doc fix
2018-03-23ssh: Doc fixHans Nilsson
2018-03-22Merge branch 'sverker/enif-name-funcs/OTP-14994'Sverker Eriksson
2018-03-22crypto: Improve load error messageSverker Eriksson
to only suggest missing OpenSSL if dlopen fails (load_failed).
2018-03-22Fix signal order for is_process_aliveRickard Green
2018-03-22Merge branch 'sverker/test-chmod-restore'Sverker Eriksson
2018-03-22Merge pull request #1755 from bjorng/bjorn/compiler/lc/ERL-572/OTP-14992Björn Gustavsson
Point out the correct line in an exception for a bad generator
2018-03-22ssh: Simplification of using fun:s as exec subsystemsHans Nilsson
2018-03-22Documentation TypoBikram Chatterjee
2018-03-22Merge branch 'maint'Raimo Niskanen
* maint: Updated OTP version Update release notes Update version numbers ssh: Fix bad spec for double_algs() in ssh.hrl Test event insert from init Fix init to allow all actions Conflicts: OTP_VERSION
2018-03-21kernel: Restore x-permission of test directoriesSverker Eriksson
just to make it easier to do "rm -rf"
2018-03-21Update release notesErlang/OTP
2018-03-21Update version numbersErlang/OTP
2018-03-21Merge branch 'hans/ssh/spec_double_algs/OTP-14990' into maint-20Erlang/OTP
* hans/ssh/spec_double_algs/OTP-14990: ssh: Fix bad spec for double_algs() in ssh.hrl
2018-03-21Merge branch 'raimo/stdlib/fix-gen_statem-init-actions-check/OTP-13995' into ↵Erlang/OTP
maint-20 * raimo/stdlib/fix-gen_statem-init-actions-check/OTP-13995: Test event insert from init Fix init to allow all actions
2018-03-21Fix a simple typo in xmerl documentationAndreas Lappe
2018-03-21Point out the correct line in an exception for a bad generatorBjörn Gustavsson
When a generator in a list comprehension was given some other term than a list, the wrong line could be pointed out in the exception. Here is an example: bad_generator() -> [I || %%This line would be pointed out. I <- not_a_list]. https://bugs.erlang.org/browse/ERL-572
2018-03-21stdlib: Make benchmarks more robustHans Bolinder
statistics(runtime) does not seem to work on some virtual machines.
2018-03-21Merge pull request #1740 from rickard-green/rickard/signals/OTP-14589Rickard Green
Implementation of true asynchronous signaling between processes
2018-03-21Implementation of true asynchronous signaling between processesRickard Green
Communication between Erlang processes has conceptually always been performed through asynchronous signaling. The runtime system implementation has however previously preformed most operation synchronously. In a system with only one true thread of execution, this is not problematic (often the opposite). In a system with multiple threads of execution (as current runtime system implementation with SMP support) it becomes problematic. This since it often involves locking of structures when updating them which in turn cause resource contention. Utilizing true asynchronous communication often avoids these resource contention issues. The case that triggered this change was contention on the link lock due to frequent updates of the monitor trees during communication with a frequently used server. The signal order delivery guarantees of the language makes it hard to change the implementation of only some signals to use true asynchronous signaling. Therefore the implementations of (almost) all signals have been changed. Currently the following signals have been implemented as true asynchronous signals: - Message signals - Exit signals - Monitor signals - Demonitor signals - Monitor triggered signals (DOWN, CHANGE, etc) - Link signals - Unlink signals - Group leader signals All of the above already defined as asynchronous signals in the language. The implementation of messages signals was quite asynchronous to begin with, but had quite strict delivery constraints due to the ordering guarantees of signals between a pair of processes. The previously used message queue partitioned into two halves has been replaced by a more general signal queue partitioned into three parts that service all kinds of signals. More details regarding the signal queue can be found in comments in the erl_proc_sig_queue.h file. The monitor and link implementations have also been completely replaced in order to fit the new asynchronous signaling implementation as good as possible. More details regarding the new monitor and link implementations can be found in the erl_monitor_link.h file.
2018-03-21Merge branch 'bjorn/misc-beam-fixes'Björn Gustavsson
* bjorn/misc-beam-fixes: Correctly handle get_map_elements with a literal map core_parse: Fix handling of negative sizes in binaries
2018-03-21Merge pull request #1721 from josevalim/jv-no-messageanBjörn Gustavsson
Remove unused cerl_messagean module
2018-03-20ssh: Fix bad spec for double_algs() in ssh.hrlHans Nilsson
2018-03-20Merge pull request #1705 from eltex-ecss/group_exit_signalHans Nilsson
kernel: in the group added processing of 'EXIT' signal from shell OTP-14991
2018-03-20Merge pull request #1744 from uabboli/hasse/stdlib/lists_search/OTP-14675Hans Bolinder
stdlib: Add function lists:search/2
2018-03-20Merge pull request #1742 from michalmuskala/code-ensure-loadedDan Gudmundsson
Short-circuit code:ensure_loaded for already-loaded modules
2018-03-20Merge pull request #1748 from fenollp/more-typosHans Bolinder
More typos
2018-03-20Merge branch 'john/erts/fix-set-owner-group/ERL-589'John Högberg
* john/erts/fix-set-owner-group/ERL-589: Fix file:change_group/change_owner
2018-03-19update gb_sets doc to include is_empty/1 compat with sets and ordsetsj.uhlig
2018-03-19is_empty/1 for setsj.uhlig
2018-03-19is_empty/1 for ordsetsj.uhlig
2018-03-19core_parse: Fix handling of negative sizes in binariesBjörn Gustavsson
A literal negative size in binary construction would cause a crash.
2018-03-19Merge branch 'bjorn/compiler/misc-fixes'Björn Gustavsson
* bjorn/compiler/misc-fixes: Teach beam_utils:replace_labels/4 to handle recv_{mark,set} v3_kernel: Stop ensuring one return value in #k_try{} v3_kernel_pp: Print return variables for #k_try{}
2018-03-19Fix file:change_group/change_ownerJohn Högberg
It wasn't possible to change group/owner separately, and our test suite lacked coverage for that. ERL-589
2018-03-19Merge branch 'hans/ssh/faster_app_stop/OTP-14988'Hans Nilsson
* hans/ssh/faster_app_stop/OTP-14988: ssh: Remove deadlock in supervisor tree ssh: Remove spawn in ssh_system_sup:stop_system/1 ssh: Removed unused sshc_sup:stop_child/1
2018-03-19Merge branch 'hans/ssh/cuddle_tests_master'Hans Nilsson
* hans/ssh/cuddle_tests_master: ssh: Join basic and renegotiation suites and parallelize ssh: Parallelize ssh_basic_SUITE ssh: Parallelize ssh_renegotiate_SUITE ssh: Fix non-working test + add log in test suite
2018-03-17Test event insert from initRaimo Niskanen
2018-03-16ssh: Remove deadlock in supervisor treeHans Nilsson
2018-03-16ssh: Remove spawn in ssh_system_sup:stop_system/1Hans Nilsson
2018-03-16ssh: Removed unused sshc_sup:stop_child/1Hans Nilsson
2018-03-16ssh: Join basic and renegotiation suites and parallelizeHans Nilsson