summaryrefslogtreecommitdiff
path: root/lib/stdlib/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Improve and correct contracts and types of the IO modulesHans Bolinder2013-01-024-68/+95
| | |
* | | [stdlib, kernel] Introduce Unicode support for Erlang source filesHans Bolinder2013-01-0213-758/+1288
| | | | | | | | | | | | | | | | | | | | | Expect modifications, additions and corrections. There is a kludge in file_io_server and erl_scan:continuation_location() that's not so pleasing.
* | | [stdlib] Correct and improve specs and types of erl_scan and sysHans Bolinder2012-12-212-65/+66
| | | | | | | | | | | | Thanks to Kostis Sagonas.
* | | [snmp/manager] Removed deprecated functionsMicael Karlberg2012-12-201-42/+42
| |/ |/| | | | | | | | | | | Removed deprecated functions from the SNMP manager interface module snmpm. Also updated otp_internal in the stdlib app. OTP-10027
* | erl_expand_records: Remove stale support for literal tuple funsBjörn Gustavsson2012-12-031-3/+0
| |
* | stdlib: Monitor proc_lib:start'ed processes to avoid waiting foreverDan Gudmundsson2012-10-301-5/+33
| | | | | | | | | | | | | | | | | | | | | | Monitor the spawned process in proc_lib:start/[3|4|5], so that a proper error is returned, if the spawned process crashes before proclib:init_ack/1 is sent. Previously the calling process would hang forever or until specified timeout. Start link catches these errors but start did not. start now behaves as start_link if process traps exit.
* | Merge branch 'at/binary-depth-printing'Henrik Nord2012-10-181-2/+2
|\ \ | | | | | | | | | | | | | | | | | | * at/binary-depth-printing: Fix printing the empty binary at depth 1 with ~W OTP-10504
| * | Fix printing the empty binary at depth 1 with ~WAndrew Thompson2012-09-191-2/+2
| |/ | | | | | | | | | | A case clause ordering problem is causing the empty binary to be printed as <<...>> rather than the correct <<>> when using ~W with a depth of 1. Add new tests to verify correct behaviour.
* | Merge branch 'tp/supervisor-pass-on-errors'Siri Hansen2012-10-151-10/+15
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | * tp/supervisor-pass-on-errors: If supervisor:start_link fails to start child, add child id to error reason Fix documentation about how supervisor handles crash in child's start function Have supervisor send errors up the chain OTP-10490
| * | If supervisor:start_link fails to start child, add child id to error reasonSiri Hansen2012-10-111-1/+2
| | |
| * | Have supervisor send errors up the chainTomas Pihl2012-10-051-10/+14
| | | | | | | | | | | | | | | | | | If a child fails to start, supervisor relies upon error_logger which does not work when IO is inhibited. Instead pass the error up the chain and let someone else use a proper Reason for any possible printouts.
* | | filename: Eliminate Dialyzer warningBjörn Gustavsson2012-10-111-4/+2
| | | | | | | | | | | | os:type/0 always returns a two-tuple.
* | | Change the type of some arguments in filename to file:name()Hans Bolinder2012-10-101-7/+7
| | |
* | | Merge branch 'jn/ets-match-pattern-export-type'Henrik Nord2012-10-081-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * jn/ets-match-pattern-export-type: Export ets:match_pattern/0 type Conflicts: lib/stdlib/src/ets.erl OTP-10472
| * | | Export ets:match_pattern/0 typeJoseph Wayne Norton2012-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Similar to match specification, some of the ets functions uses a match pattern. Export the match pattern type to allow for inclusion in the types and function specifications of other modules.
* | | | Fix Dialyzer warningsHans Bolinder2012-10-059-9/+22
| |/ / |/| | | | | | | | Opaque types need to be exported.
* | | Merge branch 'vs/re_back_reference'Henrik Nord2012-10-011-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * vs/re_back_reference: extend re back reference syntax with \g escape sequence OTP-10455
| * | | extend re back reference syntax with \g escape sequenceVance Shipley2012-07-101-0/+6
| | | | | | | | | | | | | | | | | | | | Add the \gN and \g{N} syntax for back references in re:replace/3,4 to allow use with numeric replacement strings.
* | | | Refine a few opaque typesHans Bolinder2012-09-273-5/+8
| | | |
* | | | Warn for underspecified opaque typesHans Bolinder2012-09-261-6/+24
| | | |
* | | | Warn for opaque types that are not exportedHans Bolinder2012-09-261-5/+30
| |/ / |/| |
* | | Allow ** in filelib:wildcardJosé Valim2012-09-171-0/+23
| | | | | | | | | | | | | | | Two adjacent * used as a single pattern will match all files and zero or more directories and subdirectories.
* | | Fix filelib:wildcard/2Björn Gustavsson2012-09-121-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | filelib:wildcard("some/relative/path/*.beam", Path) would fail to match any file. That is, filelib:wildcard/2 would not work if the first component of the pattern did not contain any wildcard characters. Noticed-by: Samuel Rivas
* | | Merge branch 'maint'Björn-Egil Dahlberg2012-08-316-6/+6
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: lib/diameter/autoconf/vxworks/sed.general xcomp/README.md
| * | Update copyright yearsBjörn-Egil Dahlberg2012-08-316-6/+6
| | |
| * | Merge branch 'pg/fix-zip-multidisk/OTP-10223' into maintFredrik Gustafsson2012-08-271-1/+1
| |\ \ | | | | | | | | | | | | | | | | * pg/fix-zip-multidisk/OTP-10223: Fix bug where zip archives wrongly have a first disk number set to 1
* | \ \ Merge branch 'maint'Fredrik Gustafsson2012-08-271-1/+1
|\ \ \ \
| * \ \ \ Merge branch 'pg/fix-zip-multidisk/OTP-10223' into maintFredrik Gustafsson2012-08-271-1/+1
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | | | | * pg/fix-zip-multidisk/OTP-10223: Fix bug where zip archives wrongly have a first disk number set to 1
| | * | Fix bug where zip archives wrongly have a first disk number set to 1Paul Guyot2012-06-181-1/+1
| | |/
* | | Merge branch 'hb/dets_bound_key_opt/OTP-10097'Hans Bolinder2012-08-231-66/+85
|\ \ \ | | | | | | | | | | | | | | | | * hb/dets_bound_key_opt/OTP-10097: Optimize traversal of Dets tables with bound key
| * | | Optimize traversal of Dets tables with bound keyHans Bolinder2012-08-211-66/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Dets tables are no longer fixed while traversing with a bound key (when only the objects with the right key are matched). This optimization affects the functions match/2, match_object/2, select/2, match_delete/2, and select_delete/2.
* | | | Merge branch 'maint'Lukas Larsson2012-08-222-36/+10
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * maint: Revert "Merge branch 'nox/compile-column-numbers' into maint"
| * | | Revert "Merge branch 'nox/compile-column-numbers' into maint"Lukas Larsson2012-08-222-36/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Column numbers was merged without understanding all the whole story. See mail on erlang-patches for details. This reverts commit df8e67e203b83f95d1e098fec88ad5d0ad840069, reversing changes made to 0c9d90f314f364e5b1301ec89d762baabc57c7aa.
* | | | Merge branch 'bjorn/remove-tuple-funs/OTP-10170'Björn Gustavsson2012-08-222-5/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | * bjorn/remove-tuple-funs/OTP-10170: Remove support for tuple funs
| * | | Remove support for tuple funsBjörn Gustavsson2012-08-172-5/+1
| | | | | | | | | | | | | | | | Tuple funs were deprecated in R15B (in commit a4029940e309518f5500).
* | | | Merge branch 'maint'Patrik Nyblom2012-08-201-0/+2
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | Conflicts: erts/doc/src/erlang.xml erts/preloaded/ebin/init.beam lib/kernel/doc/src/os.xml lib/stdlib/test/filename_SUITE.erl
| * | Merge branch 'jkl/fix-filename-nativename/OTP-10188' into maintFredrik Gustafsson2012-08-201-0/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | * jkl/fix-filename-nativename/OTP-10188: Fix filename:nativename/1 on Win32 Add filename:nativename/1 binary argument test to suite
| | * | Fix filename:nativename/1 on Win32Jan Klötzke2012-07-301-0/+2
| | | | | | | | | | | | | | | | Don't choke on paths given as binary argument on Win32.
* | | | Merge branch 'maint'Björn Gustavsson2012-08-151-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: Update primary bootstrap Fix broken building of bootstrap compiler Conflicts: bootstrap/lib/kernel/ebin/code.beam
| * | | Fix broken building of bootstrap compilerBjörn Gustavsson2012-08-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit df8e67e203b83f95d1e098fec88ad5d0ad840069 broke "./otp_build update_primary" because epp:parse_file/4 was added and used from the compiler, but the epp module is not part of the primary compiler that is used to compile the bootstrap compiler. Fix the problem by including the epp module in the primary compiler.
* | | | Merge branch 'maint'Björn Gustavsson2012-08-151-1/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: erl_lint: Add a deprecated warning for literal tuple funs beam_utils:live_opt/1: Correct handling of try_case_end/1 Correct guard_SUITE_tuple_size.S beam_type: Print the offending function if this pass crashes beam_validator: Validate the size operand in bs_init_bits and bs_init2
| * | | Merge branch 'bjorn/compiler/minor-fixes/OTP-10185' into maintBjörn Gustavsson2012-08-151-1/+4
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bjorn/compiler/minor-fixes/OTP-10185: erl_lint: Add a deprecated warning for literal tuple funs beam_utils:live_opt/1: Correct handling of try_case_end/1 Correct guard_SUITE_tuple_size.S beam_type: Print the offending function if this pass crashes beam_validator: Validate the size operand in bs_init_bits and bs_init2
| | * | | erl_lint: Add a deprecated warning for literal tuple funsBjörn Gustavsson2012-08-151-1/+4
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The run-time warning for use of tuple funs will not catch the use of literal tuple funs, such as: if {erlang,'+'}(3,X) =:= 0 -> true; true -> false end. Therefore, add a compile-time warning to give users some warning before they stop working in R16.
* | | | Merge branch 'maint', remote-tracking branch 'upstream'Fredrik Gustafsson2012-08-142-10/+36
|\ \ \ \ | |/ / /
| * | | Merge branch 'nox/compile-column-numbers' into maintFredrik Gustafsson2012-08-142-10/+36
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nox/compile-column-numbers: Fix messages ordering with column numbers Fix type compile:err_info/0 Test column number reporting in error_SUITE Fix printing of errors with column numbers Create a new "column" option in compile Allow setting of initial position in epp Export type erl_scan:location/0
| | * | Allow setting of initial position in eppAnthony Ramine2012-06-021-9/+35
| | | |
| | * | Export type erl_scan:location/0Anthony Ramine2012-06-021-1/+1
| | | |
* | | | Merge branch 'maint'Henrik Nord2012-07-181-2/+16
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | Conflicts: erts/preloaded/ebin/erl_prim_loader.beam lib/kernel/src/code.erl
| * | | Merge branch 'ta/prim_archive-reloading' into maintHenrik Nord2012-07-181-2/+16
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ta/prim_archive-reloading: escript_SUITE: remove gratuitous space [erts,kernel,stdlib] fix escript/primary archive reloading Conflicts: erts/preloaded/src/erl_prim_loader.erl OTP-10151
| | * | | [erts,kernel,stdlib] fix escript/primary archive reloadingTuncer Ayaz2012-07-061-2/+16
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the mtime of an escript/primary archive file changes after being added to the code path, correctly reload the archive and update the cache. The existing code didn't consider that it might be a zip archive and failed: =ERROR REPORT==== 3-Aug-2011::09:21:21 === File operation error: bad_central_directory. Target: /escript_archive/module.beam. Function: get_file. Process: code_server. Thanks David Reid and Hakan Mattson.