aboutsummaryrefslogtreecommitdiffstats
path: root/system
AgeCommit message (Collapse)Author
2015-03-20Introduce a new time APIRickard Green
The old time API is based on erlang:now/0. The major issue with erlang:now/0 is that it was intended to be used for so many unrelated things. This tied these unrelated operations together and unnecessarily caused performance, scalability as well as accuracy, and precision issues for operations that do not need to have such issues. The new API spreads different functionality over multiple functions in order to improve on this. The new API consists of a number of new BIFs: - erlang:convert_time_unit/3 - erlang:monotonic_time/0 - erlang:monotonic_time/1 - erlang:system_time/0 - erlang:system_time/1 - erlang:time_offset/0 - erlang:time_offset/1 - erlang:timestamp/0 - erlang:unique_integer/0 - erlang:unique_integer/1 - os:system_time/0 - os:system_time/1 and a number of extensions of existing BIFs: - erlang:monitor(time_offset, clock_service) - erlang:system_flag(time_offset, finalize) - erlang:system_info(os_monotonic_time_source) - erlang:system_info(time_offset) - erlang:system_info(time_warp_mode) - erlang:system_info(time_correction) - erlang:system_info(start_time) See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
2014-11-27Merge branch 'mururu/typespec-doc-about-function/OTP-12327' into maintMarcus Arendt
* mururu/typespec-doc-about-function/OTP-12327: Add infometion about function()
2014-11-21Add infometion about function()Yuki Ito
2014-11-20Fix spelling and grammarDerek Brown
2014-11-11Remove comments about unicode atoms in OTP 18Siri Hansen
There was once a plan to implement support for unicode atoms in OTP 18. This plan has been stopped until further notice, and the information about this is now removed from the documentation.
2014-11-05Section reference number incorrectjmrepetti
2014-11-03fix small typo in processes.xmlEvgeny M
kilo_byte() -> is kilo_byte/0 not kilo_byte/1
2014-09-04Merge branch 'sverk/nif-inspect-copy-bug/OTP-9828' into maintSverker Eriksson
* sverk/nif-inspect-copy-bug/OTP-9828: erts: Fix bug with enif_make_copy reallocating writable binary Conflicts: erts/emulator/test/nif_SUITE.erl
2014-09-03erts: Fix bug with enif_make_copy reallocating writable binarySverker Eriksson
that could invalidate a pointer received from an earlier call to enif_inspect_binary. Solution: Emasculate writable binary at enif_inspect_binary. There are room for optimizations here as we now do an unconditional emasculation even though enif_make_copy is not called later in the NIF.
2014-08-25Fix misspellings of 'another'Tuncer Ayaz
2014-07-17Fix a minor typo in system_principles/versions.xmlTuncer Ayaz
2014-07-07Merge branch 'nevar/patch-1' into maintHenrik Nord
* nevar/patch-1: Fix typo in Advanced chapter
2014-06-29rephrase sentence in process links docWasif Malik
2014-06-20Fix typo in Advanced chapterSlava Yurin
2014-06-17doc: Fix broken linksBjörn-Egil Dahlberg
2014-05-14doc: Move Maps reference documentation to expressionsBjörn-Egil Dahlberg
2014-04-03Merge branch 'siri/doc-upgrade/OTP-11717'Siri Hansen
* siri/doc-upgrade/OTP-11717: Add documentation about upgrade Add info about upgrade of core applications
2014-04-03Add documentation about upgradeSiri Hansen
The example of how to create a first target system, which is located in the System Principles document, is now extended to also include an example of code upgrade. A new chapter is added to System Principles explaining different issues when upgrade includes new versions applications within Erlang/OTP.
2014-04-02Merge branch 'mange/update_source_build_doc/OTP-10269'Magnus Lidén
* mange/update_source_build_doc/OTP-10269: Add link to app resource file reference Correct and clean up documentation Delete obsolete verification doc Remove installation instruction for unix binary and reorder chapters
2014-04-02Add link to app resource file referenceMagnus Lidén
2014-04-02Correct and clean up documentationMagnus Lidén
The build and install documentation was not complete and needed some restructuring.
2014-04-02Delete obsolete verification docMagnus Lidén
2014-04-02Remove installation instruction for unix binary and reorder chaptersMagnus Lidén
Non-Windows binaries are not released any longer. Instructions are hence removed.
2014-04-01Merge branch 'egil/maps-doc'Björn-Egil Dahlberg
* egil/maps-doc: doc: Add Maps example for sequential programming doc: Mention map expressions and map guards doc: Add maps to reference manual edoc: Add map/0 as a new predefined type doc: Descripe Maps type syntax doc: Clearify language of user-defined attributes doc: Document Maps datatype in reference manual erts: Document map guard functions erts: Fix is_map/1 spec
2014-04-01doc: Add Maps example for sequential programmingBjörn-Egil Dahlberg
2014-04-01doc: Mention map expressions and map guardsBjörn-Egil Dahlberg
2014-04-01doc: Add maps to reference manualBjörn-Egil Dahlberg
2014-04-01doc: Descripe Maps type syntaxBjörn-Egil Dahlberg
2014-04-01doc: Clearify language of user-defined attributesBjörn-Egil Dahlberg
2014-03-31Replace 'otp_build patch_app' with 'otp_patch_apply'Rickard Green
2014-03-28Add info about upgrade of core applicationsSiri Hansen
In ref man for appup and in system documentation, design prinsiples, add a warning related to upgrade when version of erts, kernel, stdlib or sasl is changed. This will cause an emulator restart where new version of emulator and core applications will startup together with old versions of other applications. Care must be taken to avoid problems due to backwards incompatibility.
2014-03-27doc: Document Maps datatype in reference manualBjörn-Egil Dahlberg
2014-03-26refman: Clarify the '-callback' attributeHans Bolinder
2014-03-25Merge branch 'vinoski/sys-get-rep-state2'Siri Hansen
* vinoski/sys-get-rep-state2: remove tuple funs from special process documentation fix sys:get_state/1,2 and sys:replace_state/2,3 when sys suspended OTP-11817
2014-03-21remove tuple funs from special process documentationSteve Vinoski
Support for tuple funs was removed in R16B but the documentation for special processes, sys, and proc_lib in the OTP Design Principles still showed examples using them, and those examples no longer worked. Fix the examples to use regular functions instead and fix the documentation to reflect the changes.
2014-03-21fix sys:get_state/1,2 and sys:replace_state/2,3 when sys suspendedSteve Vinoski
Add two new system callbacks Module:system_get_state/1 and Module:system_replace_state/2 to allow sys:get_state/1,2 and sys:replace_state/2,3 to operate correctly even if a process is sys suspended. Modify gen_server, gen_fsm, and gen_event to support the new callbacks. If a callback module does not export these functions, then by default the Misc value (the same as that passed as the final argument to sys:handle_system_msg/6, and returned as part of the return value of sys:get_status/1,2) is treated as the callback module's state. The previous behaviour of intercepting the system message and passing a tuple of size 2 as the last argument to sys:handle_system_msg/6 is no longer supported. Add tests to verify the correctness of sys:get_state/1,2 and sys:replace_state/2,3 when processes are sys suspended. Add two tests for modules that implement special processes, one that exports system_get_state/1 and system_replace_state/2 and one that doesn't. Much of the credit for this patch goes to James Fish, who reported the initial problem and implemented much of the fix.
2014-03-21Documentation fixRickard Green
2014-03-20Verify runtime_dependencies when running 'otp_build patch_app'Rickard Green
2014-03-17Clarify the reference manual regarding source file encodingHans Bolinder
2014-02-24Merge branch 'rickard/otp_version/OTP-11615'Rickard Green
* rickard/otp_version/OTP-11615: Update OTP version documentation
2014-02-24Update OTP version documentationRickard Green
2014-02-24Merge branch 'lukas/ose/master/OTP-11334'Lukas Larsson
* lukas/ose/master/OTP-11334: (71 commits) erts: Fix unix efile assert ose: Use -O2 when building ose: Expand OSE docs ose: Add dummy ttsl driver ose: Cleanup cleanup of mutex selection defines ose: Polish mmap configure checks ose: Add ose specific x-compile flags ose: Updating fd_driver and spawn_driver for OSE ose: Updating event and signal API for OSE ose: Cleanup of mutex selection defines win32: Compile erl_log.exe ose: Remove uneccesary define ose: Fix ssl configure test for osx erts: Fix sys_msg_dispatcher assert ose: Fix broken doc links ose: Thread priorities configurable from lmconf ose: Yielding the cpu is done "the OSE" way ose: Start using ppdata for tse key ose: Do not use spinlocks on OSE ose: Fix support for crypto ... Conflicts: lib/crypto/c_src/crypto.c
2014-02-24Merge branch 'byaruhaf/add-books/OTP-11754'Henrik Nord
* byaruhaf/add-books/OTP-11754: Updated Copyright year and recent Erlang books
2014-02-24ose: Create OSE applicationLukas Larsson
Create an specific OSE application that mainly contains documentation around the OSE specific part of Erlang/OTP.
2014-02-21Merge branch 'rickard/otp_version/OTP-11615'Rickard Green
* rickard/otp_version/OTP-11615: Misc adjustments of OTP version
2014-02-20erts: Add more details to warning in on_load docsSverker Eriksson
2014-02-19Misc adjustments of OTP versionRickard Green
2014-02-18Updated Copyright year and recent Erlang booksByaruhanga Franklin
Added "Introducing Erlang" & "Learn You Some Elrlang for Great Good" Also changed the href for "Programming Erlang" to the new second edition.
2014-02-12[refmanual] Fix List in definition of pre-defined typesHans Bolinder
improper_list(Type1, Type2) has been replaced by nonempty_improper_list(Type1, Type2).
2014-01-28Merge branch 'essen/remote-set-cookie/OTP-11637'Lukas Larsson
* essen/remote-set-cookie/OTP-11637: set_cookie/2 call needs to be fully qualified