summaryrefslogtreecommitdiff
path: root/lib/kernel/src
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearsBjörn-Egil Dahlberg2013-02-224-4/+4
|
* Introduce new type file:name_all()Hans Bolinder2013-02-211-64/+73
|
* Merge branch 'ks/hipe_bif-remove_refs_from/OTP-10851'Fredrik Gustafsson2013-02-201-17/+8
|\ | | | | | | | | | | * ks/hipe_bif-remove_refs_from/OTP-10851: Fixed test to allow for lists:foreach/2 call Change the return value of hipe_bifs:remove_refs_from/1
| * Change the return value of hipe_bifs:remove_refs_from/1Kostis Sagonas2013-02-131-17/+8
| | | | | | | | | | | | | | | | | | In order to avoid an ummatched return warning in erts and make the code more sane, the return value of the bif was changed from [] to 'ok'. (Probably more hipe_bifs need such changes but they will have to wait.) While at it, the code of various functions in hipe_unified_loader was shortened by using lists:foreach/1 instead of explicit recursion.
* | Use ~ts for filenamesHans Bolinder2013-02-191-1/+1
| |
* | Fix broken file:read_link_all/1Björn Gustavsson2013-02-181-1/+1
| | | | | | | | It produced the same result as file:read_link/1.
* | Merge branch 'sc/gen_tcp_send_error_closed/OTP-10839'Fredrik Gustafsson2013-02-151-1/+1
|\ \ | | | | | | | | | | | | * sc/gen_tcp_send_error_closed/OTP-10839: Fix type of error Reason on gen_tcp:send/2
| * | Fix type of error Reason on gen_tcp:send/2Sean Cribbs2013-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When the TCP socket is in passive mode, it is possible that a close message has not been delivered to the controlling process before calling send/2. This results in the returning {error, closed} to the caller, in the same way that recv/2,3 does. This commit adjusts the type of the error "Reason" to include the atom 'closed'.
* | | Merge branch 'bjorn/stdlib/types'Björn Gustavsson2013-02-141-5/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | * bjorn/stdlib/types: Make the file:filename() type more restrictive c: Remove handling of binaries in return from file:list_dir/1
| * | | Make the file:filename() type more restrictiveBjörn Gustavsson2013-02-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recommended type for filenames is a list of characters (which may be Unicode characters greater than 255). Change the file:filename() to reflect that. For the filename module we still need a type that can be either a string or a binary, so we need to introduce the type file:filename_all().
* | | | [kernel] FIx a bug that could cause crash with wrong reasonHans Bolinder2013-02-131-0/+2
|/ / /
* | | Merge branch 'pan/unicode_filename_warnings'Björn Gustavsson2013-02-122-2/+22
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pan/unicode_filename_warnings: Add file:list_dir_all/1 and file:read_link_all/1 prim_file: Add list_dir_all() and read_link_all() Teach prim_file:set_cwd() to avoid entering non-translatable directories Make prim_file skip invalid filenames in unicode mode prim_file: Refactor functions that return filenames prim_file: Refactor handling of responses prim_file: Always open non-file ports in binary mode Test that list_dir("non-existing-dir") fails with the correct error
| * | Add file:list_dir_all/1 and file:read_link_all/1Björn Gustavsson2013-02-112-2/+22
| |/
* | Make Unicode correctionsHans Bolinder2013-02-112-5/+5
| |
* | Merge branch 'vd/code_get_mode/OTP-10823'Fredrik Gustafsson2013-02-112-1/+8
|\ \ | |/ |/| | | | | | | * vd/code_get_mode/OTP-10823: Added name prefix to code.xml Add a new function code:get_mode() can be used to detect how the code servers behaves
| * Add a new function code:get_mode() can be used to detect how the code ↵Vlad Dumitrescu2013-02-012-1/+8
| | | | | | | | | | | | | | | | | | | | | | servers behaves Rationale: Some applications (like erlide) have code to be loaded dynamically on a node. It may be slow to load everything upfront every time, so if the node is in interactive mode, we would like to just append to the load path. Currently, there is no direct way to detect if the node is running in embedded mode or not so that we can do the right thing.
* | Merge branch 'mh/duplicate_name_error_message/OTP-10797'Fredrik Gustafsson2013-02-062-4/+12
|\ \ | |/ |/| | | | | * mh/duplicate_name_error_message/OTP-10797: Slightly nicer error message when node start fails due to duplicate name
| * Slightly nicer error message when node start fails due to duplicate nameMagnus Henoch2013-01-252-4/+12
| | | | | | | | | | | | | | | | | | | | | | When starting up an Erlang node using a node name that is already in use, the new node used to crash with output starting with this message: {error_logger,{{2013,1,25},{16,0,42}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[..... With this change, the first line in the output changes to: {error_logger,{{2013,1,25},{16,40,41}},"Protocol: ~tp: the name foo@localhost seems to be in use by another Erlang node",["inet_tcp"]}
* | Update copyright yearsBjörn-Egil Dahlberg2013-01-2516-16/+16
|/
* Make adjustments for UnicodeHans Bolinder2013-01-2513-76/+116
|
* [kernel] Correct bugs in the old shell (user.erl)Hans Bolinder2013-01-251-64/+108
| | | | | | The inline attribute has been simplified due to problems with compiling to native code. The exact cause it beyond the scope of this commit.
* [stdlib] Remove documentation of Unicode functions in io_libHans Bolinder2013-01-251-4/+1
| | | | | The documentation of some Unicode functions in io_lib was committed by mistake.
* Merge branch 'bjorn/warnings-zero-tolerance'Björn Gustavsson2013-01-242-2/+2
|\ | | | | | | | | | | | | * bjorn/warnings-zero-tolerance: Turn warnings to errors on selected applications runtime_tools_sup: Eliminate warning inet_parse: Eliminate a compiler warning
| * Turn warnings to errors on selected applicationsBjörn Gustavsson2013-01-231-1/+1
| |
| * inet_parse: Eliminate a compiler warningBjörn Gustavsson2013-01-231-1/+1
| | | | | | | | The warning was introduced in e367eb44969b00cac910c8eb14e7b3ce3ee0cc91.
* | Merge branch 'sverk/r16/utf8-atoms'Sverker Eriksson2013-01-231-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sverk/r16/utf8-atoms: erl_interface: Fix bug when transcoding atoms from and to UTF8 erl_interface: Changed erlang_char_encoding interface erts: Testcase doing unicode atom printout with ~w erl_interface: even more utf8 atom stuff erts: Fix bug in analyze_utf8 causing faulty latin1 detection Add UTF-8 node name support for epmd workaround... Fix merge conflict with hasse UTF-8 atom documentation test case erl_interface: utf8 atoms continued Add utf8 atom distribution test cases atom fixes for NIFs and atom_to_binary UTF-8 support for distribution Implement UTF-8 atom support for jinterface erl_interface: Enable decode of unicode atoms stdlib: Fix printing of unicode atoms erts: Change internal representation of atoms to utf8 erts: Refactor rename DFLAG(S)_INTERNAL_TAGS for conformity Conflicts: erts/emulator/beam/io.c OTP-10753
| * | UTF-8 support for distributionRickard Green2013-01-161-1/+2
| | |
* | | Add search to Erlang shell's historyFred Hebert2013-01-191-7/+133
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Search mode can be entered by pressing ctrl-r. Enter terms and press ctrl-r again to search backwards, or ctrl-s to then search forward (if you terminal doesn't eat up that one). Press enter to execute the line, or use tab, arrow keys, or other control sequences (^D, ^K, etc.) to exit search mode while remaining on the last found line. Exiting is also possible by pressing the escape key twice. The search mode is a simpler version of the one available in bash or zsh shells. This adds a few modes to the shell (search, on top of none and meta) in group.erl for history search, and a few more in edlin.erl to change the meaning of control sequences while searching.
* | Merge branch 'nox/enable-silent-rules/OTP-10726'Björn-Egil Dahlberg2013-01-181-5/+5
|\ \ | | | | | | | | | | | | * nox/enable-silent-rules/OTP-10726: Implement ./otp_build configure --enable-silent-rules
| * | Implement ./otp_build configure --enable-silent-rulesAnthony Ramine2013-01-151-5/+5
| | | | | | | | | | | | | | | | | | With silent rules, the output of make is less verbose and compilation warnings are easier to spot. Silent rules are disabled by default and can be disabled or enabled at will by make V=0 and make V=1.
* | | Merge branch 'bjorn/kernel/undefined-function-handler/OTP-10617'Björn Gustavsson2013-01-181-32/+21
|\ \ \ | | | | | | | | | | | | | | | | * bjorn/kernel/undefined-function-handler/OTP-10617: Teach error_handler to call '$handle_undefined_function'
| * | | Teach error_handler to call '$handle_undefined_function'Björn Gustavsson2013-01-141-32/+21
| | | |
* | | | Merge branch 'sal/get_env/OTP-10694'Fredrik Gustafsson2013-01-171-1/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sal/get_env/OTP-10694: Moved documentation in a separate entry Removed obsolete ?line macro Add application:get_key/3
| * | | | Add application:get_key/3serge2013-01-141-1/+15
| |/ / / | | | | | | | | | | | | | | | | The new function provides a default value for a configuration parameter.
* | | | Merge branch 'fdm/file-allocate/OTP-10680'Björn-Egil Dahlberg2013-01-113-1/+24
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | * fdm/file-allocate/OTP-10680: Update preloaded prim_file.beam erts: Fix xcomp configure for fallocate Add file:allocate/3 operation
| * | | Add file:allocate/3 operationFilipe David Manana2013-01-093-1/+24
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This operation allows pre-allocation of space for files. It succeeds only on systems that support such operation. The POSIX standard defines the optional system call posix_fallocate() to implement this feature. However, some systems implement more specific functions to accomplish the same operation. On Linux, if the more specific function fallocate() is implemented, it is used instead of posix_fallocate(), falling back to posix_fallocate() if the fallocate() call failed (it's only supported for the ext4, ocfs2, xfs and btrfs file systems at the moment). On Mac OS X it uses the specific fcntl() operation F_PREALLOCATE, falling back to posix_fallocate() if it's available (at the moment Mac OS X doesn't provide posix_fallocate()). On any other UNIX system, it uses posix_fallocate() if it's available. Any other system not providing this system call or any function to pre-allocate space for files, this operation always fails with the ENOTSUP POSIX error.
* | | kernel: Remove the packages moduleBjörn Gustavsson2013-01-093-160/+0
| | |
* | | kernel: Eliminate use of packages in code and code_serverBjörn Gustavsson2013-01-092-11/+4
|/ /
* | Merge branch 'ks/kernel/dist_util-minor-fix/OTP-10662'Fredrik Gustafsson2013-01-031-1/+2
|\ \ | | | | | | | | | | | | * ks/kernel/dist_util-minor-fix/OTP-10662: Do not return wrong terms unnecessarily
| * | Do not return wrong terms unnecessarilyKostis Sagonas2012-12-131-1/+2
| | |
* | | Make sure the Erlang shell prompt can handle UnicodeHans Bolinder2013-01-022-6/+7
| | |
* | | Correct bugs in the old shell (user.erl)Hans Bolinder2013-01-021-99/+90
| | |
* | | [stdlib, kernel] Introduce Unicode support for Erlang source filesHans Bolinder2013-01-022-3/+17
| | | | | | | | | | | | | | | | | | | | | Expect modifications, additions and corrections. There is a kludge in file_io_server and erl_scan:continuation_location() that's not so pleasing.
* | | Move ram option from mode() type into open/2 specPatrik Nyblom2012-12-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The mode() type is used in path_open and copy, two functions that do _not_ accept the ram option (or is at least not supposed to), why I moved the option 'ram' from the type down to the spec for open itself. That also makes the option visible directly under open/2 in the documentation.
* | | Basic documentation of the 'ram' mode in the 'file' moduleJan Daniel Bothma2012-12-201-2/+3
| | |
* | | Fix printout of application crash message on startupserge2012-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is what a sample crash message looks like before applying patch: Kernel pid terminated (application_controller) ({application_start_failure,cmp,{{bad_return_value, {doc_root_not_exists,[46,47,119,119,119]}},{cmp_app,start,[normal,[]]}}}) This is what a sample crash message looks like after applying patch: Kernel pid terminated (application_controller) ({application_start_failure,cmp,{{bad_return_value, {doc_root_not_exists,"./www"}},{cmp_app,start,[normal,[]]}}})
* | | Merge branch 'rickard/port-optimizations/OTP-10336' into ↵Rickard Green2012-12-073-4/+12
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rickard/r16/port-optimizations/OTP-10336 * rickard/port-optimizations/OTP-10336: Change annotate level for emacs-22 in cerl Update etp-commands Add documentation on communication in Erlang Add support for busy port message queue Add driver callback epilogue Implement true asynchronous signaling between processes and ports Add erl_drv_[send|output]_term Move busy port flag Use rwlock for driver list Optimize management of port tasks Improve configuration of process and port tables Remove R9 compatibility features Use ptab functionality also for ports Prepare for use of ptab functionality also for ports Atomic port state Generalize process table implementation Implement functionality for delaying thread progress from unmanaged threads Conflicts: erts/doc/src/erl_driver.xml erts/doc/src/erlang.xml erts/emulator/beam/beam_bif_load.c erts/emulator/beam/beam_bp.c erts/emulator/beam/beam_emu.c erts/emulator/beam/bif.c erts/emulator/beam/copy.c erts/emulator/beam/erl_alloc.c erts/emulator/beam/erl_alloc.types erts/emulator/beam/erl_bif_info.c erts/emulator/beam/erl_bif_port.c erts/emulator/beam/erl_bif_trace.c erts/emulator/beam/erl_init.c erts/emulator/beam/erl_message.c erts/emulator/beam/erl_port_task.c erts/emulator/beam/erl_process.c erts/emulator/beam/erl_process.h erts/emulator/beam/erl_process_lock.c erts/emulator/beam/erl_trace.c erts/emulator/beam/export.h erts/emulator/beam/global.h erts/emulator/beam/io.c erts/emulator/sys/unix/sys.c erts/emulator/sys/vxworks/sys.c erts/emulator/test/port_SUITE.erl erts/etc/unix/cerl.src erts/preloaded/ebin/erlang.beam erts/preloaded/ebin/prim_inet.beam erts/preloaded/src/prim_inet.erl lib/hipe/cerl/erl_bif_types.erl lib/kernel/doc/src/inet.xml lib/kernel/src/inet.erl
| * | Add support for busy port message queueRickard Green2012-12-073-4/+13
| | |
* | | Merge branch 'fredrik/inet/export-ip-funcs/OTP-8067'Fredrik Gustafsson2012-11-302-2/+57
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fredrik/inet/export-ip-funcs/OTP-8067: Inet doc clarifications Documentation changes inet Changes to function names, tests and docs of inet Added specs and doc Exported ipv4address and ipv6address functions to inet module, changed and made testcases
| * | | Changes to function names, tests and docs of inetFredrik Gustafsson2012-11-211-10/+10
| | | |