aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2013-09-23Update preloadedLukas Larsson
2013-09-23add {active,N} socket option for TCP, UDP, and SCTPSteve Vinoski
Add the {active,N} socket option, where N is an integer in the range -32768..32767, to allow a caller to specify the number of data messages to be delivered to the controlling process. Once the socket's delivered message count either reaches 0 or is explicitly set to 0 with inet:setopts/2 or by including {active,0} as an option when the socket is created, the socket transitions to passive ({active, false}) mode and the socket's controlling process receives a message to inform it of the transition. TCP sockets receive {tcp_passive,Socket}, UDP sockets receive {udp_passive,Socket} and SCTP sockets receive {sctp_passive,Socket}. The socket's delivered message counter defaults to 0, but it can be set using {active,N} via any gen_tcp, gen_udp, or gen_sctp function that takes socket options as arguments, or via inet:setopts/2. New N values are added to the socket's current counter value, and negative numbers can be used to reduce the counter value. Specifying a number that would cause the socket's counter value to go above 32767 causes an einval error. If a negative number is specified such that the counter value would become negative, the socket's counter value is set to 0 and the socket transitions to passive mode. If the counter value is already 0 and inet:setopts(Socket, [{active,0}]) is specified, the counter value remains at 0 but the appropriate passive mode transition message is generated for the socket. This commit contains a modified preloaded prim_inet.beam due to changes in prim_inet.erl. Add tests for {active,N} mode for TCP, UDP, and SCTP sockets. Add documentation for {active,N} mode for inet, gen_tcp, gen_udp, and gen_sctp.
2013-09-20Merge branch 'bjorn/erts/erlc-rewrite/OTP-11248'Björn Gustavsson
* bjorn/erts/erlc-rewrite/OTP-11248: Teach erlc to handle UTF-8 file names
2013-09-19Teach erlc to handle UTF-8 file namesBjörn Gustavsson
The 'erlc' program passes options to the 'erl' program using the '-s' option. The '-s' option causes all options to be converted to atoms, which implies that UTF-8 file names may not be given on the command line. We could solve just the UTF-8 problem by using '-run' and change the erl_compile module to expect strings instead of atoms, but since that is an incompatible change, we should take the opportunity to make more incompatible changes while we are at it. Specifically, when 'erlc' was first written, there was no way to pass command line arguments starting with '-' to Erlang, so 'erlc' did all parsing of arguments and translated options to atoms starting with a '@' character (for example, -I was translated to @i). Since then, the '-extra' option has been introduced which allows us to pass anything to Erlang at the end of the command line. Therefore, while at it, do the minimum of necessary command line parsing in the 'erlc' program (e.g. the '-smp' option), passing the command line essentially unchanged to 'erl' using the '-extra' option, and rewrite the option parsing in Erlang.
2013-09-18Merge branch 'maint'Fredrik Gustafsson
2013-09-18Merge branch 'maint-r16' into maintFredrik Gustafsson
2013-09-18Merge branch 'maint-r15' into maint-r16Fredrik Gustafsson
2013-09-17Merge tag 'OTP_R16B02'Magnus Lidén
The R16B02 release Conflicts: lib/sasl/vsn.mk
2013-09-16Prepare releaseOTP_R16B02Erlang/OTP
2013-09-16Update release noteserl_1252Erlang/OTP
2013-09-16Merge branch 'fredrik/sfwi-r15b03/OTP-11164' into maint-r15Erlang/OTP
* fredrik/sfwi-r15b03/OTP-11164: erts: reorganization of functions to r15b03 standards erts: bumped version number erts: Add the +sfwi system flag
2013-09-16erts: reorganization of functions to r15b03 standardsFredrik Gustafsson
2013-09-16erts: bumped version numberFredrik Gustafsson
2013-09-16erts: Add the +sfwi system flagRickard Green
+sfwi Interval Set scheduler forced wakeup interval. All run queues will be scanned each Interval milliseconds. While there are sleeping schedulers in the system, one scheduler will be woken for each non-empty run queue found. An Interval of zero disables this feature, which also is the default. This feature has been introduced as a temporary workaround for lengthy executing native code, and native code that do not bump reductions properly in OTP. When these bugs have be fixed the +sfwi flag will be removed. Conflicts: erts/doc/src/erl.xml erts/etc/common/erlexec.c
2013-09-13Merge branch 'maint'Magnus Lidén
2013-09-13Update system readme for R16B02Magnus Lidén
2013-09-13Merge branch 'maint'Magnus Lidén
2013-09-13Update preloaded modulesMagnus Lidén
2013-09-13Merge branch 'maint'Magnus Lidén
2013-09-13Update primary bootstrap app- and appup filesMagnus Lidén
2013-09-13Update primary bootstrapMagnus Lidén
2013-09-13Merge branch 'maint'Anders Svensson
2013-09-13Merge branch 'anders/diameter/R16B02_release/OTP-11322' into maintAnders Svensson
* anders/diameter/R16B02_release/OTP-11322: vsn -> 1.4.3 Update appup for diameter-1.4.3 in R16B02
2013-09-13Merge branch 'maint'Björn-Egil Dahlberg
2013-09-13Merge branch 'egil/fix-megaco-appup' into maintBjörn-Egil Dahlberg
* egil/fix-megaco-appup: megaco: Update appup file
2013-09-12vsn -> 1.4.3Anders Svensson
2013-09-12megaco: Update appup fileBjörn-Egil Dahlberg
2013-09-12Update appup for diameter-1.4.3 in R16B02Anders Svensson
2013-09-12Merge branch 'maint'Hans Bolinder
* maint: Correct documentation of predefined types crypto: Add ticket for 5d8a13bb6a180e0a
2013-09-12Merge branch 'hb/erts/refman_corrections/OTP-11321' into maintHans Bolinder
* hb/erts/refman_corrections/OTP-11321: Correct documentation of predefined types
2013-09-12Correct documentation of predefined typesHans Bolinder
The documentation of predefined types has been corrected Thanks to Kostis Sagonas.
2013-09-12crypto: Add ticket for 5d8a13bb6a180e0aSverker Eriksson
OTP-11320
2013-09-12Merge branch 'maint'Peter Andersson
2013-09-12Merge branch 'peppe/common_test/init_stop_problem' into maintPeter Andersson
* peppe/common_test/init_stop_problem: Make builtin hook respond to init:stop OTP-11175
2013-09-11Make builtin hook respond to init:stopPeter Andersson
2013-09-11Merge branch 'maint'Peter Andersson
2013-09-11Merge branch 'peppe/common_test/misc_r16b02_docs' into maintPeter Andersson
* peppe/common_test/misc_r16b02_docs: Add misc documentation OTP-11272 OTP-11263 OTP-11244 OTP-11238 OTP-11176
2013-09-11Add misc documentationPeter Andersson
2013-09-11Merge branch 'maint'Fredrik Gustafsson
2013-09-11Merge branch 'vinoski/sv/fix-sched-stats-disable/OTP-11317' into maintFredrik Gustafsson
* vinoski/sv/fix-sched-stats-disable/OTP-11317: fix system_flag(scheduling_statistics,disable)
2013-09-11Merge branch 'maint'Fredrik Gustafsson
Conflicts: erts/preloaded/ebin/erlang.beam
2013-09-11Merge branch 'jcomellas/jc-integer-to-binary2/OTP-11311' into maintFredrik Gustafsson
* jcomellas/jc-integer-to-binary2/OTP-11311: Update preloaded Fix incorrect values returned by integer_to_binary/2
2013-09-11Merge branch 'maint'Fredrik Gustafsson
2013-09-11Merge branch 'fenollp/parsetools/fix_unicode_leex/OTP-11313' into maintFredrik Gustafsson
* fenollp/parsetools/fix_unicode_leex/OTP-11313: parsetools: added testcase for unicode Missed a few similar calls Fix leex module`s inability to build unicode-aware lexers.
2013-09-10fix system_flag(scheduling_statistics,disable)Steve Vinoski
Clear the "enabled" flag for scheduling statistics when disable is specified.
2013-09-10parsetools: added testcase for unicodeFredrik Gustafsson
2013-09-10Missed a few similar callsPierre Fenoll
2013-09-10Fix leex module`s inability to build unicode-aware lexers.Pierre Fenoll
If you have declared your .xrl file as utf-8 encoded and that some of your definitions contain unicode characters, either leex wouldn`t be able to lex them or compilation of the .xrl file would crash.
2013-09-10Merge remote-tracking branch 'upstream/maint'Ingela Anderton Andin
2013-09-10Merge branch 'ia/prep-release/ssl' into maintIngela Anderton Andin
* ia/prep-release/ssl: ssl: Prepare for release