Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: slfritchie/otp
...
head fork: IngelaAndin/otp
Checking mergeability… Don't worry, you can still create the pull request.
This comparison is big! We're only showing the most recent 250 commits
Commits on Jan 27, 2010
@jinsky jinsky Fix re:replace/4 to handle unicode charlist Replacement argument
A bug in re:replace/4 causes a badarg exception to be thrown when the
Replacement argument is a charlist containing non-ascii codepoints.

The problem is that the code incorrectly assumes that the Replacement
text is iodata() and calls iolist_to_binary/1 on it. This patch fixes
it to obey the 'unicode' option and handle charlist() Replacement
arguments correctly.
cf7e585
@jinsky jinsky Refactor out repeated block in re module ff65b85
@bufflig bufflig Fix lost unicode option in re:compile()
Noticed-by: Rory Byrne
6b83b64
Erlang/OTP Merge branch 'rb/stdlib_re_unicode_fixes' into ccase/r13b04_dev
* rb/stdlib_re_unicode_fixes:
  Fix lost unicode option in re:compile()
  Refactor out repeated block in re module
  Fix re:replace/4 to handle unicode charlist Replacement argument
  Fix re:replace/4 to handle unicode charlist RE argument
  Fix re:replace/4 to handle binary unicode output when nothing replaced

OTP-8394  A number of bugs concerning re and unicode are corrected:
          - re:compile no longer loses unicode option, which also fixes bug
            in re:split.
          - re:replace now handles unicode charlist replacement argument
          - re:replace now handles unicode RE charlist argument correctly
          - re:replace now handles binary unicode output correctly when
          nothing is replaced.

          Most code, testcases and error isolation done by Rory Byrne.
8beea46
@bjorng bjorng Update preloaded files fabf2e7
Mikael Pettersson fix hipe loader SMP non-atomicity error
Loading native code is a multi-step operation that needs to be
atomic, but the HiPE loader failed to ensure that.
This caused corruption of runtime system structure in some cases.

Fix by blocking multi_scheduling around main loader entry points.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
38cec58
Mikael Pettersson work around hipe_mfa_info_table lock omission
HiPE maintains per-MFA information such as native code entry
point in a table. This table was thought to be read-only at
runtime, except when the loader populates it, so it employed
no locking. That turned out to be incorrect: if there is an
apply of a previously unseen MFA, a native code stub for that
MFA is created and recorded in the table, causing it to grow.

Work around this for now by slapping a mutex around accesses
to that table.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
24146d3
Commits on Jan 29, 2010
@lthor lthor OTP-8343 The documentation is now possible to build in an open source
          environment after a number of bugs are fixed and some features
          are added in the documentation build process.

          - The arity calculation is updated.

          - The module prefix used in the function names for bif's are
          removed in the generated links so the links will look like
          "http://www.erlang.org/doc/man/erlang.html#append_element-2"
          instead of
          "http://www.erlang.org/doc/man/erlang.html#erlang:append_element-
          2".

          - Enhanced the menu positioning in the html documentation when a
          new page is loaded.

          - A number of corrections in the generation of man pages (thanks
          to Sergei Golovan)

          - The legal notice is taken from the xml book file so OTP's build
          process can be used for non OTP applications.
cbc470b
@jdavisp3 jdavisp3 Move code skeletons to a separate file.
Use the updated skeletons from the Erlware Mode.
b4fd161
@dgud dgud Added the old style skeletons, and a variable to change. 2cbe853
@bjorng bjorng Test suites: fix creation of Emakefiles
The Emakefiles in some test suite directories are only appended
to, never created from scratch, which can cause problems
especially when swithching branches in a git repository.
b8b3a8c
@bjorng bjorng stdlib tests: modernize guard tests
Don't change any guard tests in the id_transform_SUITE
module, because it intentionally use the old guard tests
to test that id_transform can handle them.
ac3d53f
@bjorng bjorng unicode_SUITE: replace deprecated concat_binary/1 with list_to_binary/1 0cd1623
@bjorng bjorng kernel tests: modernize guard tests fc1ddbb
@bjorng bjorng file_SUITE: eliminate a warning for an unused variable a656a27
Commits on Jan 30, 2010
Erlang/OTP Merge branch 'mp/hipe-smp-fixes' into ccase/r13b04_dev
* mp/hipe-smp-fixes:
  work around hipe_mfa_info_table lock omission
  fix hipe loader SMP non-atomicity error

OTP-8397  The loading of native code was not properly atomic in the SMP
          emulator, which could cause crashes. Also a per-MFA information
          table for the native code has now been protected with a lock
          since it turns that it could be accessed concurrently in the SMP
          emulator. (Thanks to Mikael Pettersson.)
1cfb7ea
Erlang/OTP Merge branch 'ta/ensure_dir_eexist' into ccase/r13b04_dev
* ta/ensure_dir_eexist:
  filelib_SUITE: strenghten tests of filelib:ensure_dir/1
  Don't return a false {error,eexist} in filelib:ensure_dir/1

OTP-8389  Because of a race condition, using filelib:ensure_dir/1 from
          multiple processes to create the same path or parts of the same
          directory structure, filelib:ensure_dir/1 could return a
          meaningless {error,eexist}. That race condition has been
          eliminated, and {error,eexist} will now be returned only if there
          exists a regular file, device file, or some other non-directory
          file with the same name. (Thanks to Tuncer Ayaz.)
3add162
@bjorng bjorng Update copyright header d91db9e
@bjorng bjorng Teach the compiler the no_native option
Implement the 'no_native' option to disable native-code
compilation. If given in a module like this:

-compile(no_native).

it will override a 'native' option given on the command
line.
fe14832
@bjorng bjorng re tests: disable native-code compilation for huge modules
Two generated modules contains too big functions for the
native-code compiler to handle (even the BEAM compiler
struggles when compiling them).
24e2773
@bjorng bjorng compiler: make ignore_native_errors also handle internal hipe errors
We must also catch exits, not only errors, since the hipe
compilers does an exit/1 if an internal error is found.
9e2ac0d
Commits on Jan 31, 2010
Erlang/OTP Merge branch 'bg/cleanup-tests' into ccase/r13b04_dev
* bg/cleanup-tests:
  file_SUITE: eliminate a warning for an unused variable
  kernel tests: modernize guard tests
  unicode_SUITE: replace deprecated concat_binary/1 with list_to_binary/1
  stdlib tests: modernize guard tests
  Test suites: fix creation of Emakefiles
07bf3fd
@rickard-green rickard-green hipe_mfait_lock needs to be below proc_main. 6c58ea4
@bjorng bjorng kernel/src/Makefile: fix broken 'clean' target ed2c7a2
Commits on Feb 01, 2010
Erlang/OTP Merge branch 'bg/hipe-fixes' into ccase/r13b04_dev
* bg/hipe-fixes:
  compiler: make ignore_native_errors also handle internal hipe errors
  re tests: disable native-code compilation for huge modules
  Teach the compiler the no_native option
710c91f
@lthor lthor OTP-8343 The documentation is now possible to build in an open source
          environment after a number of bugs are fixed and some features
          are added in the documentation build process.

          - The arity calculation is updated.

          - The module prefix used in the function names for bif's are
          removed in the generated links so the links will look like
          "http://www.erlang.org/doc/man/erlang.html#append_element-2"
          instead of
          "http://www.erlang.org/doc/man/erlang.html#erlang:append_element-
          2".

          - Enhanced the menu positioning in the html documentation when a
          new page is loaded.

          - A number of corrections in the generation of man pages (thanks
          to Sergei Golovan)

          - The legal notice is taken from the xml book file so OTP's build
          process can be used for non OTP applications.
b043122
Niclas Eklund In some cases SSH ceased to collect more data from the transport layer. 766e91d
Niclas Eklund Missing EIX file added 4d5d5c0
@bjorng bjorng Add test suite for parsetools 921925b
@capflam capflam epp: fix bug in the function scan_undef
The dict St#epp.uses that helps to find circular macros was not correctly
updated.
0d15f8a
@capflam capflam epp: Add support of macros overloading
This feature simplifies the definition of macros by avoiding to have a
different name for each version (with different arities) of the same
macros. New rules:
- can have multiple definitions of the same macro with different arities
- cannot overload macro with the same arity
- the overloading of predefined macros (?MODULE, ?LINE, ...) is forbidden
- the directive '-undef' removes all definitions of a macro
5023556
@capflam capflam epp: change rules to choose the right version of a macro
Now, when we have only the constant definition of a macro (without
arguments), we always use it. In all other cases, we try to find the
exact matching definition. We throw an error if we don't find it.
27d7ca0
@capflam capflam update the documentation on preprocessor in the reference manual
New section added on Macros Overloading
4c18274
Hans Bolinder documentation: Macros overloading partly rewritten c416896
Hans Bolinder Minor corrections and clean-ups ec618ee
Hans Bolinder epp_SUITE: Increase code coverage 77a1272
Hans Bolinder yecc_SUITE: Adjustment for modified error tuple 1ab56cb
Commits on Feb 02, 2010
@igorrs igorrs Add option to compress data when copying tables between Mnesia nodes
Optionally using data compression for copying Mnesia tables allows
the system to be tuned to eliminate network bottlenecks from
deployments where enough CPU is available to use zlib.

With this patch, running erl -mnesia send_compressed <level>
will enable compression for sending tables between nodes. The
compression level can be any integer in [0, 9], with 0 (the
default) meaning no compression (exactly the previous behaviour)
and 9 being the highest compression level.

To set any non-zero compression level at the sender, both nodes
must have the updated Mnesia modules (the receiver will work
according to the sender's configuration).
3757d8f
Erlang/OTP Merge branch 'sf/erl_match-longlong' into ccase/r13b04_dev
* sf/erl_match-longlong:
  erl_interface: Allow erl_match() to match ERL_LONGLONG and ERL_U_LONGLONG terms

OTP-8400  Allow erl_match() to match ERL_LONGLONG and ERL_U_LONGLONG terms
          (Thanks to Scott Lystig Fritchie).
f9fef81
@bmk bmk OTP-8317 & OTP-8362. f91fcac
Erlang/OTP Merge branch 'cf/epp-macro-overloading' into ccase/r13b04_dev
* cf/epp-macro-overloading:
  yecc_SUITE: Adjustment for modified error tuple
  epp_SUITE: Increase code coverage
  Minor corrections and clean-ups
  documentation: Macros overloading partly rewritten
  update the documentation on preprocessor in the reference manual
  epp: change rules to choose the right version of a macro
  epp: Add support of macros overloading
  epp: fix bug in the function scan_undef

OTP-8388  Macros overloading has been implemented. (Thanks to Christopher
          Faulet.)
085012b
@klyr klyr Add the +t emulator option to change the maximum number of atoms
It is now possible to increase or decrease the maximum number of atoms
the VM can handle. The default value is 1048576 (1024*1024).
4895776
@bjorng bjorng Update copyright headers 153e204
@dgud dgud Added wxListCtrl:getEditCtrl (not available on Mac) e6433fc
@dgud dgud Added tests for wxListCtrl:getItem/2. aa17e2b
@bjorng bjorng Do not emit trailing whitespace ce3cd31
@bjorng bjorng Fix correct starting copyright year 5b585a4
@bjorng bjorng Generate without trailing spaces cfd2ba4
Commits on Feb 03, 2010
@rickard-green rickard-green OTP-8386 Immediately repeated multi-scheduling block/unblock cycles u…
…sing

          erlang:system_flag(multi_scheduling, block | unblock) could
          deadlock the runtime system.
768da5a
@psyeugenic psyeugenic Update .gitignore files 2f1da83
@bjorng bjorng Ignore files generated when running/building tests c53fe4b
Håkan Mattsson OTP-8058 The GUI parts are rewritten to use wxWidgets. Thanks Olle
          Mattsson!

          For the time being it is still possible to use the old GS based
          version of the tool, but it is deprecated. The wxWidgets based
          version is started by default.

          A new tutorial has been added to the documentation. It is based
          on Jayson Vantuyl's article
          http://souja.net/2009/04/making-sense-of-erlangs-event-tracer.htm
          l.

          The functions et:trace_me/4 and et:trace_me/5 has been introduced
          in order to replace the deprecated functions et:report_event/4
          and et:report_event/5. Hopefully the new names makes it a little
          more obvious what the intended usage of the functions are.

          A print function has been added to the GUI, in order to enable
          printing of sequence charts.

          More functionality for hiding unwanted events has been added to
          the GUI.

          The max_events, hide_unknown and display_mode configuration
          parameters to et_viewer is not used any more. Now the event cache
          in the Viewer only contains those events that actually are
          displayed in the GUI.
43f3482
@bmk bmk Removed obsoleted RFC (3266). 05f4ff8
Erlang/OTP Merge branch 'jb/atom-table-size' into ccase/r13b04_dev
* jb/atom-table-size:
  Add the +t emulator option to change the maximum number of atoms

OTP-8405  There is a new +t emulator option for changing the maximum number
          of atoms. (Thanks to Julien Barbot.)
b431080
Erlang/OTP Merge branch 'is/mnesia-send-compressed' into ccase/r13b04_dev
* is/mnesia-send-compressed:
  Add option to compress data when copying tables between Mnesia nodes

OTP-8406  Igor Ribeiro Sucupira added the option to compress data when
          copying tables between Mnesia nodes.
45f6d10
Håkan Mattsson OTP-8058 The GUI parts are rewritten to use wxWidgets. Thanks Olle
          Mattsson!

          For the time being it is still possible to use the old GS based
          version of the tool, but it is deprecated. The wxWidgets based
          version is started by default.

          A new tutorial has been added to the documentation. It is based
          on Jayson Vantuyl's article
          http://souja.net/2009/04/making-sense-of-erlangs-event-tracer.htm
          l.

          The functions et:trace_me/4 and et:trace_me/5 has been introduced
          in order to replace the deprecated functions et:report_event/4
          and et:report_event/5. Hopefully the new names makes it a little
          more obvious what the intended usage of the functions are.

          A print function has been added to the GUI, in order to enable
          printing of sequence charts.

          More functionality for hiding unwanted events has been added to
          the GUI.

          The max_events, hide_unknown and display_mode configuration
          parameters to et_viewer is not used any more. Now the event cache
          in the Viewer only contains those events that actually are
          displayed in the GUI.

          Some minor bugs has been fixed. Such as a cleaning up trace
          patterns at termination and displaying events with detail level
          100.
639e0b2
@rickard-green rickard-green OTP-8323 Cross compilation improvements and other build system
          improvements.

          Most notable:

          Lots of cross compilation improvements. The old cross compilation
          support was more or less non-existing as well as broken. Please,
          note that the cross compilation support should still be
          considered as experimental. Also note that old cross compilation
          configurations cannot be used without modifications. For more
          information on cross compiling Erlang/OTP see the
          $ERL_TOP/xcomp/README file.

          Support for staged install using <url
          href="http://www.gnu.org/prep/standards/html_node/DESTDIR.html">D
          ESTDIR</url>. The old broken INSTALL_PREFIX has also been fixed.
          For more information see the $ERL_TOP/README file.

          Documentation of the release target of the top Makefile. For more
          information see the $ERL_TOP/README file.

          make install now by default creates relative symbolic links
          instead of absolute ones. For more information see the
          $ERL_TOP/README file.

          $ERL_TOP/configure --help=recursive now works and prints help for
          all applications with configure scripts.

          Doing make install, or make release directly after make all no
          longer triggers miscellaneous rebuilds.

          Existing bootstrap system is now used when doing make install, or
          make release without a preceding make all.

          The crypto and ssl applications use the same runtime library path
          when dynamically linking against libssl.so and libcrypto.so. The
          runtime library search path has also been extended.

          The configure scripts of erl_interface and odbc now search for
          thread libraries and thread library quirks the same way as erts
          do.

          The configure script of the odbc application now also looks for
          odbc libraries in lib64 and lib/64 directories when building on a
          64-bit system.

          The config.h.in file in the erl_interface application is now
          automatically generated in instead of statically updated which
          reduces the risk of configure tests without any effect.
1b78e85
@bmk bmk OTP-8317, OTP-8323 (rickard) & OTP-8362. 3e74a8a
@bmk bmk OTP-8395: Sequence number in Audit Trail Logs. 76e9c68
Commits on Feb 04, 2010
@bmk bmk OTP-8317, OTP-8323, OTP-8362 & OTP-8403 (hakan). 3d02efe
@dgud dgud OTP-8402 Transactions could be left hanging if a node went down when
          invoking mnesia:sync_transaction/[1,2]. Thanks Igor Ribeiro
          Sucupira.
2a0a4a2
Niclas Eklund Removed the usage of the codeinclude tag in the documentation. 57177e1
@rickard-green rickard-green Fixed an erroneous assertion. fad1a15
@psyeugenic psyeugenic Fix egd_render transparent to use float constants
The render engine has float guards to enhance beam code
generation. However, the default case used integers which
caused the engine to crash.

This is now fixed.
e7842b4
Commits on Feb 05, 2010
@rickard-green rickard-green Fixed erroneous assertion. fac0d93
@tuncer tuncer Fix typo in kernel/test/code_SUITE
There was a small typo in the doc function clause of ext_mod_dep.

Signed-off-by: Tuncer Ayaz <tuncer.ayaz@gmail.com>
f284697
@bjorng bjorng OTP-8404: Doc: some corrections and improvements in STDLIB e5d4b0b
Hans Bolinder OTP-8393 The new function shell:prompt_func/1 and the new application
          configuration parameter shell_prompt_func can be used for
          customizing the Erlang shell prompt.
0949cc8
@tuncer tuncer Fix handling of archive (.ez) files in code:clash/0
code:clash/0 did not take into account .ez files
when listing contents of code path entries.
Using erl_prim_loader:list_dir/1 instead of
file:list_dir/1 fixes the problem.

Signed-off-by: Tuncer Ayaz <tuncer.ayaz@gmail.com>
49da83d
Erlang/OTP Merge branch 'egil/gitignore' into ccase/r13b04_dev
* egil/gitignore:
  Ignore files generated when running/building tests
  Update .gitignore files

OTP-8411: egil/gitignore
2e6ff4b
Erlang/OTP Merge branch 'dgud/wx_list_ctrl' into ccase/r13b04_dev
* dgud/wx_list_ctrl:
  Generate without trailing spaces
  Fix correct starting copyright year
  Do not emit trailing whitespace
  Added tests for wxListCtrl:getItem/2.
  Added wxListCtrl:getEditCtrl (not available on Mac)

OTP-8408  Added wxListCtrl:getEditCtrl/1 (not available on Mac).
e76fa2f
Commits on Feb 06, 2010
@rickard-green rickard-green Silenced erroneous "git: not found" printout on solaris. c6bf34b
@tuncer tuncer Add tests for code:clash/0
Add first batch of tests for code:clash/0.

Signed-off-by: Tuncer Ayaz <tuncer.ayaz@gmail.com>
79194d5
@bjorng bjorng code_SUITE: add missing is_list(Config) guard c390221
@dotsimon dotsimon Implement a non-blocking SCTP connect
This patch adds a new set of functions - gen_sctp:connect_init/* that initiate
an SCTP connection without blocking for the result. The result is delivered
asynchronously as an sctp_assoc_change event.

The new functions have the same API as documented for gen_sctp:connect/* with
the following exceptions:

* Timeout is only used to supervise resolving Addr (the peer address)
* The possible return values are ok | {error, posix()}

The caller application is responsible for receiving the #sctp_assoc_change{}
event and correctly determining the connect it originated from (for example,
by examining the remote host and/or port). The application should have at
least {active, once} or use gen_sctp:recv to retrieve the connect result.

The implementation of gen_sctp:connect suffers from a number of
shortcomings which the user may avoid by using gen_sctp:connect_init and
adding code to receive the connect result.

First, irrespective of the Timeout value given to gen_sctp:connect, the OS
attempts and retries the SCTP INIT according to various kernel parameters. If
the Timeout value is shorter than the entire attempt then the application will
still receive an sctp_assoc_change event after the {error, timeout} is
returned from the initial call. This could be somewhat confusing (either to
the application or the designer!) especially if the status is
comm_up. Subsequent calls to connect before the OS has finished this process
return {error, ealready} which may also be counter-intuitive.

Second, there is a race-condition (documented in comments in inet_sctp.erl)
that can cause the wrong sctp_assoc_change record to be returned to an
application calling gen_sctp:connect. The race seriously affects connection
attempts when using one-to-many sockets.
827bb85
@bufflig bufflig Teach configure --enable-m32-build for forcing a 32-bit build cad901a
@archaelus archaelus Allow configure to enable_hipe for darwin/amd64 builds 8421cad
@archaelus archaelus Automatically enable hipe for darwin/amd64 builds 022fa2d
@archaelus archaelus Porting x86 darwin fixes to amd64 darwin hipe asm/m4 code
Compared to GNU as, Mac OS X's assembler uses different directives for
text and global sections, and omits type and size directives
entirely. We also need to mangle symbol names in order to allow
linking with C object files.
d17dd27
@archaelus archaelus Fix hipe memory allocation problems on darwin/amd64
HiPE on amd64 needs to be able to allocate memory in the 0x20000000+
range so that compiled code will be addressable with 32bit pointers
(when sign extended). By default, when building 64bit executables on
OS X, PAGEZERO occupies the first 4GB of virtual memory. The PAGEZERO
segment cannot be mmap(ed) or vm_allocate(d) into.

To avoid this problem we use the -pagezero_size linker flag to reduce
the size of PAGEZERO and free up the 0x20000000+ space.
56c0170
Commits on Feb 07, 2010
Erlang/OTP Merge branch 'ta/code_clash_ez' into ccase/r13b04_dev
* ta/code_clash_ez:
  code_SUITE: add missing is_list(Config) guard
  Add tests for code:clash/0
  Fix handling of archive (.ez) files in code:clash/0

OTP-8413  code:clash/0 now looks inside archives (.ez files). (Thanks to
          Tuncer Ayaz.)
ea35770
Commits on Feb 08, 2010
Erlang/OTP Merge branch 'po/odbc-update-delete-no-rows' into ccase/r13b04_dev
* po/odbc-update-delete-no-rows:
  SQL_NO_DATA and SQLSTATE 00000 indicate success for updates/deletes that affect no rows
62718c9
@rickard-green rickard-green OTP-8323 Cross compilation improvements and other build system
          improvements.

          Most notable:

          Lots of cross compilation improvements. The old cross compilation
          support was more or less non-existing as well as broken. Please,
          note that the cross compilation support should still be
          considered as experimental. Also note that old cross compilation
          configurations cannot be used without modifications. For more
          information on cross compiling Erlang/OTP see the
          $ERL_TOP/xcomp/README file.

          Support for staged install using <url
          href="http://www.gnu.org/prep/standards/html_node/DESTDIR.html">D
          ESTDIR</url>. The old broken INSTALL_PREFIX has also been fixed.
          For more information see the $ERL_TOP/README file.

          Documentation of the release target of the top Makefile. For more
          information see the $ERL_TOP/README file.

          make install now by default creates relative symbolic links
          instead of absolute ones. For more information see the
          $ERL_TOP/README file.

          $ERL_TOP/configure --help=recursive now works and prints help for
          all applications with configure scripts.

          Doing make install, or make release directly after make all no
          longer triggers miscellaneous rebuilds.

          Existing bootstrap system is now used when doing make install, or
          make release without a preceding make all.

          The crypto and ssl applications use the same runtime library path
          when dynamically linking against libssl.so and libcrypto.so. The
          runtime library search path has also been extended.

          The configure scripts of erl_interface and odbc now search for
          thread libraries and thread library quirks the same way as erts
          do.

          The configure script of the odbc application now also looks for
          odbc libraries in lib64 and lib/64 directories when building on a
          64-bit system.

          The config.h.in file in the erl_interface application is now
          automatically generated in instead of statically updated which
          reduces the risk of configure tests without any effect.
2db7517
@rickard-green rickard-green OTP-8412 Fixed numerous compiler warnings generated by gcc 4.4.1 and
          tile-cc 2.0.1.78377 when compiling the runtime system.
a4e2377
Erlang/OTP Merge branch 'gc/hipe_darwin_amd64' into ccase/r13b04_dev
* gc/hipe_darwin_amd64:
  Fix hipe memory allocation problems on darwin/amd64
  Porting x86 darwin fixes to amd64 darwin hipe asm/m4 code
  Automatically enable hipe for darwin/amd64 builds
  Allow configure to enable_hipe for darwin/amd64 builds

OTP-8416  HiPE now works in the 64-bit emulator on Mac OS X. (Thanks to
          Geoff Cant.)
52f7635
Erlang/OTP Merge branch 'sc/sctp-connect-nowait' into ccase/r13b04_dev
* sc/sctp-connect-nowait:
  Implement a non-blocking SCTP connect

OTP-8414  There are new gen_sctp:connect_init/* functions that initiate an
          SCTP connection without blocking for the result. The result is
          delivered asynchronously as an sctp_assoc_change event. (Thanks
          to Simon Cornish.)
51bb4c6
@psyeugenic psyeugenic Add lock profiling tool
The Lock profiling tool, lcnt, can make use of the internal lock statistics
when the runtime system is built with this feature enabled.

This provides a mechanism to examine potential lock bottlenecks within
the runtime itself.
e3c82f0
@psyeugenic psyeugenic Add lcnt documentation
Documentation for the lock profiling tool
eec56b2
@psyeugenic psyeugenic Add auto width on string output cfff4e9
@psyeugenic psyeugenic Add runtime option to enable/disable lcnt stats
Add erts_debug:lock_counters({copy_save, bool()}). This option
enables or disables statistics saving for destroyed processes and
ets-tables. Enabling this might consume a lot of memory.

Add id-numbering for lock classes which is otherwise undefined.
628aa0e
@psyeugenic psyeugenic Add lcnt:rt_opt/1 bindings to erts_debug
Runtime options for copy_save.
98b2678
@psyeugenic psyeugenic Add test suite for lcnt in tools 9a22cca
Commits on Feb 09, 2010
Håkan Mattsson OTP-8417 Improved handling of symbolic links to escripts 6c5822f
Mikael Pettersson hipe_unified_loader: only block SMP scheduling when necessary
This avoids costly scheduling changes during module loading if native
code is disabled in erts, or not present in the module being loaded.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
4a158f3
@RaimoNiskanen RaimoNiskanen inet:gethostbyname improved to parse IP strings and look up own hostname
Now inet:gethostbyname tries to parse the hostname as an IP string
first if the 'native' lookup method is not used. One can also
make the IP string parsing explicit using the new 'string'
lookup method, or avoid it using the new pseudo lookup
method 'nostring'.

In R13B04 a bug was introduced when the gethostbyname code
was rewritten, so if the native resolver was used and
misconfigured to not be able to look up the own hostname,
inet:gethostbyname also failed. This is now fixed.
cc90d8c
@RaimoNiskanen RaimoNiskanen inet_res_SUITE: testcase fix for empty domain name 502afaf
@RaimoNiskanen RaimoNiskanen inet_gethost_native: workaround for empty result hostname on MacOS X
On MacOS X the getaddrinfo function apparently can return a result
without canonical hostname e.g when looking up a IPv6 address
string as hostname. The receiving erlang code was not prepared
for that and this patch does a workaround by using the
search string as default value for canonical hostname.
a53dfdc
@RaimoNiskanen RaimoNiskanen inet: delayed/avoided read of /etc/resolv.conf and /etc/hosts
The 'file' and 'dns' lookup methods configuration files
are now read and parsed at the time of the first lookup
instead of at boot time when per default none of these
lookup methods are used.
0377ecd
@RaimoNiskanen RaimoNiskanen inet_res: /etc/resolv.conf: use domain as default search list
When the search list option in /etc/resolv.conf was empty, the
domain option was not used as default search domain.
That has been fixed in this patch.
8de5ac7
@RaimoNiskanen RaimoNiskanen inet_res_SUITE: testcase fixes for legacy DNS resolver (Solaris 8) 7dbd225
Håkan Mattsson OTP-8427 Removed spurious options to the emulator from escript. c03fd1f
@tuncer tuncer Make newline in RHS of lib/configure sed substition more portable
Commit 1b78e85 introduces a non-portable escaped newline
character in the substitution string. It does not work as
expected.

On a Linux machine it inserts an additional blank line
and on OSX it only inserts a leading 'n' which gives you
a broken lib/configure script.

Signed-off-by: Tuncer Ayaz <tuncer.ayaz@gmail.com>
c64a6e7
@bmk bmk Fixing spec-file(s) bugs. 19fda3d
@smithwinston smithwinston Add cross-compile configuration for Atmel AVR32-Linux (NGW100)
Implemented erl-xcomp-avr32-atmel-linux-gnu.conf to support cross compilation
of Erlang on Atmel's AVR32-Linux:  http://www.atmel.no/buildroot/
Built using a Ubuntu 9.10 host, with buildroot-2.3.0 and tested on on Atmel's
NGW100 development board.
2274aa6
@kostis kostis Allow recursive types and check for undefined types
Contains four kinds of changes:
 * Allows recursive types and type definitions to be in any order.
 * Because the checking is not performed from top to bottom, there
   is a separate pass which checks for undefined module-local types.
 * Behaviour callbacks which allow specs in them.
 * Clean up the code as suggested by tidier.
b07101c
@bjorng bjorng erl_lint_SUITE: adjust failing test case
Errors are now reported slightly differently, so we'll
need to adjust the test case.
a037310
Bernard Duggan Fix minor documentation errors
Fix three minor typos and reorder one of a pair of lists of functions so that
the ordering is consistent.
3cb8a87
Commits on Feb 10, 2010
@kostis kostis compile.erl: eliminate compiler warning 4e34336
@kostis kostis compiler Makefile: alphabetize module names 054b4fd
@kostis kostis stdlib: clean up as suggested by tidier
Hans Bolinder (the author/maintainer of qlc) prefers
for readability reasons to use length/1 in a guard
when it is known that the list is guaranteed to be
short, so the change suggested by tidier for line 875
of qlc_pt has not been included.
48654b0
@jj1bdx jj1bdx Fix ODBC compilation error on FreeBSD by adding netinet/in.h to #incl…
…ude macros

This fix modifies lib/odbc/c_src_odbcserver.c
This has been tested on FreeBSD port, and will not affect Linux.
5c6be09
@jj1bdx jj1bdx Fix Makefile permission problem of crypto library on FreeBSD Erlang/O…
…TP building

This patch changes INSTALL_PROGRAM to INSTALL_DATA for the Makefile at
lib/crypto/priv/obj, which discontinues the building procedure of Erlang/OTP
on FreeBSD.  Originally posted by Giacomo Olgeni as a part of FreeBSD port
patch files.

See
http://www.erlang.org/cgi-bin/ezmlm-cgi?3:mss:335:200811:hijljjocpmpkhgkhfkdl
for the detailed analysis.
a7491f2
Erlang/OTP Merge branch 'rani/inet_gethostbyname_fixes' into ccase/r13b04_dev
* rani/inet_gethostbyname_fixes:
  inet_res_SUITE: testcase fixes for legacy DNS resolver (Solaris 8)
  inet_res: /etc/resolv.conf: use domain as default search list
  inet: delayed/avoided read of /etc/resolv.conf and /etc/hosts
  inet_gethost_native: workaround for empty result hostname on MacOS X
  inet_res_SUITE: testcase fix for empty domain name
  inet:gethostbyname improved to parse IP strings and look up own hostname

OTP-8426  The resolver routines failed to look up the own node name as
          hostname, if the OS native resolver was erroneously configured,
          bug reported by Yogish Baliga, now fixed.

          The resolver routines now tries to parse the hostname as an IP
          string as most OS resolvers do, unless the native resolver is
          used.

          The DNS resolver inet_res and file resolver inet_hosts now do not
          read OS configuration files until they are needed. Since the
          native resolver is default, in most cases they are never needed.

          The DNS resolver's automatic updating of OS configuration file
          data (/etc/resolv.conf) now uses the 'domain' keyword as default
          search domain if there is no 'search' keyword.
a32352f
Erlang/OTP Merge branch 'mp/hipe_unified_loader' into ccase/r13b04_dev
* mp/hipe_unified_loader:
  hipe_unified_loader: only block SMP scheduling when necessary
3241e0a
Erlang/OTP Merge branch 'egil/egd_render' into ccase/r13b04_dev
* egil/egd_render:
  Fix egd_render transparent to use float constants

OTP-8425  Fix egd_render transparent to use float constants.

          The render engine has float guards to enhance beam code
          generation. However, the default case used integers which caused
          the engine to crash. This is now fixed.
29262ef
Erlang/OTP Merge branch 'pan/enable_m32_build' into ccase/r13b04_dev
* pan/enable_m32_build:
  Teach configure --enable-m32-build for forcing a 32-bit build

OTP-8415  configure learned the option --enable-m32-build to force the
          building of a 32-bit run-time on systems where the default C
          compiler generates 64-bit executables by default.
7c0ca6e
@kostis kostis compiler: keep line numbers for attributes
In the future, we might want to generate warnings
for attributes, referring to them with line numbers.

sys_pre_expand used to replace line number for attributes
with 0. Change sys_pre_expand to retain the real line
number.

v3_core used to throw away the line numbers. Change
v3_core so that it retains the line numbers in annotations.

While at it, do some tidying as suggested by tidier.
a612e99
@kostis kostis Support the configure option --enable-native-libs d115b31
Erlang/OTP Merge branch 'ks/compiler' into ccase/r13b04_dev
* ks/compiler:
  compiler: keep line numbers for attributes
  compiler Makefile: alphabetize module names
  compile.erl: eliminate compiler warning
fcdb099
Hans Bolinder OTP-8422 Removed bogus "\011" character sequence in documentation. a853ee4
Erlang/OTP Merge branch 'ks/erl_lint' into ccase/r13b04_dev
* ks/erl_lint:
  erl_lint_SUITE: adjust failing test case
  Allow recursive types and check for undefined types

OTP-8421: ks/erl_lint
01fd07e
@bjorng bjorng Update bootstrap compiler fc4a771
@rickard-green rickard-green OTP-8323 Cross compilation improvements and other build system
          improvements.

          Most notable:

          Lots of cross compilation improvements. The old cross compilation
          support was more or less non-existing as well as broken. Please,
          note that the cross compilation support should still be
          considered as experimental. Also note that old cross compilation
          configurations cannot be used without modifications. For more
          information on cross compiling Erlang/OTP see the
          $ERL_TOP/xcomp/README file.

          Support for staged install using <url
          href="http://www.gnu.org/prep/standards/html_node/DESTDIR.html">D
          ESTDIR</url>. The old broken INSTALL_PREFIX has also been fixed.
          For more information see the $ERL_TOP/README file.

          Documentation of the release target of the top Makefile. For more
          information see the $ERL_TOP/README file.

          make install now by default creates relative symbolic links
          instead of absolute ones. For more information see the
          $ERL_TOP/README file.

          $ERL_TOP/configure --help=recursive now works and prints help for
          all applications with configure scripts.

          Doing make install, or make release directly after make all no
          longer triggers miscellaneous rebuilds.

          Existing bootstrap system is now used when doing make install, or
          make release without a preceding make all.

          The crypto and ssl applications use the same runtime library path
          when dynamically linking against libssl.so and libcrypto.so. The
          runtime library search path has also been extended.

          The configure scripts of erl_interface and odbc now search for
          thread libraries and thread library quirks the same way as erts
          do.

          The configure script of the odbc application now also looks for
          odbc libraries in lib64 and lib/64 directories when building on a
          64-bit system.

          The config.h.in file in the erl_interface application is now
          automatically generated in instead of statically updated which
          reduces the risk of configure tests without any effect.

          (Thanks to Henrik Riomar and Winston Smith for testing)
70f9744
Håkan Mattsson Removed spurious documentation files 01c6370
Håkan Mattsson OTP-8057 Removed spurious documentation files. 76c6911
@jj1bdx jj1bdx Fix the shell operator bug of "==" to "=" in erts/configure.in
In UNIX test command, "==" is incorrect for string comparison;
"=" is the right operator.  Originally pointed out by
Giacomo Olgeni in the following article:
http://www.erlang.org/pipermail/erlang-patches/2008-November/000334.html
and available as a FreeBSD port patch.

Accordingly fixed in erts/configure.in
c355ba7
@jj1bdx jj1bdx Change erts/etc/unix/Install.src to explicitly set exit code to 0 at …
…the end of the script

This patch will ensure the Install.src script to exit with the exit code 0
when the execution finished at the end of the script.

Originally from FreeBSD port patch.
e7d6097
Erlang/OTP Merge branch 'egil/lcnt' into ccase/r13b04_dev
* egil/lcnt:
  Add test suite for lcnt in tools
  Add lcnt:rt_opt/1 bindings to erts_debug
  Add runtime option to enable/disable lcnt stats
  Add auto width on string output
  Add lcnt documentation
  Add lock profiling tool

OTP-8424  Add lock profiling tool.

          The Lock profiling tool, lcnt, can make use of the internal lock
          statistics when the runtime system is built with this feature
          enabled.

          This provides a mechanism to examine potential lock bottlenecks
          within the runtime itself.

          - Add erts_debug:lock_counters({copy_save, bool()}). This option
          enables or disables statistics saving for destroyed processes and
          ets-tables. Enabling this might consume a lot of memory.

          - Add id-numbering for lock classes which is otherwise undefined.
ada6afd
@bmk bmk OTP-8395[2]: Sequence numbers in Audit Trail Log(s). 97cd65d
@bufflig bufflig OTP-8418 user.erl (used in oldshell) is updated to handle unicode in
          prompt strings (io:get_line/{1,2}). io_lib is also updated to
          format prompts with the 't' modifier (i.e. ~ts instead of ~s).
64a6973
@jaynel jaynel Add count_children/1 to supervisor.erl to determine the number of
children being managed without the memory impact of which_children/1

The function which_children/1 returns a list of the child processes
currently being supervised, but it has the penalty of creating a new
list thereby consuming more memory.  In low memory situations it is
often desirable to know which supervisor may have generated many
processes, but the act of discovering the culprit should not cause the
node to crash (or worse a different node if the kernel kills one
randomly).  The new function count_children/1 can give an indication
of which supervisor is taxing resources the most without adding to the
burden.  Rather than creating a new list, it walks the supervisor's
internal children structure using an accumulator function so that any
used memory can be incrementally collected yet the resulting count can
still be obtained.

The return result of count_children/1 is a property list of counts
containing:
  - {specs, Total_Num_Child_Specs}
  - {active, Num_Active_Child_Processes_Of_Supervisor_Or_Worker_Type}
  - {supervisors, Num_Supervisor_Type_Children_Including_Dead_Processes}
  - {workers, Num_Worker_Type_Children_Including_Dead_Processes}

This patch was made in response to mailing list discussions of the
problem diagnosing heavily taxed production systems.  I cannot find
the original request, but http://www.erlang.org/cgi-bin/ezmlm-cgi/4/35060
is my original post of the patch.
1686757
@psyeugenic psyeugenic OTP-8420 Fix processes in exiting status that are about to be scheduled,
          to not be allowed to garbage collect.
3b56d82
Håkan Mattsson OTP-8434 Improved handling of typed records in escripts 6af2ac9
Erlang/OTP Merge branch 'ws/cross-compile-configuration' into ccase/r13b04_dev
* ws/cross-compile-configuration:
  Add cross-compile configuration for Atmel AVR32-Linux (NGW100)
c4090d1
@bmk bmk OTP-8433: Fix typos of lib/snmp/src/misc/snmp_config.erl
OTP-8433: Kenji Rikitake
e1b759c
Commits on Feb 11, 2010
@msantos msantos Fix CVE-2008-2371 (outer level option with alternatives caused crash).
The patch is from:
http://vcs.pcre.org/viewvc?revision=360&view=revision

Test case:
re:compile(<<"(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]">>, [unicode]).

An option change at the start of a pattern that had top-level
alternatives could cause overwriting and/or a crash.

This potential security problem was recorded as CVE-2008-2371.
bb6370a
@lthor lthor OTP-8343 The documentation is now possible to build in an open source
          environment after a number of bugs are fixed and some features
          are added in the documentation build process.

          - The arity calculation is updated.

          - The module prefix used in the function names for bif's are
          removed in the generated links so the links will look like
          "http://www.erlang.org/doc/man/erlang.html#append_element-2"
          instead of
          "http://www.erlang.org/doc/man/erlang.html#erlang:append_element-
          2".

          - Enhanced the menu positioning in the html documentation when a
          new page is loaded.

          - A number of corrections in the generation of man pages (thanks
          to Sergei Golovan)

          - The legal notice is taken from the xml book file so OTP's build
          process can be used for non OTP applications.
75bc5e5
@bjorng bjorng OTP-8430: tools: xref_SUITE updated 94a5a28
@sverker sverker OTP-8335 Even more NIF features 2a96208
@kostis kostis erts/preloaded: Add types and specs f28ac67
@kostis kostis hipe_bif0.c: Remove $Id$ 5cd9121
Erlang/OTP Merge branch 'ks/erts' into ccase/r13b04_dev
* ks/erts:
  hipe_bif0.c: Remove $Id$
  erts/preloaded: Add types and specs
fbd9a5c
@bjorng bjorng Update preloaded files fc8f530
@bjorng bjorng Update version numbers 6edfe6c
@rickard-green rickard-green OTP-8323 Cross compilation improvements and other build system
          improvements.

          Most notable:

          Lots of cross compilation improvements. The old cross compilation
          support was more or less non-existing as well as broken. Please,
          note that the cross compilation support should still be
          considered as experimental. Also note that old cross compilation
          configurations cannot be used without modifications. For more
          information on cross compiling Erlang/OTP see the
          $ERL_TOP/xcomp/README file.

          Support for staged install using <url
          href="http://www.gnu.org/prep/standards/html_node/DESTDIR.html">D
          ESTDIR</url>. The old broken INSTALL_PREFIX has also been fixed.
          For more information see the $ERL_TOP/README file.

          Documentation of the release target of the top Makefile. For more
          information see the $ERL_TOP/README file.

          make install now by default creates relative symbolic links
          instead of absolute ones. For more information see the
          $ERL_TOP/README file.

          $ERL_TOP/configure --help=recursive now works and prints help for
          all applications with configure scripts.

          Doing make install, or make release directly after make all no
          longer triggers miscellaneous rebuilds.

          Existing bootstrap system is now used when doing make install, or
          make release without a preceding make all.

          The crypto and ssl applications use the same runtime library path
          when dynamically linking against libssl.so and libcrypto.so. The
          runtime library search path has also been extended.

          The configure scripts of erl_interface and odbc now search for
          thread libraries and thread library quirks the same way as erts
          do.

          The configure script of the odbc application now also looks for
          odbc libraries in lib64 and lib/64 directories when building on a
          64-bit system.

          The config.h.in file in the erl_interface application is now
          automatically generated in instead of statically updated which
          reduces the risk of configure tests without any effect.

          (Thanks to Henrik Riomar and Winston Smith for testing)
7bd9b44
Commits on Feb 12, 2010
Mikael Pettersson unbreak event tracer's app.src
lib/et/src/et.app.src lists a module (et_contents_viewer) for which
there is no source module, so it doesn't get built or installed.
This breaks tools like HiPE's big test suite that parse installed .app
files and expect to find a .beam file for every listed module.

Fixed by deleting the offending line. I also noticed a duplicated
line for the et_viewer module, and deleted that too.
c3faaf4
@hio hio prepend packet size bytes in ssl:send() in new_ssl implementation
With the {ssl_imp,new} option enabled, {packet,PacketType} only
works when receiving. When sending, {packet,0} is always used.
f435df0
@dgud dgud Allow <c>ssl:listen/2</c> to be called with option {ssl_imp, old}. 590a061
@dgud dgud Fixed bug file cache bug and improved the error messages. a39cf4a
@dgud dgud Fixed ssl:setopts(Socket, binary) which was didn't work for 'new' ssl. 464f2ba
Erlang/OTP Merge branch 'ks/stdlib-cleanups' into ccase/r13b04_dev
* ks/stdlib-cleanups:
  stdlib: clean up as suggested by tidier

OTP-8435: ks/stdlib-cleanups
aad8754
Erlang/OTP Merge branch 'jn/supervisor_child_count_only' into ccase/r13b04_dev
* jn/supervisor_child_count_only:
  Add count_children/1 to supervisor.erl to determine the number of

OTP-8436  Added supervisor:count_children/1 to count the number of children
          being managed without the memory impact of which_children/1.
          (Thanks to Jay Nelson.)
61489dd
Erlang/OTP Merge branch 'ms/pcre-security' into ccase/r13b04_dev
* ms/pcre-security:
  Fix CVE-2008-2371 (outer level option with alternatives caused crash).

OTP-8438  The re module: A regular expression with an option change at the
          start of a pattern that had top-level alternatives could cause
          overwriting and/or a crash. (Thanks to Michael Santos.)
b14ca0f
Erlang/OTP Merge branch 'mp/et-app-file' into ccase/r13b04_dev
* mp/et-app-file:
  unbreak event tracer's app.src
9e00968
Erlang/OTP Merge branch 'yh/packet_option_for_new_ssl_send' into ccase/r13b04_dev
* yh/packet_option_for_new_ssl_send:
  Fixed ssl:setopts(Socket, binary) which was didn't work for 'new' ssl.
  Fixed bug file cache bug and improved the error messages.
  Allow <c>ssl:listen/2</c> to be called with option {ssl_imp, old}.
  prepend packet size bytes in ssl:send() in new_ssl implementation

OTP-8441  ssl:send/2 ignored packet option, fix provided by YAMASHINA Hio.

          Fixed a file cache bug which caused problems when the same file
          was used for both cert and cacert.

          Allow ssl:listen/2 to be called with option {ssl_imp, old}.

          Fixed ssl:setopts(Socket, binary) which didn't work for 'new'
          ssl..
96ceb36
Erlang/OTP Merge branch 'bd/doc-fixes' into ccase/r13b04_dev
* bd/doc-fixes:
  Fix minor documentation errors
9518eaf
Erlang/OTP Merge branch 'kr/crypto_makefile' into ccase/r13b04_dev
* kr/crypto_makefile:
  Fix Makefile permission problem of crypto library on FreeBSD Erlang/OTP building
ba37585
Commits on Feb 13, 2010
@bmk bmk OTP-8431: Fix error handling of httpc_manager and its starter process
OTP-8431: jean-sebastien.pedron@dumbbell.fr
d9286a9
@bmk bmk OTP-8442: Regstration of agents using config file incorrect
OTO-8442: Per Hedeland
3d06af6
@bmk bmk OTP-8395, OTP-8433 & OTP-8442. ed792cc
@bmk bmk OTP-8016, OTP-8056, OTP-8103, OTP-8106, OTP-8312, OTP-8315, OTP-8327,
OTP-8349, OTP-8351, OTP-8352, OTP-8359 & OTP-8371.
201ccdd
@bmk bmk OTP-8317, OTP-8323, OTP-8328, OTP-8362 & OTP-8403. f0fc9b7
Commits on Feb 14, 2010
@kostis kostis file.erl: Add a type to be used from other modules 794feab
@bjorng bjorng Add .mailmap file 9a8bcc7
@videlalvaro videlalvaro Fix minor typo in read_report/1 2356f4e
@videlalvaro videlalvaro Modify rb:grep/1 to grep reports using the re module 501b923
@videlalvaro videlalvaro New rb:filter/1 function to ease report filtering
Currently in the rb module the only way to filter
reports is by using the grep/1 or re/1 functions
that use Regular Expressions.

This new function allow us to specify detailed
filters that will match against our reports.

Since the reports are proplists the filters are
tuples of the form {Key, Value}. If the report
contains that tuple, it will be displayed.

Usage:

1> rb:filter([{"foo", "bar"}, {"abc", "value"}]).

2> rb:filter([{"foo", "bar", no}]).
% excludes reports containing {"foo", "bar"}

3> rb:filter([{"foo", RegExp, re}]).
% the report must contain an element with Key = "foo"
% and Value must match RegExp
e99ec8e
@videlalvaro videlalvaro New rb:filter/2 to filter reports by date
The function filter/2 expects a second parameter
Dates that can be used to return reports that
occurred between the provided dates.

Usage:

Dec22 = {{2009,12,22},{0,0,0}}.
Dec24 = {{2009,12,24},{0,0,0}}.

rb:filter(Filters, {Dec22, from}).
%will return reports that occurred from Dec22.

rb:filter(Filters, {Dec22, to}).
%will return reports that occurred before Dec22.

rb:filter(Filters, {Dec22, Dec24}).
%will return reports that occurred between Dec22
% and  Dec24
242c70e
@kostis kostis Fix a HiPE compiler bug evaluating an expression that throws system_l…
…imit
63c1378
@kostis kostis typer: New version for the R13B04 release eab3576
@kostis kostis hipe: Miscellaneous additions cdd3a82
@kostis kostis dialyzer: New version for the R13B04 release a9c8a24
@kostis kostis syntax_tools: Remove $Id$ annotations b366554
@kostis kostis syntax_tools: Support the --enable-native-libs configure option
While at it, turn on some more warnings.
649d313
@kostis kostis syntax_tools: Add types and specs for most exported functions
While at it, consistently replace "bool()" with "boolean()"
in the Edoc specs.
8b7dd06
@jaynel jaynel Added sasl_report:format_report/3 to return a string rather than send…
… an io

sasl_report:write_report/3 calls io:format to output the report
message, but does not provide an option to generate a formatted string
rather than sending the message.  sasl_report:format_report/3 is added
to allow the replacement of sasl_report with a different handler but
still generate reports in the same format.  It returns the string
generated by io_lib:format.  sasl_report:write_report/3 retains its
original behavior.

This patch was submitted in 2008 (see
http://www.erlang.org/cgi-bin/ezmlm-cgi/4/35061) but was never
incorporated into the source.
109a257
@bjorng bjorng erl_bif_types: add 'http_bin' as a valid packet option
{packet,http_bin} is now a valid packet option for the
gen_tcp and inet modules.
4df5137
@bjorng bjorng Add types for erts_debug:dist_ext_to_term/2 11d4aab
@bjorng bjorng Add types for os:timestamp/0 3f2a3a5
@bjorng bjorng Add types for erts_debug:lock_counters/1
erts_debug:lock_counters/1 is an undocumented BIF used by
the 'lcnt' module in the 'tools' application.
6d2d8b9
Commits on Feb 15, 2010
Erlang/OTP Merge branch 'dgud/emacs-mode' into ccase/r13b04_dev
* dgud/emacs-mode:
  Added the old style skeletons, and a variable to change.
  Move code skeletons to a separate file.

OTP-8446  dgud/emacs-mode
39f17a4
Håkan Mattsson ** Empty commit message ** ebe3ab4
Håkan Mattsson Fixed a case_clause error in the internal function escript:foldl/3. 4ec4a06
Niclas Eklund Added the configuration parameters iiop_out_ports_attempts and iiop_o…
…ut_ports_random.
45f0a49
@sverker sverker OTP-8335 NIF improvements:
          Driver API for multi-threading made available for NIFs.

          Support for mempory managed (garbage collected) resource objects.
          A way to pass "pointers" to native data structures between C and
          Erlang in a safe way.

          Various new functions, like enif_inspect_iolist_as_binary,
          enif_make_sub_binary, enif_get_string, enif_get_atom,
          enif_make_tuple_from_array, enif_make_list_from_array,
          enif_make_existing_atom.
7fb88a9
@rickard-green rickard-green OTP-8323 Cross compilation improvements and other build system
          improvements.

          Most notable:

          Lots of cross compilation improvements. The old cross compilation
          support was more or less non-existing as well as broken. Please,
          note that the cross compilation support should still be
          considered as experimental. Also note that old cross compilation
          configurations cannot be used without modifications. For more
          information on cross compiling Erlang/OTP see the
          $ERL_TOP/INSTALL-CROSS.md file.

          Support for staged install using <url
          href="http://www.gnu.org/prep/standards/html_node/DESTDIR.html">D
          ESTDIR</url>. The old broken INSTALL_PREFIX has also been fixed.
          For more information see the $ERL_TOP/INSTALL.md file.

          Documentation of the release target of the top Makefile. For more
          information see the $ERL_TOP/INSTALL.md file.

          make install now by default creates relative symbolic links
          instead of absolute ones. For more information see the
          $ERL_TOP/INSTALL.md file.

          $ERL_TOP/configure --help=recursive now works and prints help for
          all applications with configure scripts.

          Doing make install, or make release directly after make all no
          longer triggers miscellaneous rebuilds.

          Existing bootstrap system is now used when doing make install, or
          make release without a preceding make all.

          The crypto and ssl applications use the same runtime library path
          when dynamically linking against libssl.so and libcrypto.so. The
          runtime library search path has also been extended.

          The configure scripts of erl_interface and odbc now search for
          thread libraries and thread library quirks the same way as erts
          do.

          The configure script of the odbc application now also looks for
          odbc libraries in lib64 and lib/64 directories when building on a
          64-bit system.

          The config.h.in file in the erl_interface application is now
          automatically generated in instead of statically updated which
          reduces the risk of configure tests without any effect.

          (Thanks to Henrik Riomar for suggestions and testing)

          (Thanks to Winston Smith for the AVR32-Linux cross configuration
          and testing)
924f3aa
Commits on Feb 16, 2010
@rickard-green rickard-green OTP-8449 Documentation improvements.
          The most important "readme" files now use Markdown notation. HTML
          versions of these files are now also automatically generated and
          included in the HTML documentation.

          - Building and Installing Erlang/OTP - $ERL_TOP/INSTALL.md
          (previously known as $ERL_TOP/README).

          - Cross Compiling Erlang/OTP - $ERL_TOP/INSTALL-CROSS.md.

          - How to Build Erlang/OTP on Windows - $ERL_TOP/INSTALL-WIN32.md
          (previously known as $ERL_TOP/README.win32).
7aa2cb2
Erlang/OTP Merge branch 'va/rb-improvements' into ccase/r13b04_dev
* va/rb-improvements:
  New rb:filter/2 to filter reports by date
  New rb:filter/1 function to ease report filtering
  Modify rb:grep/1 to grep reports using the re module
  Fix minor typo in read_report/1

OTP-8443  The re:grep/1 function now uses the 're' module instead of the
          deprecated 'regexp' module. There are new functions rb:filter/1
          and rb:filter/2 for easier filtering of reports. (Thanks to
          Alvaro Videla.)
ad8ff21
Erlang/OTP Merge branch 'jn/sasl-format_report' into ccase/r13b04_dev
* jn/sasl-format_report:
  Added sasl_report:format_report/3 to return a string rather than send an io

OTP-8445  There is new function sasl_report:format_report/3 that works like
          the existing sasl_report:write_report/3 function except that it
          returns a formatted string. Note that there is currently no
          documentation for the sasl_report module. (Thanks to Jay Nelson.)
333d2b2
Erlang/OTP Merge branch 'bg/erl_bif_types' into ccase/r13b04_dev
* bg/erl_bif_types:
  Add types for erts_debug:lock_counters/1
  Add types for os:timestamp/0
  Add types for erts_debug:dist_ext_to_term/2
  erl_bif_types: add 'http_bin' as a valid packet option

OTP-8437: bg/erl_bif_types
06113ba
Erlang/OTP Merge branch 'kr/odbc-netinet' into ccase/r13b04_dev
* kr/odbc-netinet:
  Fix ODBC compilation error on FreeBSD by adding netinet/in.h to #include macros

OTP-8444  The odbc application can now be compiled on FreeBSD. (Thanks to
          Kenji Rikitake.)
991d3de
@lthor lthor ** Empty commit message ** 695c11c
@lthor lthor OTP-8343 The documentation is now possible to build in an open source
          environment after a number of bugs are fixed and some features
          are added in the documentation build process.

          - The arity calculation is updated.

          - The module prefix used in the function names for bif's are
          removed in the generated links so the links will look like
          "http://www.erlang.org/doc/man/erlang.html#append_element-2"
          instead of
          "http://www.erlang.org/doc/man/erlang.html#erlang:append_element-
          2".

          - Enhanced the menu positioning in the html documentation when a
          new page is loaded.

          - A number of corrections in the generation of man pages (thanks
          to Sergei Golovan)

          - The legal notice is taken from the xml book file so OTP's build
          process can be used for non OTP applications.
fe9f24c
@jotsen jotsen Add support for prefixing macro names generated by the compiler
This is useful when multiple protocols that contains
macros with identical names are included in a single module.

Add the missing record_name_prefix compiler option to the documentation.
9d247b1
@bjorng bjorng Update copyright header affd1f7
@kostis kostis wx: Clean up as suggested by tidier a5dc095
@kostis kostis os_mon: Modernize types and specs c40e8d0
@kostis kostis asn1: Clean up as suggested by tidier 37b274d
@kostis kostis sasl: Add missing modules to app file b8527e1
@kostis kostis sasl: Eliminate tuple used as fun c394654
@kostis kostis runtime_tools: Modernize specs 2b451b0
@bjorng bjorng parsetools: Replace TABs with spaces
The files in the parsetools application are supposed to be
indented using spaces only. Remove the stray TABs that somehow
have crept in.
08e2d74
@kostis kostis parsetools: Modernize types and specs 3117c77
@kostis kostis parsetools: Replace lists:keysearch/3 with lists:keyfind/3 b573c21
@kostis kostis parsetools: Use %% for comments at the beginning of a line
According to the style guidelines (and the Erlang mode for
Emacs), comments at the beginning of a line should start
with "%%", not "%".
152088b
@kostis kostis parsetools: Don't use 'try...of' when 'try' will do c12397f
@kostis kostis percept: Modernize types and specs f2592e6
@kostis kostis percept: Clean up as suggested by tidier a8bf1fe
@kostis kostis dialyzer: Fix system_limit exception in race analysis
dialyzer_callgraph:
  Avoid creation of too many ets tables by the race analysis.
dialyzer_dataflow:
  The digraph returned by the race analysis should not be the
  translated one.
abe48c2
Commits on Feb 17, 2010
@rickard-green rickard-green Remove obsolete README file ae4e428
@rickard-green rickard-green OTP-8457 Minor documentation fixes. Mainly anchor adjustments. 4c3aebe
@rickard-green rickard-green Fix force pthread rwlock 4a33e37
Erlang/OTP Merge branch 'ks/cleanups' into ccase/r13b04_dev
* ks/cleanups:
  percept: Clean up as suggested by tidier
  percept: Modernize types and specs
  parsetools: Don't use 'try...of' when 'try' will do
  parsetools: Use %% for comments at the beginning of a line
  parsetools: Replace lists:keysearch/3 with lists:keyfind/3
  parsetools: Modernize types and specs
  parsetools: Replace TABs with spaces
  runtime_tools: Modernize specs
  sasl: Eliminate tuple used as fun
  sasl: Add missing modules to app file
  asn1: Clean up as suggested by tidier
  os_mon: Modernize types and specs
  wx: Clean up as suggested by tidier

OTP-8455  ks/cleanups
40b76c2
@psyeugenic psyeugenic Update version number f6ff2d8
Hans Bolinder OTP-8447 Bit string comprehensions can now be used in parameterized
          modules. (Thanks to Jebu Ittiachen.)
91de9d0
@dgud dgud mnesia: prepare release 55d3477
@pekadan pekadan emacs: Update test suite skeletons b1427ec
@dgud dgud wx: Prepare release 02fa42b
@sverker sverker OTP-8335 NIF improvements:
          Driver API for multi-threading made available for NIFs.

          Support for mempory managed (garbage collected) resource objects.
          A way to pass "pointers" to native data structures between C and
          Erlang in a safe way.

          Support for references, floats and term comparison.

          Various new functions, like enif_inspect_iolist_as_binary,
          enif_make_sub_binary, enif_get_string, enif_get_atom,
          enif_make_tuple_from_array, enif_make_list_from_array,
          enif_make_existing_atom.
f584be5
Erlang/OTP Merge branch 'tj/asn1_macro_prefix' into ccase/r13b04_dev
* tj/asn1_macro_prefix:
  Add support for prefixing macro names generated by the compiler

OTP-8453  tj/asn1_macro_prefix
af08a7b
@dgud dgud public_key: Prepare release edac07f
Erlang/OTP Merge branch 'ks/hipe' into ccase/r13b04_dev
* ks/hipe:
  dialyzer: Fix system_limit exception in race analysis
  syntax_tools: Add types and specs for most exported functions
  syntax_tools: Support the --enable-native-libs configure option
  syntax_tools: Remove $Id$ annotations
  dialyzer: New version for the R13B04 release
  hipe: Miscellaneous additions
  typer: New version for the R13B04 release
  Fix a HiPE compiler bug evaluating an expression that throws system_limit

OTP-8460  ks/hipe
8b39d05
@dgud dgud OTP-8459 Do a controlled shutdown if a non ssl packet arrives as the …
…first

          packet.
f29538e
@pekadan pekadan OTP-8311: Various updates and fixes in Common Test and Test Server 332591f
@dgud dgud ssl: Prepare release 64d4c5a
@sverker sverker OTP-8335 NIF improvements:
          Driver API for multi-threading made available for NIFs.

          Support for mempory managed (garbage collected) resource objects.
          A way to pass "pointers" to native data structures between C and
          Erlang in a safe way.

          Support for references, floats and term comparison.

          Various new functions, like enif_inspect_iolist_as_binary,
          enif_make_sub_binary, enif_get_string, enif_get_atom,
          enif_make_tuple_from_array, enif_make_list_from_array,
          enif_make_existing_atom.
28cd2d1
@bjorng bjorng Update version numbers e12a39c
@sverker sverker OTP-8335 NIF improvements:
          Driver API for multi-threading made available for NIFs.

          Support for mempory managed (garbage collected) resource objects.
          A way to pass "pointers" to native data structures between C and
          Erlang in a safe way.

          Support for references, floats and term comparison.

          Various new functions, like enif_inspect_iolist_as_binary,
          enif_make_sub_binary, enif_get_string, enif_get_atom,
          enif_make_tuple_from_array, enif_make_list_from_array,
          enif_make_existing_atom.
69e8c25
Commits on Feb 18, 2010
@rickard-green rickard-green OTP-8449 Documentation improvements.
          The most important "readme" files now use Markdown notation. HTML
          versions of these files are now also automatically generated and
          included in the HTML documentation.

          - Building and Installing Erlang/OTP - $ERL_TOP/INSTALL.md
          (previously known as $ERL_TOP/README).

          - Cross Compiling Erlang/OTP - $ERL_TOP/INSTALL-CROSS.md.

          - How to Build Erlang/OTP on Windows - $ERL_TOP/INSTALL-WIN32.md
          (previously known as $ERL_TOP/README.win32).
4085125
@dgud dgud Avoid crash when trying to alert the user. ab0b078
@bjorng bjorng Update bootstrap compiler e68da67
@sverker sverker OTP-8451 Harmless buffer overflow by one byte in asn1 and ram_file_drv. 3a44b99
@rickard-green rickard-green OTP-8449 Documentation improvements.
          The most important "readme" files now use Markdown notation. HTML
          versions of these files are now also automatically generated and
          included in the HTML documentation.

          - Building and Installing Erlang/OTP - $ERL_TOP/INSTALL.md
          (previously known as $ERL_TOP/README).

          - Cross Compiling Erlang/OTP - $ERL_TOP/INSTALL-CROSS.md.

          - How to Build Erlang/OTP on Windows - $ERL_TOP/INSTALL-WIN32.md
          (previously known as $ERL_TOP/README.win32).
3fdc76b
Commits on Feb 19, 2010
@dgud dgud mnesia: fix vsn f2e7884
@lthor lthor makefiles: add local_html target b272166
@kostis kostis Fix problems identified by dialyzer. 6328bb2
@psyeugenic psyeugenic Update release notes 745b99a
@psyeugenic psyeugenic Update version number 863b941
Håkan Mattsson Added release notes for megaco 3.14 85b8498
Andrey Pampukha .gitignore: Add generated files in lib and erl_interface 729565d
Kenneth Lundin OTP-8463 Support for EXTENSIBILITY IMPLIED and SET/SEQ OF NamedType is
          added.
18bd123
@bjorng bjorng Update release notes cbad5f2
Håkan Mattsson Added megaco_config to appup file 783ae83
@bjorng bjorng asn1: Correct ticket number in vsn.mk cc86585
Erlang/OTP The R13B04 release dfd80f7
Commits on Feb 22, 2010
@tuncer tuncer Fix escript:foldl/3 for beam and archive files
escript:foldl/3 was not completely adapted to the changes introduced
in 6af2ac9.
A partial fix has already been applied by Hakan Mattson in
4ec4a06.

Signed-off-by: Tuncer Ayaz <tuncer.ayaz@gmail.com>
e612210
@bmk bmk OTP-8317, OTP-8323, OTP-8328, OTP-8362 & OTP-8403. 8253395
@rickard-green rickard-green Update copyright 01a6001
@bmk bmk OTP-8395, OTP-8433 & OTP-8442. de10358
@psyeugenic psyeugenic OTP-8466: Fix ei to build on vxworks f700609