Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0369-Fix-typos-in-lib-kernel.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0369-Fix-typos-in-lib-kernel.patch of Package erlang
From 796f11d4de1552abbcaf32052cc31f0ae5386222 Mon Sep 17 00:00:00 2001 From: "Kian-Meng, Ang" <kianmeng@cpan.org> Date: Sun, 19 Dec 2021 16:30:37 +0800 Subject: [PATCH] Fix typos in lib/kernel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Björn Gustavsson <bgustavsson@gmail.com> --- lib/kernel/doc/src/config.xml | 2 +- lib/kernel/doc/src/erl_ddll.xml | 4 +- lib/kernel/doc/src/gen_sctp.xml | 2 +- lib/kernel/doc/src/gen_tcp.xml | 8 +- lib/kernel/doc/src/heart.xml | 2 +- lib/kernel/doc/src/inet.xml | 8 +- lib/kernel/doc/src/inet_res.xml | 2 +- lib/kernel/doc/src/logger.xml | 2 +- lib/kernel/doc/src/logger_chapter.xml | 4 +- lib/kernel/doc/src/logger_std_h.xml | 2 +- lib/kernel/doc/src/net.xml | 6 +- lib/kernel/doc/src/net_kernel.xml | 2 +- lib/kernel/doc/src/notes.xml | 18 ++-- lib/kernel/doc/src/os.xml | 2 +- lib/kernel/doc/src/rpc.xml | 4 +- lib/kernel/doc/src/seq_trace.xml | 2 +- lib/kernel/doc/src/socket.xml | 26 ++--- lib/kernel/doc/src/socket_usage.xml | 6 +- .../erl_uds_dist/src/erl_uds_dist.erl | 6 +- .../gen_tcp_dist/src/gen_tcp_dist.erl | 8 +- lib/kernel/examples/uds_dist/c_src/uds_drv.c | 2 +- .../examples/uds_dist/src/uds_server.erl | 2 +- lib/kernel/include/inet_sctp.hrl | 2 +- lib/kernel/src/application_controller.erl | 6 +- lib/kernel/src/code_server.erl | 2 +- lib/kernel/src/disk_log.erl | 4 +- lib/kernel/src/disk_log.hrl | 2 +- lib/kernel/src/dist_ac.erl | 6 +- lib/kernel/src/dist_util.erl | 4 +- lib/kernel/src/erl_boot_server.erl | 4 +- lib/kernel/src/erpc.erl | 2 +- lib/kernel/src/file_io_server.erl | 2 +- lib/kernel/src/gen_tcp_socket.erl | 2 +- lib/kernel/src/gen_udp_socket.erl | 6 +- lib/kernel/src/global_group.erl | 10 +- lib/kernel/src/heart.erl | 2 +- lib/kernel/src/inet.erl | 2 +- lib/kernel/src/inet_config.erl | 2 +- lib/kernel/src/inet_db.erl | 10 +- lib/kernel/src/inet_dns.hrl | 6 +- lib/kernel/src/inet_res.erl | 2 +- lib/kernel/src/inet_res.hrl | 2 +- lib/kernel/src/logger.erl | 4 +- lib/kernel/src/logger_h_common.erl | 2 +- lib/kernel/src/net_kernel.erl | 2 +- lib/kernel/src/ram_file.erl | 4 +- lib/kernel/src/rpc.erl | 6 +- lib/kernel/src/socket.erl | 12 +-- lib/kernel/test/application_SUITE.erl | 8 +- lib/kernel/test/code_SUITE.erl | 4 +- lib/kernel/test/disk_log_SUITE.erl | 2 +- lib/kernel/test/erl_distribution_SUITE.erl | 8 +- lib/kernel/test/erl_distribution_wb_SUITE.erl | 2 +- lib/kernel/test/erpc_SUITE_data/fwd_node.c | 2 +- lib/kernel/test/error_logger_SUITE.erl | 2 +- lib/kernel/test/file_SUITE.erl | 8 +- lib/kernel/test/file_SUITE_data/realmen.html | 6 +- lib/kernel/test/gen_tcp_api_SUITE.erl | 12 +-- lib/kernel/test/gen_tcp_misc_SUITE.erl | 38 +++---- lib/kernel/test/gen_udp_SUITE.erl | 6 +- lib/kernel/test/global_SUITE.erl | 8 +- lib/kernel/test/heart_SUITE.erl | 2 +- lib/kernel/test/inet_SUITE.erl | 16 +-- lib/kernel/test/inet_res_SUITE.erl | 4 +- .../test/kernel_test_global_sys_monitor.erl | 6 +- lib/kernel/test/kernel_test_lib.erl | 16 +-- lib/kernel/test/logger_SUITE.erl | 2 +- lib/kernel/test/logger_disk_log_h_SUITE.erl | 2 +- lib/kernel/test/logger_std_h_SUITE.erl | 6 +- lib/kernel/test/prim_file_SUITE.erl | 8 +- .../test/prim_file_SUITE_data/realmen.html | 10 +- .../test/ram_file_SUITE_data/realmen.html | 10 +- lib/kernel/test/rpc_SUITE.erl | 8 +- lib/kernel/test/socket_SUITE.erl | 98 +++++++++---------- lib/kernel/test/socket_test_evaluator.erl | 6 +- .../test/socket_test_ttest_tcp_server.erl | 4 +- .../test/socket_test_ttest_tcp_socket.erl | 2 +- 77 files changed, 267 insertions(+), 267 deletions(-) diff --git a/lib/kernel/doc/src/config.xml b/lib/kernel/doc/src/config.xml index cf47c2c231..fe271a1a6f 100644 --- a/lib/kernel/doc/src/config.xml +++ b/lib/kernel/doc/src/config.xml @@ -101,7 +101,7 @@ <c>sys.config</c> file and from a configuration that comes from a file descriptor that has been pointed out with the <seecom marker="erts:erl#configfd"><c>-configfd</c></seecom> command-line - arguemnt.</p> + argument.</p> <p>The syntax for including files can be described by the <seeguide marker="system/reference_manual:typespec">Erlang type diff --git a/lib/kernel/doc/src/erl_ddll.xml b/lib/kernel/doc/src/erl_ddll.xml index 798789c2af..40d0a578d3 100644 --- a/lib/kernel/doc/src/erl_ddll.xml +++ b/lib/kernel/doc/src/erl_ddll.xml @@ -95,7 +95,7 @@ <em>last port</em> using the driver is closed. Function <c>unload/1</c> can return immediately, as the <seeerl marker="#users">users</seeerl> - have no interrest in when the unloading occurs. The + have no interest in when the unloading occurs. The driver is unloaded when no one needs it any longer.</p> <p>If a process having the driver loaded dies, it has the same effect as if unloading is done.</p> @@ -334,7 +334,7 @@ <p>Loads and links the dynamic driver <c><anno>Name</anno></c>. <c><anno>Path</anno></c> is a file path to the directory containing the driver. - <c><anno>Name</anno></c> must be a sharable object/dynamic library. Two + <c><anno>Name</anno></c> must be a shareable object/dynamic library. Two drivers with different <c><anno>Path</anno></c> parameters cannot be loaded under the same name. <c><anno>Name</anno></c> is a string or atom containing at least one character.</p> diff --git a/lib/kernel/doc/src/gen_sctp.xml b/lib/kernel/doc/src/gen_sctp.xml index 9d5a4152a8..3a4655d1ef 100644 --- a/lib/kernel/doc/src/gen_sctp.xml +++ b/lib/kernel/doc/src/gen_sctp.xml @@ -817,7 +817,7 @@ connect(Socket, Ip, Port>, <url href="http://www.rfc-archive.org/getrfc.php?rfc=2960">RFC 2960</url> and <url href="http://tools.ietf.org/html/draft-ietf-tsvwg-sctpsocket-13">Sockets - API Extenstions for SCTP</url>.</p> + API Extensions for SCTP</url>.</p> </item> <tag><c>{sctp_peer_addr_params, #sctp_paddrparams{}}</c></tag> <item> diff --git a/lib/kernel/doc/src/gen_tcp.xml b/lib/kernel/doc/src/gen_tcp.xml index 9581834921..ea4fd85af9 100644 --- a/lib/kernel/doc/src/gen_tcp.xml +++ b/lib/kernel/doc/src/gen_tcp.xml @@ -126,7 +126,7 @@ do_recv(Sock, Bs) -> implementation. A send operation will detect a remote close and immediately return this to the caller, but do nothing else. - A reader will therefor be able to extract any data from the OS buffers. + A reader will therefore be able to extract any data from the OS buffers. If the socket is set to <c>active</c> to not <c>false</c>, the data will be received as expected (<c>{tcp, ...}</c> and then a closed message (<c>{tcp_closed, ...}</c> will be received (not an error). </p> @@ -153,7 +153,7 @@ do_recv(Sock, Bs) -> <em>will fail</em> with <c>{error, enotsup}</c>. </p> <p>This does not actually work for <c>inet_backend = inet</c> either, but in that case the error is simply <em>ignored</em>, - which is a <em>bad</em> idea. We have choosen to <em>not</em> + which is a <em>bad</em> idea. We have chosen to <em>not</em> ignore this error for <c>inet_backend = socket</c>. </p> </item> @@ -195,7 +195,7 @@ do_recv(Sock, Bs) -> which is since long (2003) obsoleted by RFC 3542 that <em>explicitly</em> removes this possibility to get packet information from a stream socket. - For comparision: it has existed in FreeBSD but is now removed, + For comparison: it has existed in FreeBSD but is now removed, at least since FreeBSD 10. </p> </note> @@ -513,7 +513,7 @@ do_recv(Sock, Bs) -> expires (the function can hang even when using 'inet' backend if the internal buffers are full). </p> <p>If this happens when using <c>packet =/= raw</c>, we have a partial - package written. A new package therefor <em>must not</em> be written + package written. A new package therefore <em>must not</em> be written at this point, as there is no way for the peer to distinguish this from the data portion of the current package. Instead, set package to raw, send the rest data (as raw data) and then set package to diff --git a/lib/kernel/doc/src/heart.xml b/lib/kernel/doc/src/heart.xml index e1fb1323a5..6f956924b3 100644 --- a/lib/kernel/doc/src/heart.xml +++ b/lib/kernel/doc/src/heart.xml @@ -98,7 +98,7 @@ </item> <tag><c><![CDATA[ERL_CRASH_DUMP_SECONDS=-1]]></c></tag> <item><p>Setting the environment variable to a negative value does not - reboot the runtime system until the crash dump file is completly + reboot the runtime system until the crash dump file is completely written.</p> </item> <tag><c><![CDATA[ERL_CRASH_DUMP_SECONDS=S]]></c></tag> diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml index 8e7fe2f7bf..e1edf3e657 100644 --- a/lib/kernel/doc/src/inet.xml +++ b/lib/kernel/doc/src/inet.xml @@ -588,7 +588,7 @@ fe80::204:acff:fe17:bf38 correspond to the second, third, and fourth/fifth parameters to the <c>getsockopt</c> call in the C socket API. The value stored in the buffer is returned as a binary <c>ValueBin</c>, - where all values are coded in the native endianess.</p> + where all values are coded in the native endianness.</p> <p>Asking for and inspecting raw socket options require low-level information about the current operating system and TCP stack.</p> <p><em>Example:</em></p> @@ -734,10 +734,10 @@ get_tcpi_sacked(Sock) -> <func> <name name="info" arity="1" since="OTP 24.0"/> - <fsummary>Retreive miscellaneous information about a socket</fsummary> + <fsummary>Retrieve miscellaneous information about a socket</fsummary> <desc> <p> - Produces a term containg miscellaneous information about a socket. + Produces a term containing miscellaneous information about a socket. </p> </desc> </func> @@ -1621,7 +1621,7 @@ setcap cap_sys_admin,cap_sys_ptrace,cap_dac_read_search+epi beam.smp</code> and the option value specified as a binary. This corresponds to the second, third, and fourth arguments to the <c>setsockopt</c> call in the C socket API. The option value - must be coded in the native endianess of the platform and, + must be coded in the native endianness of the platform and, if a structure is required, must follow the structure alignment conventions on the specific platform.</p> <p>Using raw socket options requires detailed knowledge about diff --git a/lib/kernel/doc/src/inet_res.xml b/lib/kernel/doc/src/inet_res.xml index 0d654bbc0e..be049ae1e2 100644 --- a/lib/kernel/doc/src/inet_res.xml +++ b/lib/kernel/doc/src/inet_res.xml @@ -125,7 +125,7 @@ <datatype> <name name="dns_msg"/> <desc> - <p>This is the start of a hiearchy of opaque data structures + <p>This is the start of a hierarchy of opaque data structures that can be examined with access functions in <c>inet_dns</c>, which return lists of <c>{Field,Value}</c> tuples. The arity 2 functions only return the value for a specified field.</p> diff --git a/lib/kernel/doc/src/logger.xml b/lib/kernel/doc/src/logger.xml index 45ee802cfc..647c970b10 100644 --- a/lib/kernel/doc/src/logger.xml +++ b/lib/kernel/doc/src/logger.xml @@ -480,7 +480,7 @@ logger:log(warning, #{ what => roof, cause => Cause }). <p>The message and metadata can either be given directly in the arguments, or returned from a fun. Passing a fun instead of the message/metadata directly is useful in scenarios when the message/metadata is very expensive to compute. - This is because the fun is only evaluted when the message/metadata is + This is because the fun is only evaluated when the message/metadata is actually needed, which may be not at all if the log event is not to be logged. Examples:</p> <code> diff --git a/lib/kernel/doc/src/logger_chapter.xml b/lib/kernel/doc/src/logger_chapter.xml index 45ee5eefad..df2edff724 100644 --- a/lib/kernel/doc/src/logger_chapter.xml +++ b/lib/kernel/doc/src/logger_chapter.xml @@ -218,7 +218,7 @@ <pre>fun((<seetype marker="logger#report"><c>logger:report()</c></seetype>) -> {<seetype marker="stdlib:io#format"><c>io:format()</c></seetype>,[term()]})</pre> <p>If it takes two arguments, the first is the report, and the second is a map containing extra data that allows direct - coversion to a string:</p> + conversion to a string:</p> <pre>fun((<seetype marker="logger#report"><c>logger:report()</c></seetype>,<seetype marker="logger#report_cb_config"><c>logger:report_cb_config()</c></seetype>) -> <seetype marker="stdlib:unicode#chardata"><c>unicode:chardata()</c></seetype>) </pre> <p>The fun must obey the <c>depth</c> and <c>chars_limit</c> @@ -925,7 +925,7 @@ logger:debug(#{got => connection_request, id => Id, state => State}, and progress reports.</p> <p>Prior to Erlang/OTP 21.0, these reports were only logged when the SASL application was running, and they were printed - trough SASL's own event handlers <c>sasl_report_tty_h</c> + through SASL's own event handlers <c>sasl_report_tty_h</c> and <c>sasl_report_file_h</c>.</p> <p>The destination of these log events was configured by <seeapp marker="sasl:sasl_app#deprecated_error_logger_config">SASL diff --git a/lib/kernel/doc/src/logger_std_h.xml b/lib/kernel/doc/src/logger_std_h.xml index d0d6268e34..8cbae2e621 100644 --- a/lib/kernel/doc/src/logger_std_h.xml +++ b/lib/kernel/doc/src/logger_std_h.xml @@ -149,7 +149,7 @@ information prior to writing, as long as no more than <c>N</c> milliseconds have passed since it was last read.</p> - <p>Notice that the risk of loosing log events grows when + <p>Notice that the risk of losing log events grows when the <c>file_check</c> value grows.</p> <p>Defaults to 0.</p> </item> diff --git a/lib/kernel/doc/src/net.xml b/lib/kernel/doc/src/net.xml index d63df8e8ca..5a9e104fc3 100644 --- a/lib/kernel/doc/src/net.xml +++ b/lib/kernel/doc/src/net.xml @@ -132,7 +132,7 @@ <func> <name name="getnameinfo" arity="1" since="OTP 22.0"/> <name name="getnameinfo" arity="2" since="OTP 22.0"/> - <fsummary>Address-to-name transaltion.</fsummary> + <fsummary>Address-to-name translation.</fsummary> <desc> <p>Address-to-name translation in a protocol-independant manner.</p> <p>This function is the inverse of @@ -146,7 +146,7 @@ <name name="getaddrinfo" arity="2" clause_i="1" since="OTP 22.0"/> <name name="getaddrinfo" arity="2" clause_i="2" since="OTP 22.0"/> <name name="getaddrinfo" arity="2" clause_i="3" since="OTP 22.0"/> - <fsummary>Network address and service transation.</fsummary> + <fsummary>Network address and service transaction.</fsummary> <desc> <p>Network address and service translation.</p> <p>This function is the inverse of @@ -169,7 +169,7 @@ possibly filtered according to <c>Filter</c>. </p> <p>By default, a filter with the content: <c>#{family => default, flags => any}</c> is used. - This will return all interfaces with adresses in the + This will return all interfaces with addresses in the <c>inet</c> and <c>inet6</c> families. </p> </desc> </func> diff --git a/lib/kernel/doc/src/net_kernel.xml b/lib/kernel/doc/src/net_kernel.xml index fd393df11c..5d3eceb4e0 100644 --- a/lib/kernel/doc/src/net_kernel.xml +++ b/lib/kernel/doc/src/net_kernel.xml @@ -336,7 +336,7 @@ $ <input>erl -sname foobar</input></pre> or <c>{error, noconnection}</c> if <c><anno>Node</anno></c> is not a connected node or <c>new</c>.</p> <p>If <c><anno>Node</anno></c> is <c>new</c> the <c><anno>Options</anno></c> - will then also be added to kernel configration parameters + will then also be added to kernel configuration parameters <seeapp marker="kernel:kernel_app#inet_dist_listen_options">inet_dist_listen_options</seeapp> and <seeapp marker="kernel:kernel_app#inet_dist_connect_options">inet_dist_connect_options</seeapp>.</p> diff --git a/lib/kernel/doc/src/notes.xml b/lib/kernel/doc/src/notes.xml index cf08ba982d..2f0cc44d9b 100644 --- a/lib/kernel/doc/src/notes.xml +++ b/lib/kernel/doc/src/notes.xml @@ -672,7 +672,7 @@ order to prevent late responses. The <c>gen_statem</c> behavior still use a proxy process in the distributed case, since it has always prevented late replies and - aliases wont work against pre OTP 24 nodes. The proxy + aliases won't work against pre OTP 24 nodes. The proxy process can be removed in OTP 26.</p> <p> The alias feature also made it possible to introduce new @@ -1062,7 +1062,7 @@ </item> <item> <p>When running Xref in the <c>modules</c> mode, the - Debugger application would show up as a depency for the + Debugger application would show up as a dependency for the Kernel applications.</p> <p> Own Id: OTP-17223 Aux Id: GH-4546, PR-4554 </p> @@ -1711,7 +1711,7 @@ <list> <item> <p>When running Xref in the <c>modules</c> mode, the - Debugger application would show up as a depency for the + Debugger application would show up as a dependency for the Kernel applications.</p> <p> Own Id: OTP-17223 Aux Id: GH-4546, PR-4554 </p> @@ -2274,7 +2274,7 @@ The default value is 0, which means that this check is done prior to each write operation. Setting a higher number may improve performance, but adds the risk of - loosing log events.</p> + losing log events.</p> <p> Own Id: OTP-15663</p> </item> @@ -4194,11 +4194,11 @@ Characteristics impact: A call to the <c>garbage_collect/1</c> BIF or the <c>check_process_code/2</c> BIF will normally take longer - time to complete while the system as a whole wont be as + time to complete while the system as a whole won't be as much negatively effected by the operation as before. A call to <c>code:purge/1</c> and <c>code:soft_purge/1</c> may complete faster or slower depending on the state of - the system while the system as a whole wont be as much + the system while the system as a whole won't be as much negatively effected by the operation as before.</p> <p> Own Id: OTP-11388 Aux Id: OTP-11535, OTP-11648 </p> @@ -4559,7 +4559,7 @@ <item> <p> Change printout of application crash message on startup - to formated strings (Thanks to Serge Aleynikov)</p> + to formatted strings (Thanks to Serge Aleynikov)</p> <p> Own Id: OTP-10620</p> </item> @@ -5341,7 +5341,7 @@ </item> <item> <p> - - Add spec for function that does not return - Strenghen + - Add spec for function that does not return - Strengthen spec - Introduce types to avoid duplication in specs - Add specs for functions that do not return - Add specs for behaviour callbacks - Simplify two specs</p> @@ -5721,7 +5721,7 @@ app-vsn/ebin/mod.beam file, the file info for the app-vsn and app-vsn/ebin directories are faked using the file info from the archive file as origin. The virtual - direcories can also be listed. For short, the top + directories can also be listed. For short, the top directories are virtual if they does not exist.</p> <p> Own Id: OTP-8387</p> diff --git a/lib/kernel/doc/src/os.xml b/lib/kernel/doc/src/os.xml index 02f36a25ff..9ac0583d0a 100644 --- a/lib/kernel/doc/src/os.xml +++ b/lib/kernel/doc/src/os.xml @@ -345,7 +345,7 @@ calendar:now_to_universal_time(TS), <pre> 1> <input>io:format("~s~n",[print_time:format_utc_timestamp()]).</input> 29 Apr 2009 9:55:30.051711</pre> - <p>OS system time can also be retreived by + <p>OS system time can also be retrieved by <seemfa marker="#system_time/0"><c>system_time/0</c></seemfa> and <seemfa marker="#system_time/1"><c>system_time/1</c></seemfa>.</p> </desc> diff --git a/lib/kernel/doc/src/rpc.xml b/lib/kernel/doc/src/rpc.xml index a3e96e99f4..cd72de686a 100644 --- a/lib/kernel/doc/src/rpc.xml +++ b/lib/kernel/doc/src/rpc.xml @@ -43,14 +43,14 @@ This cannot be changed due to compatibility reasons. As of OTP 23, a new module <seeerl marker="erpc"><c>erpc</c></seeerl> was introduced in order to provide an API that makes it possible - to distingush between the different results. The <c>erpc</c> + to distinguish between the different results. The <c>erpc</c> module provides a subset (however, the central subset) of the functionality available in the <c>rpc</c> module. The <c>erpc</c> implementation also provides a more scalable implementation with better performance than the original <c>rpc</c> implementation. However, since the introduction of <c>erpc</c>, the <c>rpc</c> module implements large parts of its central functionality using - <c>erpc</c>, so the <c>rpc</c> module wont not suffer scalability + <c>erpc</c>, so the <c>rpc</c> module won't not suffer scalability wise and performance wise compared to <c>erpc</c>. </p></note> </description> diff --git a/lib/kernel/doc/src/seq_trace.xml b/lib/kernel/doc/src/seq_trace.xml index b20a1f2f9d..94c56b2ea2 100644 --- a/lib/kernel/doc/src/seq_trace.xml +++ b/lib/kernel/doc/src/seq_trace.xml @@ -90,7 +90,7 @@ seq_trace:set_token(OldToken), % activate the trace token again the separate traces. Default is 0.</p> <warning> <p>Labels were restricted to small signed integers (28 bits) - prior to OTP 21. The trace token will be silenty dropped if it + prior to OTP 21. The trace token will be silently dropped if it crosses over to a node that does not support the label.</p> </warning> </item> diff --git a/lib/kernel/doc/src/socket.xml b/lib/kernel/doc/src/socket.xml index 72d3330955..ebedadc1fe 100644 --- a/lib/kernel/doc/src/socket.xml +++ b/lib/kernel/doc/src/socket.xml @@ -1314,7 +1314,7 @@ A control message has got a <c>data</c> field with a native (<c>binary</c>) value for the message data, and may also have a decoded <c>value</c> field - if this socket library succesfully decoded the data. + if this socket library successfully decoded the data. </p> </desc> </datatype> @@ -1629,7 +1629,7 @@ <seetype marker="#select_info"><c>{select, SelectInfo}</c></seetype>, and receiving the select message <c>{'$socket', Socket, select, SelectHandle}</c>, - and returns whether the connection setup was succesful or not. + and returns whether the connection setup was successful or not. </p> <p> Instead of calling this function, for backwards compatibility, @@ -1704,7 +1704,7 @@ <seetype marker="#socket_option">socket_option()</seetype> for which options that this implementation knows about, how they are related to option names in the OS, - and if there are known pecularities with any of them. + and if there are known peculiarities with any of them. </p> <p> What options are valid depends on what kind of socket it is @@ -1966,7 +1966,7 @@ <fsummary>Control device.</fsummary> <desc> <p>Retrieve socket (device) parameters. - This function retreives a specific parameter, + This function retrieves a specific parameter, according to <c>GetRequest</c> argument. The third argument is the (lookup) "key", identifying the interface (usually the name of the interface).</p> @@ -2119,7 +2119,7 @@ <fsummary>Report info about what the platform supports.</fsummary> <desc> <p> - This function retreives information about what the + This function retrieves information about what the platform supports, such as if SCTP is supported, or if a socket options are supported. </p> @@ -2274,7 +2274,7 @@ <p> On some platforms it is <em>necessary</em> to provide <c>domain</c>, <c>type</c> and <c>protocol</c> - since they cannot be retreived from the platform. + since they cannot be retrieved from the platform. </p> </note> </desc> @@ -2839,7 +2839,7 @@ <p> This cannot happen for a socket of <seetype marker="#type">type <c>stream</c></seetype> - where a partially succesful send is retried until + where a partially successful send is retried until the data is either accepted or there is an error. </p> <p> @@ -2882,8 +2882,8 @@ <p> This can only happen for a socket of <seetype marker="#type">type <c>stream</c></seetype> - when a partially succesful send is retried - untill there is an error. + when a partially successful send is retried + until there is an error. </p> </item> </taglist> @@ -3431,7 +3431,7 @@ <tag><c>{ok, <anno>BytesSent</anno>}</c></tag> <item> <p> - The transfer completed succesfully after + The transfer completed successfully after <c><anno>BytesSent</anno></c> bytes of data. </p> </item> @@ -3726,7 +3726,7 @@ <seetype marker="#socket_option">socket_option()</seetype> for which options that this implementation knows about, how they are related to option names in the OS, - and if there are known pecularities with any of them. + and if there are known peculiarities with any of them. </p> <p> What options are valid depends on what kind of socket it is @@ -3856,7 +3856,7 @@ <fsummary>Report info about what the platform supports.</fsummary> <desc> <p> - These functions function retreives information about what the + These functions function retrieves information about what the platform supports, such which platform features or which socket options, are supported. </p> @@ -4015,7 +4015,7 @@ <p>The general filter rule. <br/>A fun that takes the socket info and returns a <c><![CDATA[boolean()]]></c> - (<c><![CDATA[true]]></c> if the socket sould be included and + (<c><![CDATA[true]]></c> if the socket could be included and <c><![CDATA[false]]></c> if should not). </p> </item> </taglist> diff --git a/lib/kernel/doc/src/socket_usage.xml b/lib/kernel/doc/src/socket_usage.xml index c549ea0e19..39d9ded99e 100644 --- a/lib/kernel/doc/src/socket_usage.xml +++ b/lib/kernel/doc/src/socket_usage.xml @@ -34,7 +34,7 @@ <title>Introduction</title> <p>The socket interface (module) is basically a "thin" layer on top of the OS socket interface. It is assumed that, unless you have special needs, - gen_[tcp|udp|sctp] should be sufficent (when they become available). </p> + gen_[tcp|udp|sctp] should be sufficient (when they become available). </p> <p>Note that just because we have a documented and described option, it does <em>not</em> mean that the OS supports it. So its recommended that the user reads the platform specific documentation for the @@ -352,7 +352,7 @@ Since our implementation is <em>nonblocking</em>, its unknown if and how this option works, or even if it may cause malfunctions. - Therefor, we do not recommend setting this option. + Therefore, we do not recommend setting this option. Instead, use the <c>Timeout</c> argument to, for instance, the <seemfa marker="socket#recv/3"><c>recv/3</c></seemfa> @@ -400,7 +400,7 @@ Since our implementation is <em>nonblocking</em>, its unknown if and how this option works, or even if it may cause malfunctions. - Therefor, we do not recommend setting this option. + Therefore, we do not recommend setting this option. Instead, use the <c>Timeout</c> argument to, for instance, the <seemfa marker="socket#send/3"><c>send/3</c></seemfa> diff --git a/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl b/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl index b017667285..e4ef56b606 100644 --- a/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl +++ b/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl @@ -25,7 +25,7 @@ %% This is an example of how to plug in an alternative distribution %% protocol using distribution controller processes. Erlang %% distribution can use whatever underlying protocols as long as the -%% implementation reliably delivers data chuncks to the receiving +%% implementation reliably delivers data chunks to the receiving %% Erlang node in the order they were sent by the sending node. %% %% This example uses stream-oriented Unix Domain Sockets (of the @@ -74,7 +74,7 @@ %% If tracing is wanted, uncomment the dist_trace macro in dist_util.hrl %% to enable all the calls to trace below, or copy the trace macro here. %% -%% Tracing will freeze the initial boot when a -name or -sname paramater +%% Tracing will freeze the initial boot when a -name or -sname parameter %% is passed to start directly distributed nodes. To make it work, %% launch non-distributed nodes first (without -name and -sname) then %% call net_kernel:start/1 to enable the distribution in a second stage. @@ -417,7 +417,7 @@ accept_loop(Kernel, ListeningSocket) -> %% The caller of accept_supervisor is a representative for net_kernel and %% is identified as Kernel below. %% -%% AcceptPid is the process identifer created by accept/1. +%% AcceptPid is the process identifier created by accept/1. %% %% DistCtrl is the identifier of the distribution controller process in %% charge of the connection, as created by the accept_loop process above. diff --git a/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl b/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl index f4eb12818d..f73a622607 100644 --- a/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl +++ b/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl @@ -444,7 +444,7 @@ hs_data_common(DistCtrl) -> %% the connection down if no incoming traffic is seen. %% This process also executes on max priority. %% -%% These parties are linked togheter so should one +%% These parties are linked together so should one %% of them fail, all of them are terminated and the %% connection is taken down. %% @@ -569,7 +569,7 @@ call_ctrlr(Ctrlr, Msg) -> %% non-blocking send operation exposed in its API %% and we don't want to run the distribution %% controller under high priority. Therefore this -%% sparate process with max prio that dispatches +%% separate process with max prio that dispatches %% ticks. %% dist_cntrlr_tick_handler(Socket) -> @@ -700,7 +700,7 @@ dist_cntrlr_setup_loop(Socket, TickHandler, Sup) -> dist_cntrlr_input_setup(DHandle, Socket, Sup) -> link(Sup), - %% Ensure we don't try to put data before registerd + %% Ensure we don't try to put data before we are registered %% as input handler... receive DHandle -> @@ -775,7 +775,7 @@ death_row() -> death_row(normal) -> %% We do not want to exit with normal - %% exit reason since it wont bring down + %% exit reason since it won't bring down %% linked processes... death_row(); death_row(Reason) -> diff --git a/lib/kernel/examples/uds_dist/c_src/uds_drv.c b/lib/kernel/examples/uds_dist/c_src/uds_drv.c index 8c028ba910..6110ce6a72 100644 --- a/lib/kernel/examples/uds_dist/c_src/uds_drv.c +++ b/lib/kernel/examples/uds_dist/c_src/uds_drv.c @@ -1039,7 +1039,7 @@ static int try_lock(char *sockname, Byte *p_creation) } lseek(lockfd, 0, SEEK_SET); write(lockfd, &creation, 1); - fsync(lockfd); /* This could be concidered dangerous (blocking) */ + fsync(lockfd); /* This could be considered dangerous (blocking) */ *p_creation = creation; return lockfd; } diff --git a/lib/kernel/examples/uds_dist/src/uds_server.erl b/lib/kernel/examples/uds_dist/src/uds_server.erl index c060130f9d..76eb869c5e 100644 --- a/lib/kernel/examples/uds_dist/src/uds_server.erl +++ b/lib/kernel/examples/uds_dist/src/uds_server.erl @@ -113,7 +113,7 @@ load_driver() -> find_priv_lib() -> PrivDir = case (catch code:priv_dir(uds_dist)) of {'EXIT', _} -> - %% Code server probably not startet yet + %% Code server probably not started yet {ok, P} = erl_prim_loader:get_path(), ModuleFile = atom_to_list(?MODULE) ++ extension(), Pd = (catch lists:foldl diff --git a/lib/kernel/include/inet_sctp.hrl b/lib/kernel/include/inet_sctp.hrl index ddb3cdc26c..7b309b0e1c 100644 --- a/lib/kernel/include/inet_sctp.hrl +++ b/lib/kernel/include/inet_sctp.hrl @@ -120,7 +120,7 @@ }). %% sctp_partial_delivery_event: XXX: Not clear whether it is delivered to -%% the Sender or to the Recepient (probably the +%% the Sender or to the Recipient (probably the %% former). Currently, there is only 1 possible %% value for "indication": -record(sctp_pdapi_event, diff --git a/lib/kernel/src/application_controller.erl b/lib/kernel/src/application_controller.erl index bf7843b92b..1f428c560b 100644 --- a/lib/kernel/src/application_controller.erl +++ b/lib/kernel/src/application_controller.erl @@ -509,7 +509,7 @@ init(Init, Kernel) -> {ok, ConfData} -> %% Actually, we don't need this info in an ets table anymore. %% This table was introduced because starting applications - %% should be able to get som info from AC (e.g. loaded_apps). + %% should be able to get some info from AC (e.g. loaded_apps). %% The new implementation makes sure the AC process can be %% called during start-up of any app. case check_conf_data(ConfData) of @@ -670,7 +670,7 @@ handle_call({start_application, AppName, RestartType}, From, S) -> #state{running = Running, starting = Starting, start_p_false = SPF, started = Started, start_req = Start_req} = S, %% Check if the commandline environment variables are OK. - %% Incase of erroneous variables do not start the application, + %% In case of erroneous variables do not start the application, %% if the application is permanent crash the node. %% Check if the application is already starting. case lists:keyfind(AppName, 1, Start_req) of @@ -1731,7 +1731,7 @@ check_user() -> %%----------------------------------------------------------------- -%% Prepare for a release upgrade by reading all the evironment variables. +%% Prepare for a release upgrade by reading all the environment variables. %%----------------------------------------------------------------- do_prep_config_change(Apps) -> do_prep_config_change(Apps, []). diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl index 3ab50cafe0..dc40232852 100644 --- a/lib/kernel/src/code_server.erl +++ b/lib/kernel/src/code_server.erl @@ -1334,7 +1334,7 @@ handle_pending_on_load(Action, Mod, From, #state{on_load=OnLoad0}=St) -> %% call to its own module. That would be a deadlock. %% Fail the call. (The call is probably from error_handler, %% and it will ignore the actual error reason and cause - %% an undef execption.) + %% an undef exception.) {reply,{error,deadlock},St}; {_,_,_} -> OnLoad = handle_pending_on_load_1(Mod, {From,Action}, OnLoad0), diff --git a/lib/kernel/src/disk_log.erl b/lib/kernel/src/disk_log.erl index a420a133d0..19225c9be5 100644 --- a/lib/kernel/src/disk_log.erl +++ b/lib/kernel/src/disk_log.erl @@ -368,7 +368,7 @@ pid2name(Pid) -> end. %% This function Takes 3 args, a Log, a Continuation and N. -%% It retuns a {Cont2, ObjList} | eof | {error, Reason} +%% It returns a {Cont2, ObjList} | eof | {error, Reason} %% The initial continuation is the atom 'start' -type chunk_error_rsn() :: no_such_log @@ -1151,7 +1151,7 @@ system_terminate(Reason, _Parent, _, State) -> exit(Reason). %%----------------------------------------------------------------- -%% Temporay code for upgrade. +%% Temporary code for upgrade. %%----------------------------------------------------------------- system_code_change(State, _Module, _OldVsn, _Extra) -> {ok, State}. diff --git a/lib/kernel/src/disk_log.hrl b/lib/kernel/src/disk_log.hrl index 1e773e4730..6cb2c13f02 100644 --- a/lib/kernel/src/disk_log.hrl +++ b/lib/kernel/src/disk_log.hrl @@ -143,7 +143,7 @@ %% since log was opened if info/1 %% has not yet been used on this log. accFull :: non_neg_integer()} %% noFull+accFull is number of - %% oveflows since the log was opened. + %% overflows since the log was opened. ). -record(log, diff --git a/lib/kernel/src/dist_ac.erl b/lib/kernel/src/dist_ac.erl index 2a5cf0ba92..7b7f598de9 100644 --- a/lib/kernel/src/dist_ac.erl +++ b/lib/kernel/src/dist_ac.erl @@ -42,7 +42,7 @@ -define(DIST_AC, ?MODULE). -define(LOCK_ID, ?MODULE). -%% This is the protocol version for the dist_ac protcol (between nodes) +%% This is the protocol version for the dist_ac protocol (between nodes) -define(vsn, 1). %%%----------------------------------------------------------------- @@ -862,8 +862,8 @@ wait_dist_start(Node, Appl, Name, Nodes, PermittedNodes, S, Type) -> {dist_ac_weight, Name, _Weigth, Node} -> %% This is the situation: {Name, [RNode, {Node}, node()]} %% and permit(false) is called on RNode, and we sent the - %% weigth first. Node handled it in handle_info, and - %% now we must send him a weigth msg. We can use any weigth; + %% weight first. Node handled it in handle_info, and + %% now we must send him a weight msg. We can use any weight; %% he wins anyway. monitor_node(Node, false), {?DIST_AC, Node} ! diff --git a/lib/kernel/src/dist_util.erl b/lib/kernel/src/dist_util.erl index c724083be2..832fd2d485 100644 --- a/lib/kernel/src/dist_util.erl +++ b/lib/kernel/src/dist_util.erl @@ -1183,8 +1183,8 @@ send_status(#hs_data{socket = Socket, other_node = Node, %% ticker process, In that case this code will never run %% And then every 60 seconds we also check the connection and -%% close it if we havn't received anything on it for the -%% last 60 secs. If ticked == tick we havn't received anything +%% close it if we haven't received anything on it for the +%% last 60 secs. If ticked == tick we haven't received anything %% on the connection the last 60 secs. %% The detection time interval is thus, by default, 45s < DT < 75s diff --git a/lib/kernel/src/erl_boot_server.erl b/lib/kernel/src/erl_boot_server.erl index 4ac945ce01..7fdb1f3bb8 100644 --- a/lib/kernel/src/erl_boot_server.erl +++ b/lib/kernel/src/erl_boot_server.erl @@ -34,7 +34,7 @@ add_subnet/2, delete_subnet/2, which_slaves/0]). -%% Exports for testing (dont't remove; tests suites depend on them). +%% Exports for testing (don't remove; tests suites depend on them). -export([would_be_booted/1]). %% Internal exports @@ -46,7 +46,7 @@ { priority = 0, %% priority of this server version = "" :: string(), %% Version handled i.e "4.5.3" etc - udp_sock, %% listen port for broadcase requests + udp_sock, %% listen port for broadcast requests udp_port, %% port number must be ?EBOOT_PORT! listen_sock, %% listen sock for incoming file requests listen_port, %% listen port number diff --git a/lib/kernel/src/erpc.erl b/lib/kernel/src/erpc.erl index d591fc7025..c93b0f7ca8 100644 --- a/lib/kernel/src/erpc.erl +++ b/lib/kernel/src/erpc.erl @@ -590,7 +590,7 @@ mcall_send_requests(Tag, Ns, M, F, A, Tmo) -> mcall_send_requests(_Tag, [], M, F, A, RIDs, DL, local_call, NRs) -> %% Timeout infinity and call on local node wanted; - %% excecute local call in this process... + %% execute local call in this process... LRes = mcall_local_call(M, F, A), {ok, RIDs, #{local_call => LRes}, NRs, DL}; mcall_send_requests(_Tag, [], _M, _F, _A, RIDs, DL, _LC, NRs) -> diff --git a/lib/kernel/src/file_io_server.erl b/lib/kernel/src/file_io_server.erl index b848e5ef75..691fc00b14 100644 --- a/lib/kernel/src/file_io_server.erl +++ b/lib/kernel/src/file_io_server.erl @@ -673,7 +673,7 @@ get_chars_apply(Mod, Func, XtraArg, S0, OutEnc, end. %% A hack that tries to inform the caller about the position where the -%% error occured. +%% error occurred. invalid_unicode_error(Mod, Func, XtraArg, S) -> try {erl_scan,tokens,_Args} = XtraArg, diff --git a/lib/kernel/src/gen_tcp_socket.erl b/lib/kernel/src/gen_tcp_socket.erl index 7175e13836..a04ed3d6d3 100644 --- a/lib/kernel/src/gen_tcp_socket.erl +++ b/lib/kernel/src/gen_tcp_socket.erl @@ -1439,7 +1439,7 @@ handle_event({call, From}, {setopts, Opts}, State, {P, D}) -> %% we are in state 'recv' but are inactive is simply stored in the buffer. %% If activated: active: false -> once | true | N > 0 %% We need to check if there is something in our buffers, and maybe deliver - %% it to its owner. This is what we do here. This should only occure + %% it to its owner. This is what we do here. This should only occur %% if we are in state connected (state 'recv' and in-active when data %% arrives => put data in buffer and then enter state 'connected', since %% we are in-active). diff --git a/lib/kernel/src/gen_udp_socket.erl b/lib/kernel/src/gen_udp_socket.erl index 505dfea4ef..eb751efa72 100644 --- a/lib/kernel/src/gen_udp_socket.erl +++ b/lib/kernel/src/gen_udp_socket.erl @@ -444,7 +444,7 @@ do_sendmsg(?MODULE_socket(_Server, Socket), SockAddr, IOV, Ctrl) recv(Socket, Length) -> recv(Socket, Length, infinity). -%% This is a bit wierd. If two calls to recv is made with short intervalls +%% This is a bit weird. If two calls to recv is made with short intervals %% from different processes, with say timeout 10s and then 5s. The second %% call will be postponed until the first has been processed, which can %% take up to 10s. If the first times out (after 10s) the second is @@ -839,7 +839,7 @@ socket_getopt_opt(Socket, Opt, Tag) -> %% Its possible for *one* option to be mapped to several 'socket' options. %% But, its *always* the first element in th elist that is the "real" -%% option. This is the one used when *reading*. The other elemnts in the list +%% option. This is the one used when *reading*. The other elements in the list %% is basically side effect options, which is not used when reading. socket_getopt_opts([{_Domain, _} = Opt|_], Socket, Tag) -> socket_getopt_opt(Socket, Opt, Tag); @@ -1703,7 +1703,7 @@ handle_recv_error(P, D, ActionsR, Reason) -> {next_state, 'open', {P, recv_stop(D#{active := false})}, reverse(ActionsR_1)}; _ -> - %% Temporary ... need somthing better here...maybe + %% Temporary ... need something better here...maybe {next_state, 'open', {P, recv_stop(D#{active := false})}, reverse(ActionsR_1)} end. diff --git a/lib/kernel/src/global_group.erl b/lib/kernel/src/global_group.erl index 77ed46de5f..2d818bc01f 100644 --- a/lib/kernel/src/global_group.erl +++ b/lib/kernel/src/global_group.erl @@ -71,7 +71,7 @@ %%%==================================================================================== %%% The state of the global_group process %%% -%%% sync_state = no_conf (global_groups not defined, inital state) | +%%% sync_state = no_conf (global_groups not defined, initial state) | %%% synced %%% group_name = Own global group name %%% nodes = Nodes in the own global group @@ -219,9 +219,9 @@ request(Req, Time) -> %%% at release upgrade when all nodes are not yet upgraded. %%% %%% It is possible to manually force a sync of the global_group. This is done for -%%% instance after a release upgrade, after all nodes in the group beeing upgraded. +%%% instance after a release upgrade, after all nodes in the group being upgraded. %%% The nodes are not synced automatically because it would cause the node to be -%%% disconnected from those not yet beeing upgraded. +%%% disconnected from those not yet being upgraded. %%% %%% The three process dictionary variables (registered_names, send, and whereis_name) %%% are used to store information needed if the search process crashes. @@ -281,7 +281,7 @@ init([]) -> %%% sync() -> ok %%% %%% An operator ordered sync of the own global group. This must be done after -%%% a release upgrade. It can also be ordered if somthing has made the nodes +%%% a release upgrade. It can also be ordered if something has made the nodes %%% to disagree of the global_groups definition. %%%==================================================================================== handle_call(sync, _From, S) -> @@ -525,7 +525,7 @@ handle_call({global_groups_changed, NewPara}, _From, S) -> %% group) global is not going to be synced to these nodes. We disconnect instead %% of connect because upgrades can be done node by node and we cannot really %% know what nodes these new nodes are synced to. The operator can always - %% manually force a sync of the nodes after all nodes beeing uppgraded. + %% manually force a sync of the nodes after all nodes being uppgraded. %% We must disconnect also if some nodes to which we have a connection %% will not be in any global group at all. force_nodedown(nodes(connected) -- NewNodes), diff --git a/lib/kernel/src/heart.erl b/lib/kernel/src/heart.erl index ffd9fd668a..dadcfaea0e 100644 --- a/lib/kernel/src/heart.erl +++ b/lib/kernel/src/heart.erl @@ -370,7 +370,7 @@ check_system([?SCHEDULER_CHECK_OPT|Opts]) -> %% return 'ok' if everything is alright. %% Terminate if with reason if something is a miss. %% It is fine to timeout in the callback, in fact that is the intention -%% if something goes wront -> no heartbeat. +%% if something goes wrong -> no heartbeat. check_callback(Callback) -> case Callback of diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl index 99bc8a6278..65b5c92bb7 100644 --- a/lib/kernel/src/inet.erl +++ b/lib/kernel/src/inet.erl @@ -1660,7 +1660,7 @@ open_bind( open_fd(Fd, BAddr, BPort, Opts, Protocol, Family, Type, Module) -> DoNotBind = %% We do not do any binding if no port+addr options - %% were given, in order to keep backwards compatability + %% were given, in order to keep backwards compatibility %% with pre Erlang/OTP 17 BAddr =:= undefined, % Presumably already bound if diff --git a/lib/kernel/src/inet_config.erl b/lib/kernel/src/inet_config.erl index c1ff478cc2..9931e344d2 100644 --- a/lib/kernel/src/inet_config.erl +++ b/lib/kernel/src/inet_config.erl @@ -213,7 +213,7 @@ add_dns_lookup([],Acc) -> %% %% Set the hostname (SHORT) %% If hostname is long use the suffix as default domain -%% and initalize the search option with the parts of domain +%% and initialize the search option with the parts of domain %% set_hostname() -> case inet_udp:open(0,[]) of diff --git a/lib/kernel/src/inet_db.erl b/lib/kernel/src/inet_db.erl index 01912fdb57..c704a1dc1f 100644 --- a/lib/kernel/src/inet_db.erl +++ b/lib/kernel/src/inet_db.erl @@ -308,7 +308,7 @@ translate_lookup([]) -> []. valid_lookup() -> [dns, file, yp, nis, nisplus, native]. -%% Reconstruct an inetrc sturcture from inet_db +%% Reconstruct an inetrc structure from inet_db get_rc() -> get_rc([hosts, domain, nameservers, search, alt_nameservers, timeout, retry, servfail_retry_timeout, inet6, usevc, @@ -899,7 +899,7 @@ take_socket_type(MRef) -> %% -------------------- %% {node_auth,N} Ls - List of authentication for node N %% {node_crypt,N} Ls - List of encryption methods for node N -%% node_auth Ls - Default authenication +%% node_auth Ls - Default authentication %% node_crypt Ls - Default encryption %% %% Socket type (used for socket monitors) @@ -1205,7 +1205,7 @@ handle_call(Request, From, #state{db=Db}=State) -> Reply = handle_put_socket_type(State#state.sockets, MRef, Type), {reply, Reply, State}; - %% Take (in the 'maps' sence of the word) the socket type of + %% Take (in the 'maps' sense of the word) the socket type of %% this socket monitor (reference). {take_socket_type, MRef} -> Reply = handle_take_socket_type(State#state.sockets, MRef), @@ -1728,7 +1728,7 @@ lookup_cache_data(LcDomain, Type) -> <- match_rr(dns_rr_match(LcDomain, in, Type))]. %% We are simultaneously updating the table from all clients -%% and the server, so we might get duplicate recource records +%% and the server, so we might get duplicate resource records %% in the table, i.e identical domain, class, type and data. %% We embrace that and eliminate duplicates here. %% @@ -1960,7 +1960,7 @@ delete_oldest(CacheDb, TM, N) -> %% many duplicate times, which is not unlikely %% given the second resolution. Therefore it is %% possible that gb_trees and storing the number - %% of occurences for a cnt time might be needed, + %% of occurrences for a cnt time might be needed, %% so insertion gets more complicated and slower, %% and we need our own concept of set size. %% diff --git a/lib/kernel/src/inet_dns.hrl b/lib/kernel/src/inet_dns.hrl index a911110e05..5288c570b2 100644 --- a/lib/kernel/src/inet_dns.hrl +++ b/lib/kernel/src/inet_dns.hrl @@ -18,7 +18,7 @@ %% %CopyrightEnd% %% %% -%% Defintion for Domain Name System +%% Definition for Domain Name System %% %% @@ -153,7 +153,7 @@ %% %% Structure for query header, the order of the fields is machine and %% compiler dependent, in our case, the bits within a byte are assignd -%% least significant first, while the order of transmition is most +%% least significant first, while the order of transmission is most %% significant first. This requires a somewhat confusing rearrangement. %% -record(dns_header, @@ -162,7 +162,7 @@ %% byte F0 qr = 0, %% :1 response flag opcode = 0, %% :4 purpose of message - aa = 0, %% :1 authoritive answer + aa = 0, %% :1 authoritative answer tc = 0, %% :1 truncated message rd = 0, %% :1 recursion desired %% byte F1 diff --git a/lib/kernel/src/inet_res.erl b/lib/kernel/src/inet_res.erl index fda656831e..e579999c2f 100644 --- a/lib/kernel/src/inet_res.erl +++ b/lib/kernel/src/inet_res.erl @@ -738,7 +738,7 @@ do_udp_recv(I, IP, Port, Timeout, Decode, Time, PollCnt) -> {ok,Reply} -> case Decode(Reply) of false when Timeout =:= 0 -> - %% This is a compromize between the hard way i.e + %% This is a compromise between the hard way i.e %% in the clause below if Timeout becomes 0 bailout %% immediately and risk that the right reply lies %% ahead after some bad id replies, and the diff --git a/lib/kernel/src/inet_res.hrl b/lib/kernel/src/inet_res.hrl index c812550328..7d3c8762ba 100644 --- a/lib/kernel/src/inet_res.hrl +++ b/lib/kernel/src/inet_res.hrl @@ -18,7 +18,7 @@ %% %CopyrightEnd% %% %% -%% Dns & resolver defintions +%% Dns & resolver definitions %% %% milli second for requests diff --git a/lib/kernel/src/logger.erl b/lib/kernel/src/logger.erl index 0d62ae761b..d3c425e8af 100644 --- a/lib/kernel/src/logger.erl +++ b/lib/kernel/src/logger.erl @@ -994,7 +994,7 @@ get_primary_metadata() -> {ok, Meta} -> throw({logger_metadata, Meta}); undefined -> - %% This case is here to keep bug compatability. Can be removed in OTP 25. + %% This case is here to keep bug compatibility. Can be removed in OTP 25. case application:get_env(kernel,logger_default_metadata,#{}) of Meta when is_map(Meta) -> Meta; @@ -1210,7 +1210,7 @@ default(pid) -> self(); default(gl) -> group_leader(); default(time) -> timestamp(). -%% Remove everything upto and including this module from the stacktrace +%% Remove everything up to and including this module from the stacktrace filter_stacktrace(Module,[{Module,_,_,_}|_]) -> []; filter_stacktrace(Module,[H|T]) -> diff --git a/lib/kernel/src/logger_h_common.erl b/lib/kernel/src/logger_h_common.erl index e96d2b28f3..aea22ac435 100644 --- a/lib/kernel/src/logger_h_common.erl +++ b/lib/kernel/src/logger_h_common.erl @@ -396,7 +396,7 @@ do_log_to_binary(Log,Config) -> {config,FormatterConfig}, {log_event,Log}, {bad_return_value,String}, - {catched,{C2,R2,S2}}]), + {caught,{C2,R2,S2}}]), <<"FORMATTER ERROR: bad return value\n">> end. diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl index bc2f8a6573..0628e35bcd 100644 --- a/lib/kernel/src/net_kernel.erl +++ b/lib/kernel/src/net_kernel.erl @@ -458,7 +458,7 @@ do_auto_connect_2(Node, ConnId, From, State, ConnLookup) -> {reply, false, State}; %% This might happen due to connection close - %% not beeing propagated to user space yet. + %% not being propagated to user space yet. %% Save the day by just not connecting... {ok, once} when ConnLookup =/= [], (hd(ConnLookup))#connection.state =:= up -> diff --git a/lib/kernel/src/ram_file.erl b/lib/kernel/src/ram_file.erl index e7b5e1eedb..ae0784b770 100644 --- a/lib/kernel/src/ram_file.erl +++ b/lib/kernel/src/ram_file.erl @@ -41,7 +41,7 @@ %% -------------------------------------------------------------------------- %% These operation codes were once identical between efile_drv.c -%% and ram_file_drv.c, but now these drivers are not depeding on each other. +%% and ram_file_drv.c, but now these drivers are not depending on each other. %% So, the codes could be changed to more logical values now, but why indeed? %% Defined "file" functions @@ -394,7 +394,7 @@ ll_close(Port) -> %%% Utility functions. %% Converts a list of mode atoms into an mode word for the driver. -%% Returns {Mode, Opts} wher Opts is a list of options for +%% Returns {Mode, Opts} where Opts is a list of options for %% erlang:open_port/2, or {error, einval} upon failure. open_mode(List) when is_list(List) -> diff --git a/lib/kernel/src/rpc.erl b/lib/kernel/src/rpc.erl index 6b3b3100b6..52de9527ef 100644 --- a/lib/kernel/src/rpc.erl +++ b/lib/kernel/src/rpc.erl @@ -547,9 +547,9 @@ abcast([Node|Tail], Name, Mess) -> abcast([], _,_) -> abcast. -%% Syncronous broadcast, returns a list of the nodes which had Name +%% Synchronous broadcast, returns a list of the nodes which had Name %% as a registered server. Returns {Goodnodes, Badnodes}. -%% Syncronous in the sense that we know that all servers have received the +%% Synchronous in the sense that we know that all servers have received the %% message when we return from the call, we can't know that they have %% processed the message though. @@ -741,7 +741,7 @@ rec_nodes(Name, [{N,R} | Tail], Badnodes, Replies) -> end. %% Now for an asynchronous rpc. -%% An asyncronous version of rpc that is faster for series of +%% An asynchronous version of rpc that is faster for series of %% rpc's towards the same node. I.e. it returns immediately and %% it returns a Key that can be used in a subsequent yield(Key). diff --git a/lib/kernel/src/socket.erl b/lib/kernel/src/socket.erl index c188f516a1..069f714cc3 100644 --- a/lib/kernel/src/socket.erl +++ b/lib/kernel/src/socket.erl @@ -619,7 +619,7 @@ %% Even if we are able to decode both level and type, we may not be %% able to decode the data. The data is always delivered as a binary() %% and a decoded value is delivered in the 'value' field, if decoding -%% is succesful. +%% is successful. -type cmsg() :: cmsg_recv() | cmsg_send(). @@ -806,7 +806,7 @@ number_of() -> %% *** which_sockets/0,1 *** %% %% Interface function to the socket registry -%% Returns a list of all the sockets, accoring to the filter rule. +%% Returns a list of all the sockets, according to the filter rule. %% -spec which_sockets() -> [socket()]. @@ -976,7 +976,7 @@ use_registry(D) when is_boolean(D) -> %% %% This produces a list of "all" the sockets, and some info about each one. %% This function is intended as a utility and debug function. -%% The sockets can be selected from domain, type or porotocol. +%% The sockets can be selected from domain, type or protocol. %% The sockets are not sorted. %% %% =========================================================================== @@ -1277,7 +1277,7 @@ cancel_monitor(MRef) -> %% %% supports - get information about what the platform "supports". %% -%% Generates a list of various info about what the plaform can support. +%% Generates a list of various info about what the platform can support. %% The most obvious case is 'options'. %% %% Each item in a 'supports'-list will appear only *one* time. @@ -1338,7 +1338,7 @@ is_supported(options, Level, Opt) when is_atom(Level), is_atom(Opt) -> %% The nif sets up a monitor to this process, and if it dies the socket %% is closed. It is also used if someone wants to monitor the socket. %% -%% We may therefor need monitor function(s): +%% We may therefore need monitor function(s): %% %% socket:monitor(Socket) %% socket:demonitor(Socket) @@ -3945,7 +3945,7 @@ setopt_native(Socket, SocketOption, Value) -> %% If its an "invalid" option, we should not crash but return some %% useful error... %% -%% When specifying level as an integer, and therefor using "native mode", +%% When specifying level as an integer, and therefore using "native mode", %% we should make it possible to specify common types instead of the %% value size. Example: int | bool | {string, pos_integer()} | non_neg_integer() %% diff --git a/lib/kernel/test/application_SUITE.erl b/lib/kernel/test/application_SUITE.erl index 3584b90378..36d79fedff 100644 --- a/lib/kernel/test/application_SUITE.erl +++ b/lib/kernel/test/application_SUITE.erl @@ -225,7 +225,7 @@ failover(Conf) when is_list(Conf) -> %%----------------------------------------------------------------- %% Tests failover and takeover for distributed applications. Tests %% start, load etc implicitly. The applications do not use start_phases -%% i.e. the failover should be transfered to normal start type. +%% i.e. the failover should be transferred to normal start type. failover_comp(Conf) when is_list(Conf) -> %% start a help process to check the start type StPid = spawn_link(?MODULE, start_type, []), @@ -371,7 +371,7 @@ permissions(Conf) when is_list(Conf) -> false = is_started(app1, Cp3), true = is_started(app1, Cp2), - %% Start app3, make sure noone starts it + %% Start app3, make sure no one starts it {[ok,ok,ok],[]} = rpc:multicall(Cps, application, load, [app3()]), ?UNTIL(is_loaded(app3, Cps)), @@ -744,7 +744,7 @@ permit_false_start_local(Conf) when is_list(Conf) -> true = is_started(app1, Cp2), false = is_started(app1, Cp3), - %% Unpermit it agin + %% Unpermit it again ok = rpc:call(Cp1, application, permit, [app1, false]), ct:sleep(1000), false = is_started(app1, Cp1), @@ -1225,7 +1225,7 @@ otp_2718(Conf) when is_list(Conf) -> %% Ticket: OTP-2973 %% Slogan: application:start does not test if an appl is already starting... %%----------------------------------------------------------------- -%% Test of two processes simultanously starting the same application. +%% Test of two processes simultaneously starting the same application. otp_2973(Conf) when is_list(Conf) -> %% Write a .app file {ok, Fd} = file:open("app0.app", [write]), diff --git a/lib/kernel/test/code_SUITE.erl b/lib/kernel/test/code_SUITE.erl index dd5d11f0d9..a53f43b61c 100644 --- a/lib/kernel/test/code_SUITE.erl +++ b/lib/kernel/test/code_SUITE.erl @@ -303,7 +303,7 @@ replace_path(Config) when is_list(Config) -> true = code:set_path(P), %Reset path ok = file:del_dir("./kernel-2.11"), - %% Add a completly new application. + %% Add a completely new application. NewAppName = 'blurf_blarfer', NewAppDir = filename:join(Cwd, atom_to_list(NewAppName) ++ "-6.33.1"), @@ -776,7 +776,7 @@ clash(Config) when is_list(Config) -> true = code:add_path(TmpEzFile++"/foobar-0.1/ebin"), case os:type() of {win32,_} -> - %% The file wont be deleted on windows until it's closed, why we + %% The file won't be deleted on windows until it's closed, why we %% need to rename instead. ok = file:rename(TmpEzFile,TmpEzFile++".moved"); _ -> diff --git a/lib/kernel/test/disk_log_SUITE.erl b/lib/kernel/test/disk_log_SUITE.erl index 9dd008d978..cea7cd52e9 100644 --- a/lib/kernel/test/disk_log_SUITE.erl +++ b/lib/kernel/test/disk_log_SUITE.erl @@ -1045,7 +1045,7 @@ m() -> one_line("halt,int.inf. (10,1000)", W5, R5, Rep5, C5), io:format("\n"), io:format("\tWrap log time depends on how often the log wraps, as this\n"), - io:format("\tinvolves opening of new files, which costs alot."), + io:format("\tinvolves opening of new files, which costs a lot."), io:format("\n"). one_line(Txt, W, R, Rep, C) -> diff --git a/lib/kernel/test/erl_distribution_SUITE.erl b/lib/kernel/test/erl_distribution_SUITE.erl index fbfe47e2da..2274d7f838 100644 --- a/lib/kernel/test/erl_distribution_SUITE.erl +++ b/lib/kernel/test/erl_distribution_SUITE.erl @@ -303,14 +303,14 @@ illegal(Name) -> test_node(Name) -> test_node(Name, false). -test_node(Name, Illigal) -> - test_node(Name, Illigal, ""). -test_node(Name, Illigal, ExtraArgs) -> +test_node(Name, Illegal) -> + test_node(Name, Illegal, ""). +test_node(Name, Illegal, ExtraArgs) -> ProgName = ct:get_progname(), Command = ProgName ++ " -noinput " ++ long_or_short() ++ Name ++ ExtraArgs ++ " -eval \"net_adm:ping('" ++ atom_to_list(node()) ++ "')\"" ++ - case Illigal of + case Illegal of true -> " -eval \"timer:sleep(10000),init:stop().\""; false -> diff --git a/lib/kernel/test/erl_distribution_wb_SUITE.erl b/lib/kernel/test/erl_distribution_wb_SUITE.erl index ba1b18745f..31ef27fcac 100644 --- a/lib/kernel/test/erl_distribution_wb_SUITE.erl +++ b/lib/kernel/test/erl_distribution_wb_SUITE.erl @@ -524,7 +524,7 @@ gen_digest(Challenge, Cookie) when is_integer(Challenge), is_atom(Cookie) -> %% -%% The differrent stages of the MD5 handshake +%% The different stages of the MD5 handshake %% send_status(Socket, Stat) -> diff --git a/lib/kernel/test/error_logger_SUITE.erl b/lib/kernel/test/error_logger_SUITE.erl index eab72e58a7..3d9e631487 100644 --- a/lib/kernel/test/error_logger_SUITE.erl +++ b/lib/kernel/test/error_logger_SUITE.erl @@ -235,7 +235,7 @@ generate_error(Error, Stack) -> via_logger_process(Config) -> case os:type() of {win32,_} -> - {skip,"Skip on windows - cant change file mode"}; + {skip,"Skip on windows - can't change file mode"}; _ -> error_logger:add_report_handler(?MODULE, self()), Dir = filename:join(?config(priv_dir,Config),"dummydir"), diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl index 60aa60bf9f..534886696f 100644 --- a/lib/kernel/test/file_SUITE.erl +++ b/lib/kernel/test/file_SUITE.erl @@ -1089,7 +1089,7 @@ close(Config) when is_list(Config) -> {ok,Fd1} = ?FILE_MODULE:open(Name,read_write), %% Just closing it is no fun, we did that a million times already %% This is a common error, for code written before Erlang 4.3 - %% bacause then ?FILE_MODULE:open just returned a Pid, and not everyone + %% because then ?FILE_MODULE:open just returned a Pid, and not everyone %% really checked what they got. {'EXIT',_Msg} = (catch ok = ?FILE_MODULE:close({ok,Fd1})), ok = ?FILE_MODULE:close(Fd1), @@ -1253,7 +1253,7 @@ append(Config) when is_list(Config) -> ok = ?FILE_MODULE:make_dir(NewDir), First = "First line\n", - Second = "Seond lines comes here\n", + Second = "Second lines comes here\n", Third = "And here is the third line\n", %% Write a small text file. @@ -2238,7 +2238,7 @@ allocate(Config) when is_list(Config) -> allocate_and_assert(Fd, Offset, Length) -> %% Just verify that calls to ?PRIM_FILE:allocate/3 don't crash or have - %% any other negative side effect. We can't really asssert against a + %% any other negative side effect. We can't really assert against a %% specific return value, because support for file space pre-allocation %% depends on the OS, OS version and underlying filesystem. %% @@ -2603,7 +2603,7 @@ e_rename(Config) when is_list(Config) -> ok -> {ok, {comment, "Moving between filesystems " - "suceeded, files are probably " + "succeeded, files are probably " "in the same filesystem!"}}; {error, eperm} -> {ok, {comment, "SBS! You don't " diff --git a/lib/kernel/test/file_SUITE_data/realmen.html b/lib/kernel/test/file_SUITE_data/realmen.html index 92e13f23b8..eaaa65523a 100644 --- a/lib/kernel/test/file_SUITE_data/realmen.html +++ b/lib/kernel/test/file_SUITE_data/realmen.html @@ -121,7 +121,7 @@ based on data structures, instead of the other way around. As all Real Programmers know, the only useful data structure is the array. Strings, lists, structures, sets -- these are all special cases of arrays and and can be treated that way just as easily without -messing up your programing language with all sorts of +messing up your programming language with all sorts of complications. The worst thing about fancy data types is that you have to declare them, and Real Programming Languages, as we all know, have implicit typing based on the first letter of the (six character) @@ -318,7 +318,7 @@ thing slightly more trivial than the destruction of life as we know it, providing there's enough money in it. There are several Real Programmers building video games at Atari, for example. (But not playing them. A Real Programmer knows how to beat the machine every -time: no challange in that.) Everyone working at LucasFilm is a Real +time: no challenge in that.) Everyone working at LucasFilm is a Real Programmer. (It would be crazy to turn down the money of 50 million Star Wars fans.) The proportion of Real Programmers in Computer Graphics is somewhat lower than the norm, mostly because nobody has @@ -384,7 +384,7 @@ coffee. In some cases, the cups will contain Orange Crush. and the Principles of Operation open to some particularly interesting pages. -<LI> Taped to the wall is a line-printer Snoopy calender for the year +<LI> Taped to the wall is a line-printer Snoopy calendar for the year 1969. <LI> Strewn about the floor are several wrappers for peanut butter diff --git a/lib/kernel/test/gen_tcp_api_SUITE.erl b/lib/kernel/test/gen_tcp_api_SUITE.erl index 3d987a180f..7467ecfdae 100644 --- a/lib/kernel/test/gen_tcp_api_SUITE.erl +++ b/lib/kernel/test/gen_tcp_api_SUITE.erl @@ -58,7 +58,7 @@ suite() -> ]. all() -> - %% This is a temporary messure to ensure that we can + %% This is a temporary measure to ensure that we can %% test the socket backend without effecting *all* %% applications on *all* machines. %% This flag is set only for *one* host. @@ -399,9 +399,9 @@ do_recv_delim(Config) -> ok = gen_tcp:send(A, "abcXefgX"), ?P("await the first chunk"), - receive {tcp, Client, "abcX"} -> ?P("received first chunck") end, + receive {tcp, Client, "abcX"} -> ?P("received first chunk") end, ?P("await the second chunk"), - receive {tcp, Client, "efgX"} -> ?P("received second chunck") end, + receive {tcp, Client, "efgX"} -> ?P("received second chunk") end, ?P("cleanup"), ok = gen_tcp:close(Client), @@ -584,7 +584,7 @@ do_t_fdconnect(Config) -> ct:fail({unexpected_listen_error, LReason, LOpts}) catch LC : LE : LS -> - ?P("UNEXPECTED ERROR - catched listen: " + ?P("UNEXPECTED ERROR - caught listen: " "~n LOpts: ~p" "~n C: ~p" "~n E: ~p" @@ -610,7 +610,7 @@ do_t_fdconnect(Config) -> ct:fail({unexpected_connect_error, CReason, COpts}) catch CC : CE : CS -> - ?P("UNEXPECTED ERROR - catched connect: " + ?P("UNEXPECTED ERROR - caught connect: " "~n COpts: ~p" "~n C: ~p" "~n E: ~p" @@ -632,7 +632,7 @@ do_t_fdconnect(Config) -> ct:fail({unexpected_accept_error, AReason}) catch AC : AE : AS -> - ?P("UNEXPECTED ERROR - catched accept: " + ?P("UNEXPECTED ERROR - caught accept: " "~n C: ~p" "~n E: ~p" "~n S: ~p", [AC, AE, AS]), diff --git a/lib/kernel/test/gen_tcp_misc_SUITE.erl b/lib/kernel/test/gen_tcp_misc_SUITE.erl index f8561a44c4..27a4cd5b3d 100644 --- a/lib/kernel/test/gen_tcp_misc_SUITE.erl +++ b/lib/kernel/test/gen_tcp_misc_SUITE.erl @@ -121,7 +121,7 @@ suite() -> {timetrap,{minutes,4}}]. all() -> - %% This is a temporary messure to ensure that we can + %% This is a temporary measure to ensure that we can %% test the socket backend without effecting *all* %% applications on *all* machines. %% This flag is set only for *one* host. @@ -425,7 +425,7 @@ do_default_options(Config) -> "-kernel inet_default_listen_options " "\"{delay_send,true}\"", fun() -> do_delay_send_2(Config) end), - %% Active is to dangerous and is supressed + %% Active is to dangerous and is suppressed {true,true,true} = do_delay_on_other_node("-kernel inet_default_connect_options " "\"{active,false}\" " @@ -984,10 +984,10 @@ iter_max_socks(Config) when is_list(Config) -> %% Run on a different node in order to limit the effect if this test fails. Dir = filename:dirname(code:which(?MODULE)), {ok, Node} = ?START_NODE(test_iter_max_socks, "+Q 2048 -pa " ++ Dir), - %% L = rpc:call(Node,?MODULE,do_iter_max_socks,[N, initalize]), + %% L = rpc:call(Node,?MODULE,do_iter_max_socks,[N, initialize]), L = iter_max_socks_run(Node, fun() -> - exit(do_iter_max_socks(Config, Tries, initalize)) + exit(do_iter_max_socks(Config, Tries, initialize)) end), ?STOP_NODE(Node), @@ -1019,7 +1019,7 @@ iter_max_socks_run(Node, F) -> do_iter_max_socks(_Config, 0, _) -> ?P("do_iter_max_socks(0,-) -> done"), []; -do_iter_max_socks(Config, N, initalize = First) -> +do_iter_max_socks(Config, N, initialize = First) -> ?P("do_iter_max_socks(~w,~w) -> entry", [N, First]), MS = max_socks(Config), [MS|do_iter_max_socks(Config, N-1, MS)]; @@ -2310,11 +2310,11 @@ lz_ensure_non_empty_queue(Sock, Payload, OS, N) -> ?P("try verify client socket queue size"), case erlang:port_info(Sock, queue_size) of {queue_size, QSz} when QSz > 0 -> - ?P("queue size verification *successfull* (~p) - port info: " + ?P("queue size verification *successful* (~p) - port info: " "~n ~p", [QSz, erlang:port_info(Sock)]), ok; {queue_size, 0} when OS =:= win32 -> - ?P("queue size verification *successfull* - port info: " + ?P("queue size verification *successful* - port info: " "~n ~p", [erlang:port_info(Sock)]), ok; {queue_size, 0} -> @@ -3271,7 +3271,7 @@ test_prio_accept_async(Config) -> {Ref,{ok,[{priority,4},{tos,Tos1}]}} -> ok; {Ref,Error} -> - ct:fail({missmatch,Error}) + ct:fail({mismatch,Error}) after 5000 -> ct:fail({error,"helper process timeout"}) end, ?P("test_prio_accept_async -> await prio and tos for accepted socket"), @@ -3279,7 +3279,7 @@ test_prio_accept_async(Config) -> {Ref,{ok,[{priority,4},{tos,Tos1}]}} -> ok; {Ref,Error2} -> - ct:fail({missmatch,Error2}) + ct:fail({mismatch,Error2}) after 5000 -> ct:fail({error,"helper process timeout"}) end, @@ -3328,7 +3328,7 @@ test_prio_udp() -> so_priority(Config) when is_list(Config) -> ?TC_TRY(so_priority, %% Normally we should have the condition funm here, - %% but since we are (currently) not platform independant, + %% but since we are (currently) not platform independent, %% we can't...check in the test case instead. fun() -> do_so_priority(Config) end). @@ -4670,7 +4670,7 @@ accept_system_limit(Config) when is_list(Config) -> Cond = fun() -> case ?IS_SOCKET_BACKEND(Config) of true -> - {skip, "Not complient with socket"}; + {skip, "Not compliant with socket"}; false -> ok end @@ -5017,11 +5017,11 @@ do_send_timeout(Config) -> ?P("await (timeout checker) process death"), receive {'DOWN', Mon, process, Pid, _} -> ok end, - %% Check that parallell writers do not hang forever - ?P("check parallell writers wo autoclose"), + %% Check that parallel writers do not hang forever + ?P("check parallel writers wo autoclose"), send_timeout_para(Config, BinData, SndBuf, TslTimeout, SndTimeout, false, RNode), - ?P("check parallell writers w autoclose"), + ?P("check parallel writers w autoclose"), send_timeout_para(Config, BinData, SndBuf, TslTimeout, SndTimeout, true, RNode), @@ -5088,7 +5088,7 @@ send_timeout_para(Config, BinData, BufSz, TslTimeout, SndTimeout, ?F("UNKNOWN: ~p", [X2]) catch C2:E2:S2 -> - ?F("CATCHED: ~p, ~p, ~p", [C2, E2, S2]) + ?F("CAUGHT: ~p, ~p, ~p", [C2, E2, S2]) end end, @@ -6359,7 +6359,7 @@ otp_12242(Config) when is_list(Config) -> %% Even if we set sndbuf and recbuf to small sizes %% Windows either happily accepts to send GBytes of %% data in no time, so the second send below that - %% is supposed to time out just succedes, or the + %% is supposed to time out just succeeds, or the %% first send that is supposed to fill the inet_drv %% I/O queue and start waiting for when more data %% can be sent instead sends all data but suffers @@ -6368,7 +6368,7 @@ otp_12242(Config) when is_list(Config) -> _ -> case ?IS_SOCKET_BACKEND(Config) of true -> - {skip, "Not complient with socket"}; + {skip, "Not compliant with socket"}; false -> ok end @@ -6541,7 +6541,7 @@ otp_12242_closer(C) -> ok = Result catch Class:Reason:Stacktrace -> - ?P("[closer] catched gen_tcp:close(C):" + ?P("[closer] caught gen_tcp:close(C):" "~n Error Class: ~p" "~n Error: ~p" "~n Stack trace: ~p", @@ -6611,7 +6611,7 @@ delay_send_error2(Sock) -> delay_send_error2(Sock, 0) -> gen_tcp:close(Sock), - ct:fail("Unxpected send success"); + ct:fail("Unexpected send success"); delay_send_error2(Sock, N) -> %% Sleep in order for delay_send to have time to trigger %% This used to result in a double free diff --git a/lib/kernel/test/gen_udp_SUITE.erl b/lib/kernel/test/gen_udp_SUITE.erl index 0317f0fe8d..49074f20a7 100644 --- a/lib/kernel/test/gen_udp_SUITE.erl +++ b/lib/kernel/test/gen_udp_SUITE.erl @@ -63,7 +63,7 @@ suite() -> {timetrap,{minutes,1}}]. all() -> - %% This is a temporary messure to ensure that we can + %% This is a temporary measure to ensure that we can %% test the socket backend without effecting *all* %% applications on *all* machines. %% This flag is set only for *one* host. @@ -611,7 +611,7 @@ read_packets(Config) when is_list(Config) -> true -> %% We have not (yet) implemented support for %% this option. We accept it but do not use it. - {skip, "Not complient with socket"}; + {skip, "Not compliant with socket"}; false -> ok end @@ -1755,7 +1755,7 @@ do_implicit_inet6(Config) -> implicit_inet6(Config, Host, Addr) -> Active = {active,false}, Loopback = {0,0,0,0,0,0,0,1}, - ?P("try 1 with explit inet6 on loopback"), + ?P("try 1 with explicit inet6 on loopback"), S1 = case ?OPEN(Config, 0, [inet6, Active, {ip, Loopback}]) of {ok, Sock1} -> Sock1; diff --git a/lib/kernel/test/global_SUITE.erl b/lib/kernel/test/global_SUITE.erl index 74dab9b1cc..8eaeb525e9 100644 --- a/lib/kernel/test/global_SUITE.erl +++ b/lib/kernel/test/global_SUITE.erl @@ -764,7 +764,7 @@ locks(Config) when is_list(Config) -> Pid = start_proc(), Pid2 = rpc:call(Cp1, ?MODULE, start_proc, []), - %% set a lock, and make sure noone else can set the same lock + %% set a lock, and make sure no one else can set the same lock true = global:set_lock({test_lock, self()}, ?NODES, 1), false = req(Pid, {set_lock, test_lock, self()}), false = req(Pid2, {set_lock, test_lock, self()}), @@ -1481,7 +1481,7 @@ stress_partition(Config) when is_list(Config) -> ok. -%% Use this one to test alot of connection tests +%% Use this one to test a lot of connection tests %% erl -sname ts -ring_line 10000 -s test_server run_test global_SUITE ring_line(Config) when is_list(Config) -> @@ -2550,7 +2550,7 @@ mon_by_servers(Proc) -> -define(REGNAME, contact_a_2). -%% OTP-5563. Bug: nodedown while synching. +%% OTP-5563. Bug: nodedown while syncing. leftover_name(Config) when is_list(Config) -> Timeout = 30, ct:timetrap({seconds,Timeout}), @@ -4380,7 +4380,7 @@ wait_for_ready_net_loop(Pid, MRef) -> "~n Waiter: ~p" "~n Current Location: ~p" "~n Dictionary: ~p" - "~n Mesages: ~p", + "~n Messages: ~p", [ParentPid, Pid, pi(Pid, current_location), pi(Pid, dictionary), diff --git a/lib/kernel/test/heart_SUITE.erl b/lib/kernel/test/heart_SUITE.erl index f5ca6d0e1d..1488517d30 100644 --- a/lib/kernel/test/heart_SUITE.erl +++ b/lib/kernel/test/heart_SUITE.erl @@ -584,7 +584,7 @@ stop_node(Node) -> %%% This code is run in a slave node to ensure that -%%% A heart command really gets set syncronously +%%% A heart command really gets set synchronously %%% and cannot get "dropped". send_to(_,_,0) -> diff --git a/lib/kernel/test/inet_SUITE.erl b/lib/kernel/test/inet_SUITE.erl index cf3ff47325..3df19369e7 100644 --- a/lib/kernel/test/inet_SUITE.erl +++ b/lib/kernel/test/inet_SUITE.erl @@ -103,7 +103,7 @@ socknames_cases() -> socknames_udp ]. -%% Required configuaration +%% Required configuration required(v4) -> [{require, test_host_ipv4_only}, {require, test_dummy_host}]; @@ -521,7 +521,7 @@ ipv4_to_ipv6(Config) when is_list(Config) -> %% Test looking up hosts and addresses. Use 'ypcat hosts' -%% or the local eqivalent to find all hosts. +%% or the local equivalent to find all hosts. host_and_addr() -> ?P("host_and_addr -> entry"), @@ -795,18 +795,18 @@ parse_address(Config) when is_list(Config) -> t_parse_address(Func, _Reversable, []) -> io:format("~p done.~n", [Func]), ok; -t_parse_address(Func, Reversable, [{Addr,String}|L]) -> +t_parse_address(Func, Reversible, [{Addr,String}|L]) -> io:format("~p = ~p.~n", [Addr,String]), {ok,Addr} = inet:Func(String), - case Reversable of + case Reversible of true ->String = inet:ntoa(Addr); false -> ok end, - t_parse_address(Func, Reversable, L); -t_parse_address(Func, Reversable, [String|L]) -> + t_parse_address(Func, Reversible, L); +t_parse_address(Func, Reversible, [String|L]) -> io:format("~p.~n", [String]), {error,einval} = inet:Func(String), - t_parse_address(Func, Reversable, L). + t_parse_address(Func, Reversible, L). parse_strict_address(Config) when is_list(Config) -> {ok, {127,0,0,1}} = @@ -1302,7 +1302,7 @@ gethostnative_control(Config, Opts) -> {skipped, "Not running native gethostbyname"} end; _ -> - {skipped, "Native not only lookup metod"} + {skipped, "Native not only lookup method"} end. gethostnative_control_1( diff --git a/lib/kernel/test/inet_res_SUITE.erl b/lib/kernel/test/inet_res_SUITE.erl index 7bacddd603..0214db00e5 100644 --- a/lib/kernel/test/inet_res_SUITE.erl +++ b/lib/kernel/test/inet_res_SUITE.erl @@ -174,7 +174,7 @@ init_per_testcase(Func, Config) -> [{nameserver, NsSpec}, {res_lookup, Lookup} | Config] catch SkipReason -> - ?P("init_per_testcase -> catched:" + ?P("init_per_testcase -> caught:" "~n SkipReason: ~p", [SkipReason]), {skip, SkipReason} end. @@ -1241,7 +1241,7 @@ last_ms_answer(Config) when is_list(Config) -> PSpec = proxy_start(last_ms_answer, NS), ProxyNS = proxy_ns(PSpec), %% - %% resolve; whith short timeout to trigger Timeout =:= 0 in inet_res + %% resolve; with short timeout to trigger Timeout =:= 0 in inet_res {error,timeout} = inet_res:resolve( Name, in, a, [{nameservers,[ProxyNS]},verbose], Time + 10), diff --git a/lib/kernel/test/kernel_test_global_sys_monitor.erl b/lib/kernel/test/kernel_test_global_sys_monitor.erl index 6a352ab0aa..1a43f31cfa 100644 --- a/lib/kernel/test/kernel_test_global_sys_monitor.erl +++ b/lib/kernel/test/kernel_test_global_sys_monitor.erl @@ -216,7 +216,7 @@ cast(Msg) -> ok catch C:E:_ -> - {error, {catched, C, E}} + {error, {caught, C, E}} end. @@ -229,7 +229,7 @@ call(Req, Timeout) when is_integer(Timeout) andalso (Timeout > 1000) -> call(Req, Timeout) when is_integer(Timeout) -> call(Req, Timeout, Timeout div 2). -%% This peace of wierdness is because on some machines this call has +%% This peace of weirdness is because on some machines this call has %% hung (in a call during end_per_testcase, which had a 1 min timeout, %% or if that was the total time for the test case). %% But because it hung there, we don't really know what where it git stuck. @@ -249,7 +249,7 @@ call(Req, Timeout1, Timeout2) -> end catch C:E:_ -> - {error, {catched, C, E}} + {error, {caught, C, E}} end end, {Pid, Mon} = spawn_monitor(F), diff --git a/lib/kernel/test/kernel_test_lib.erl b/lib/kernel/test/kernel_test_lib.erl index 32f608c5f5..947f4aeb15 100644 --- a/lib/kernel/test/kernel_test_lib.erl +++ b/lib/kernel/test/kernel_test_lib.erl @@ -1678,18 +1678,18 @@ tc_try(Case, TCCond, Pre, TC, Post) (C =:= exit) -> tc_print("test case (~w) skip: try post", [C]), (catch Post(State)), - tc_end( f("skipping(catched,~w,tc)", [C]) ), + tc_end( f("skipping(caught,~w,tc)", [C]) ), SKIP; C:E:S -> tc_print("test case failed: try post"), (catch Post(State)), - tc_end( f("failed(catched,~w,tc)", [C]) ), + tc_end( f("failed(caught,~w,tc)", [C]) ), erlang:raise(C, E, S) end catch C:{skip, _} = SKIP when (C =:= throw) orelse (C =:= exit) -> - tc_end( f("skipping(catched,~w,tc-pre)", [C]) ), + tc_end( f("skipping(caught,~w,tc-pre)", [C]) ), SKIP; C:E:S -> tc_print("tc-pre failed: auto-skip" @@ -1697,7 +1697,7 @@ tc_try(Case, TCCond, Pre, TC, Post) "~n E: ~p" "~n S: ~p", [C, E, S]), - tc_end( f("auto-skip(catched,~w,tc-pre)", [C]) ), + tc_end( f("auto-skip(caught,~w,tc-pre)", [C]) ), SKIP = {skip, f("TC-Pre failure (~w)", [C])}, SKIP end; @@ -1709,10 +1709,10 @@ tc_try(Case, TCCond, Pre, TC, Post) exit({tc_cond_failed, Reason}) catch C:{skip, _} = SKIP when ((C =:= throw) orelse (C =:= exit)) -> - tc_end( f("skipping(catched,~w,cond)", [C]) ), + tc_end( f("skipping(caught,~w,cond)", [C]) ), SKIP; C:E:S -> - tc_end( f("failed(catched,~w,cond)", [C]) ), + tc_end( f("failed(caught,~w,cond)", [C]) ), erlang:raise(C, E, S) end. diff --git a/lib/kernel/test/logger_SUITE.erl b/lib/kernel/test/logger_SUITE.erl index abc1f15a8f..c857e83509 100644 --- a/lib/kernel/test/logger_SUITE.erl +++ b/lib/kernel/test/logger_SUITE.erl @@ -846,7 +846,7 @@ via_logger_process(Config) -> case os:type() of {win32,_} -> - %% Skip this part on windows - cant change file mode" + %% Skip this part on windows - can't change file mode" ok; _ -> %% This should trigger the same thing from erl_prim_loader diff --git a/lib/kernel/test/logger_disk_log_h_SUITE.erl b/lib/kernel/test/logger_disk_log_h_SUITE.erl index 7bfcd2a397..96987eb77a 100644 --- a/lib/kernel/test/logger_disk_log_h_SUITE.erl +++ b/lib/kernel/test/logger_disk_log_h_SUITE.erl @@ -348,7 +348,7 @@ errors(Config) -> config, #{file=>"newfilename"}), - %% Read-only fields may (accidentially) be included in the change, + %% Read-only fields may (accidentally) be included in the change, %% but it won't take effect {ok,C} = logger:get_handler_config(Name1), ok = logger:set_handler_config(Name1,config,#{olp=>dummyvalue}), diff --git a/lib/kernel/test/logger_std_h_SUITE.erl b/lib/kernel/test/logger_std_h_SUITE.erl index aa31993b9a..02e362e5cb 100644 --- a/lib/kernel/test/logger_std_h_SUITE.erl +++ b/lib/kernel/test/logger_std_h_SUITE.erl @@ -405,7 +405,7 @@ config_fail(_Config) -> logger:set_handler_config(?MODULE, config, #{filesync_rep_int => 2000}), - %% Read-only fields may (accidentially) be included in the change, + %% Read-only fields may (accidentally) be included in the change, %% but it won't take effect {ok,C} = logger:get_handler_config(?MODULE), ok = logger:set_handler_config(?MODULE,config,#{olp=>dummyvalue}), @@ -1747,7 +1747,7 @@ rotation_opts_restart_handler(Config) -> {ok,#file_info{size=260}} = file:read_file_info(Log), [] = filelib:wildcard(Log++".*"), - %% Stop/start handler and trun on rotation. Check that file is rotated. + %% Stop/start handler and turn on rotation. Check that file is rotated. {ok,#{config:=StdHConfig2}=HConfig2} = logger:get_handler_config(?MODULE), ok = logger:remove_handler(?MODULE), ok = logger:add_handler( @@ -1780,7 +1780,7 @@ rotation_opts_restart_handler(Config) -> {ok,#file_info{size=29}} = file:read_file_info(Log++".0.gz"), [_] = filelib:wildcard(Log++".*"), - %% Stop/start handler and turn off compression. Check that achives + %% Stop/start handler and turn off compression. Check that archives %% are decompressed. {ok,#{config:=StdHConfig4}=HConfig4} = logger:get_handler_config(?MODULE), ok = logger:remove_handler(?MODULE), diff --git a/lib/kernel/test/prim_file_SUITE.erl b/lib/kernel/test/prim_file_SUITE.erl index 6fc1ff2cd7..9f8229964e 100644 --- a/lib/kernel/test/prim_file_SUITE.erl +++ b/lib/kernel/test/prim_file_SUITE.erl @@ -435,7 +435,7 @@ close(Config) when is_list(Config) -> {ok,Fd1} = ?PRIM_FILE:open(Name, [read, write]), %% Just closing it is no fun, we did that a million times already %% This is a common error, for code written before Erlang 4.3 - %% bacause then ?PRIM_FILE:open just returned a Pid, and not everyone + %% because then ?PRIM_FILE:open just returned a Pid, and not everyone %% really checked what they got. {'EXIT',_Msg} = (catch ok = ?PRIM_FILE:close({ok,Fd1})), ok = ?PRIM_FILE:close(Fd1), @@ -535,7 +535,7 @@ append(Config) when is_list(Config) -> ok = ?PRIM_FILE:make_dir(NewDir), First = "First line\n", - Second = "Seond lines comes here\n", + Second = "Second lines comes here\n", Third = "And here is the third line\n", %% Write a small text file. @@ -1222,7 +1222,7 @@ allocate(Config) when is_list(Config) -> allocate_and_assert(Fd, Offset, Length) -> %% Just verify that calls to ?PRIM_FILE:allocate/3 don't crash or have - %% any other negative side effect. We can't really asssert against a + %% any other negative side effect. We can't really assert against a %% specific return value, because support for file space pre-allocation %% depends on the OS, OS version and underlying filesystem. %% @@ -1458,7 +1458,7 @@ e_rename(Config) when is_list(Config) -> ok -> {ok, {comment, "Moving between filesystems " - "suceeded, files are probably " + "succeeded, files are probably " "in the same filesystem!"}}; {error, eperm} -> {ok, {comment, "SBS! You don't " diff --git a/lib/kernel/test/prim_file_SUITE_data/realmen.html b/lib/kernel/test/prim_file_SUITE_data/realmen.html index c810a5d088..eaaa65523a 100644 --- a/lib/kernel/test/prim_file_SUITE_data/realmen.html +++ b/lib/kernel/test/prim_file_SUITE_data/realmen.html @@ -121,7 +121,7 @@ based on data structures, instead of the other way around. As all Real Programmers know, the only useful data structure is the array. Strings, lists, structures, sets -- these are all special cases of arrays and and can be treated that way just as easily without -messing up your programing language with all sorts of +messing up your programming language with all sorts of complications. The worst thing about fancy data types is that you have to declare them, and Real Programming Languages, as we all know, have implicit typing based on the first letter of the (six character) @@ -237,7 +237,7 @@ destroy most of the interesting uses for EQUIVALENCE, and make it impossible to modify the operating system code with negative subscripts. Worst of all, bounds checking is inefficient. -<LI> Source code maintainance systems. A Real Programmer keeps his +<LI> Source code maintenance systems. A Real Programmer keeps his code locked up in a card file, because it implies that its owner cannot leave his important programs unguarded [5]. @@ -318,7 +318,7 @@ thing slightly more trivial than the destruction of life as we know it, providing there's enough money in it. There are several Real Programmers building video games at Atari, for example. (But not playing them. A Real Programmer knows how to beat the machine every -time: no challange in that.) Everyone working at LucasFilm is a Real +time: no challenge in that.) Everyone working at LucasFilm is a Real Programmer. (It would be crazy to turn down the money of 50 million Star Wars fans.) The proportion of Real Programmers in Computer Graphics is somewhat lower than the norm, mostly because nobody has @@ -384,7 +384,7 @@ coffee. In some cases, the cups will contain Orange Crush. and the Principles of Operation open to some particularly interesting pages. -<LI> Taped to the wall is a line-printer Snoopy calender for the year +<LI> Taped to the wall is a line-printer Snoopy calendar for the year 1969. <LI> Strewn about the floor are several wrappers for peanut butter @@ -396,7 +396,7 @@ double stuff Oreos for special occasions. <LI> Underneath the Oreos is a flow-charting template, left there by the previous occupant of the office. (Real Programmers write programs, -not documentation. Leave that to the maintainence people.) +not documentation. Leave that to the maintenance people.) </UL> <P> diff --git a/lib/kernel/test/ram_file_SUITE_data/realmen.html b/lib/kernel/test/ram_file_SUITE_data/realmen.html index c810a5d088..eaaa65523a 100644 --- a/lib/kernel/test/ram_file_SUITE_data/realmen.html +++ b/lib/kernel/test/ram_file_SUITE_data/realmen.html @@ -121,7 +121,7 @@ based on data structures, instead of the other way around. As all Real Programmers know, the only useful data structure is the array. Strings, lists, structures, sets -- these are all special cases of arrays and and can be treated that way just as easily without -messing up your programing language with all sorts of +messing up your programming language with all sorts of complications. The worst thing about fancy data types is that you have to declare them, and Real Programming Languages, as we all know, have implicit typing based on the first letter of the (six character) @@ -237,7 +237,7 @@ destroy most of the interesting uses for EQUIVALENCE, and make it impossible to modify the operating system code with negative subscripts. Worst of all, bounds checking is inefficient. -<LI> Source code maintainance systems. A Real Programmer keeps his +<LI> Source code maintenance systems. A Real Programmer keeps his code locked up in a card file, because it implies that its owner cannot leave his important programs unguarded [5]. @@ -318,7 +318,7 @@ thing slightly more trivial than the destruction of life as we know it, providing there's enough money in it. There are several Real Programmers building video games at Atari, for example. (But not playing them. A Real Programmer knows how to beat the machine every -time: no challange in that.) Everyone working at LucasFilm is a Real +time: no challenge in that.) Everyone working at LucasFilm is a Real Programmer. (It would be crazy to turn down the money of 50 million Star Wars fans.) The proportion of Real Programmers in Computer Graphics is somewhat lower than the norm, mostly because nobody has @@ -384,7 +384,7 @@ coffee. In some cases, the cups will contain Orange Crush. and the Principles of Operation open to some particularly interesting pages. -<LI> Taped to the wall is a line-printer Snoopy calender for the year +<LI> Taped to the wall is a line-printer Snoopy calendar for the year 1969. <LI> Strewn about the floor are several wrappers for peanut butter @@ -396,7 +396,7 @@ double stuff Oreos for special occasions. <LI> Underneath the Oreos is a flow-charting template, left there by the previous occupant of the office. (Real Programmers write programs, -not documentation. Leave that to the maintainence people.) +not documentation. Leave that to the maintenance people.) </UL> <P> diff --git a/lib/kernel/test/rpc_SUITE.erl b/lib/kernel/test/rpc_SUITE.erl index b22f58b9ea..80bda69868 100644 --- a/lib/kernel/test/rpc_SUITE.erl +++ b/lib/kernel/test/rpc_SUITE.erl @@ -776,7 +776,7 @@ call_old_against_new(Config) -> end. call_old_against_new_test([Node22], [NodeCurr]) -> - %% Excecuted on an OTP 22 node + %% Executed on an OTP 22 node Node22 = rpc:call(Node22, erlang, node, []), NodeCurr = rpc:call(NodeCurr, erlang, node, []), @@ -810,7 +810,7 @@ multicall_old_against_new(Config) -> end. multicall_old_against_new_test([Node22A, Node22B], [NodeCurrA, NodeCurrB]) -> - %% Excecuted on an OTP 22 node + %% Executed on an OTP 22 node AllNodes = [NodeCurrA, Node22A, NodeCurrB, Node22B], NoNodes = length(AllNodes), @@ -847,7 +847,7 @@ cast_old_against_new(Config) -> end. cast_old_against_new_test([Node22], [NodeCurr]) -> - %% Excecuted on an OTP 22 node + %% Executed on an OTP 22 node Me = self(), Ref = make_ref(), @@ -943,7 +943,7 @@ test_on_22_node(Config, Test, No22, NoCu LoadResult = lists:duplicate(length(Nodes22), {module, ?MODULE}), {LoadResult, []} = rpc:multicall(Nodes22, code, load_binary, [?MODULE, SrcFile, BeamCode]), try - %% Excecute test on first OTP 22 node... + %% Execute test on first OTP 22 node... Pid = spawn_link(hd(Nodes22), ?MODULE, Test, [tl(Nodes22), NodesCurr]), Mon = erlang:monitor(process, Pid), receive diff --git a/lib/kernel/test/socket_SUITE.erl b/lib/kernel/test/socket_SUITE.erl index 95ba41e5c5..c32e5bd655 100644 --- a/lib/kernel/test/socket_SUITE.erl +++ b/lib/kernel/test/socket_SUITE.erl @@ -2781,7 +2781,7 @@ api_b_open_and_close(InitState) -> protocol := ExpProtocol}, {ok, Protocol}}) -> %% On OpenBSD (at least 6.6) something screwy happens %% when domain = local. - %% It will report a completly different protocol (icmp) + %% It will report a completely different protocol (icmp) %% but everything still works. So we skip if this happens %% on OpenBSD... case os:type() of @@ -5023,7 +5023,7 @@ api_ffd_open_and_info(InitState) -> %% Basically open a socket (1) and then create another socket (2) from %% its file descriptor *without* dup. -%% Exchange som data from via both "client" sockets. +%% Exchange some data from via both "client" sockets. %% Finally close the second socket. Ensure that the original socket %% has not been closed (test by sending some data). %% IPv4 UDP (dgram) socket. @@ -5058,7 +5058,7 @@ api_ffd_open_and_open_wod_and_send_udp4(_Config) when is_list(_Config) -> %% Basically open a socket (1) and then create another socket (2) from %% its file descriptor *without* dup. -%% Exchange som data from via both "client" sockets. +%% Exchange some data from via both "client" sockets. %% Finally close the second socket. Ensure that the original socket %% has not been closed (test by sending some data). %% IPv6 UDP (dgram) socket. @@ -5094,7 +5094,7 @@ api_ffd_open_and_open_wod_and_send_udp6(_Config) when is_list(_Config) -> %% Basically open a socket (1) and then create another socket (2) from %% its file descriptor *with* dup. -%% Exchange som data from via both "client" sockets. +%% Exchange some data from via both "client" sockets. %% Finally close the second socket. Ensure that the original socket %% has not been closed (test by sending some data). %% IPv4 UDP (dgram) socket. @@ -5120,7 +5120,7 @@ api_ffd_open_and_open_wd_and_send_udp4(_Config) when is_list(_Config) -> %% Basically open a socket (1) and then create another socket (2) from %% its file descriptor *with* dup. -%% Exchange som data from via both "client" sockets. +%% Exchange some data from via both "client" sockets. %% Finally close the second socket. Ensure that the original socket %% has not been closed (test by sending some data). %% IPv6 UDP (dgram) socket. @@ -5746,7 +5746,7 @@ api_ffd_open_and_open_and_send_udp2(InitState) -> %% Basically open a socket (1), connect to a server and then create %% another socket (2) from its file descriptor *without* dup. -%% Exchange som data from via both "client" sockets. +%% Exchange some data from via both "client" sockets. %% Finally close the second socket. Ensure that the original socket %% has not been closed (test by sending some data). %% IPv4 TCP (stream) socket. @@ -5781,7 +5781,7 @@ api_ffd_open_connect_and_open_wod_and_send_tcp4(_Config) when is_list(_Config) - %% Basically open a socket (1), connect to a server and then create %% another socket (2) from its file descriptor *without* dup. -%% Exchange som data from via both "client" sockets. +%% Exchange some data from via both "client" sockets. %% Finally close the second socket. Ensure that the original socket %% has not been closed (test by sending some data). %% IPv6 TCP (stream) socket. @@ -5817,7 +5817,7 @@ api_ffd_open_connect_and_open_wod_and_send_tcp6(_Config) when is_list(_Config) - %% Basically open a socket (1), connect to a server and then create %% another socket (2) from its file descriptor *with* dup. -%% Exchange som data from via both "client" sockets. +%% Exchange some data from via both "client" sockets. %% Finally close the second socket. Ensure that the original socket %% has not been closed (test by sending some data). %% IPv4 TCP (stream) socket. @@ -5843,7 +5843,7 @@ api_ffd_open_connect_and_open_wd_and_send_tcp4(_Config) when is_list(_Config) -> %% Basically open a socket (1), connect to a server and then create %% another socket (2) from its file descriptor *with* dup. -%% Exchange som data from via both "client" sockets. +%% Exchange some data from via both "client" sockets. %% Finally close the second socket. Ensure that the original socket %% has not been closed (test by sending some data). %% IPv6 TCP (stream) socket. @@ -12946,7 +12946,7 @@ api_opt_sock_acceptfilter(_Config) when is_list(_Config) -> %% Tests the socket option bindtodevice. %% It has not always been possible to 'get' this option -%% (atleast on linux). +%% (at least on linux). api_opt_sock_bindtodevice(suite) -> []; @@ -13466,7 +13466,7 @@ api_opt_sock_broadcast() -> (#{sock3 := Sock, sa1 := Dest} = _State) -> Data = list_to_binary("hejsan"), - ?SEV_IPRINT("try send to bradcast address: " + ?SEV_IPRINT("try send to broadcast address: " "~n ~p", [Dest]), case socket:sendto(Sock, Data, Dest) of ok -> @@ -13512,7 +13512,7 @@ api_opt_sock_broadcast() -> cmd => fun(#{sock3 := Sock, sa2 := Dest} = _State) -> Data = list_to_binary("hejsan"), - ?SEV_IPRINT("try send to bradcast address: " + ?SEV_IPRINT("try send to broadcast address: " "~n ~p", [Dest]), case socket:sendto(Sock, Data, Dest) of ok -> @@ -13586,7 +13586,7 @@ api_opt_sock_broadcast() -> %% Tests the socket option debug. %% On linux, this test requires that the user running the test to have %% CAP_NET_ADMIN capabilities or be root (effective user ID of 0), -%% therefor we explicitly test for the result eacces when attempting to +%% therefore we explicitly test for the result eacces when attempting to %% set, and skip if we get it. api_opt_sock_debug(suite) -> @@ -14139,7 +14139,7 @@ api_opt_sock_mark(_Config) when is_list(_Config) -> %% %% socket:setopt(Sock, socket, oobinline, boolean()). %% -%% This works on linux of some version (atleast linux kernel 4.15.0), +%% This works on linux of some version (at least linux kernel 4.15.0), %% but not on FreeBSD (12) for some reason. Until we have figured out %% exctly why, we skip a bunch of OSs... %% @@ -16123,7 +16123,7 @@ api_opt_sock_peek_off(InitState) -> %% There is no way to be sure that the data has actually arrived, %% and with no data on the server side, the peek will fail. - %% Hopfully a sleep will take care of this... + %% Hopefully a sleep will take care of this... ?SEV_SLEEP(?SECS(1)), %% 1) peek @@ -17289,7 +17289,7 @@ api_opt_sock_timeo(InitState) -> ok; {ok, #{sec := Sec}} when (ExpSec =:= Sec) -> %% For some reason OpenBSD "adjusts" the timeout, - %% so that usec does not (allways match) + %% so that usec does not (always match) ?SEV_IPRINT("timeout (approx) validated"), ok; {ok, TO} -> @@ -18309,7 +18309,7 @@ api_opt_sock_timestamp_tcp(InitState) -> ERROR end end}, - %% Linux pecularity observed here... + %% Linux peculiarity observed here... %% Detected on Kernel 4.15.0-72 x96_64. %% The option set to enable receiving timestamps just above %% has failed to be effective down in "await recv reply 2 @@ -20893,7 +20893,7 @@ api_opt_ip_tos_udp(InitState) -> process_flag(trap_exit, true), %% mincost is not supported on all platforms. %% For instance, Solaris 10, does not have that constant. - %% Instead it has two others with, what appers to be, + %% Instead it has two others with, what appears to be, %% completely different meanings... %% So, avoid the complication by not using this value... %% TOS1 = mincost, TOS1Str = atom_to_list(TOS1), @@ -21242,7 +21242,7 @@ api_opt_recverr_udp(Config, InitState) -> "~n ~p", [SelectInfo]), {ok, State#{rselect => SelectInfo}}; {ok, _} -> - ?SEV_EPRINT("unexpected successs"), + ?SEV_EPRINT("unexpected success"), {error, unexpected_success}; {error, Reason} = ERROR -> ?SEV_EPRINT("unexpected error: ~p", [Reason]), @@ -21303,7 +21303,7 @@ api_opt_recverr_udp(Config, InitState) -> ?SEV_IPRINT("expected failure: ~p", [Reason]), ok; {ok, _} -> - ?SEV_EPRINT("unexpected successs"), + ?SEV_EPRINT("unexpected success"), {error, unexpected_success}; {select, SelectInfo} -> ?SEV_EPRINT("unexpected select: ~p", @@ -22045,7 +22045,7 @@ api_opt_ipv6_recvpktinfo_udp(InitState) -> %% There seem to be some weirdness with the definition of this %% option, so its defined in an include file we don't include %% (directly or indirectly). And since some of the defines -%% are occure in a file we *do* include (via netinet/in.h), we +%% occur in a file we *do* include (via netinet/in.h), we %% leave it as is for now... %% @@ -23247,7 +23247,7 @@ api_opt_ipv6_mopts_udp(InitState) -> %% According to the man page (on linux) for this option it *should* be %% possible to both get and set *allowed* algorithms. But when we attempt %% to set, we get 'enoent'. -%% Accoring to /proc/sys/net/ipv4/tcp_allowed_congestion_control that +%% According to /proc/sys/net/ipv4/tcp_allowed_congestion_control that %% allgorithm was allowed, so... %% For now, we only test that we can get (it could be a bug in our code) @@ -23561,7 +23561,7 @@ api_opt_tcp_cork_tcp(InitState) -> %% %% Note that there is no point in reading this value back, %% since the kernel imposes its own rules with regard -%% to what is an acceptible value. +%% to what is an acceptable value. %% api_opt_tcp_maxseg_tcp4(suite) -> @@ -23637,7 +23637,7 @@ api_opt_tcp_maxseg_tcp(InitState) -> %% Note that there is no point in reading this value back, %% since the kernel imposes its own rules with regard - %% to what is an acceptible value. + %% to what is an acceptable value. %% So, even if the set operation is a success, the value %% still might not have changed. %% @@ -23954,7 +23954,7 @@ api_to_connect_cond() -> %% I don't know exactly at which version this starts to work. %% I know it does not work for 4.4.*, but is does for 4.15. -%% So, just to simplify, we require atleast 4.15 +%% So, just to simplify, we require at least 4.15 api_to_connect_cond({unix, linux}, {Maj, Min, _Rev}) -> if (Maj > 4) -> @@ -24012,7 +24012,7 @@ api_to_connect_tcp6(_Config) when is_list(_Config) -> %% We use the backlog (listen) argument to test this. %% Note that the behaviour of the TCP "server side" can vary when %% a client connect to a "busy" server (full backlog). -%% For instance, on FreeBSD (11.2) the reponse when the backlog is full +%% For instance, on FreeBSD (11.2) the response when the backlog is full %% is a econreset. api_to_connect_tcp(InitState) -> @@ -31274,7 +31274,7 @@ sc_cpe_socket_cleanup(InitState) -> end}, %% *** The actual test *** - %% We *intentially* leave the socket "as is", no explicit close + %% We *intentionally* leave the socket "as is", no explicit close #{desc => "await terminate (from tester)", cmd => fun(#{tester := Tester} = State) -> case ?SEV_AWAIT_TERMINATE(Tester, tester) of @@ -31618,7 +31618,7 @@ sc_lc_receive_response_tcp(InitState) -> ], %% The point of this is to perform the recv for which - %% we are testing the reponse. + %% we are testing the response. HandlerSeq = [ %% *** Wait for start order part *** @@ -32390,7 +32390,7 @@ sc_lc_receive_response_udp(InitState) -> %% The actual test - %% Make all the seondary servers continue, with an infinit recvfrom + %% Make all the seondary servers continue, with an infinite recvfrom %% and then the prim-server with a timed recvfrom. %% After the prim server notifies us (about the timeout) we order it %% to close the socket, which should cause the all the secondary @@ -32991,7 +32991,7 @@ sc_lc_acceptor_response_tcp(InitState) -> %% The actual test - %% Make all the seondary servers continue, with an infinit recvfrom + %% Make all the seondary servers continue, with an infinite recvfrom %% and then the prim-server with a timed recvfrom. %% After the prim server notifies us (about the timeout) we order it %% to close the socket, which should cause the all the secondary @@ -35022,7 +35022,7 @@ sc_rs_tcp_handler_await(Parent, Slogan) -> ?SEV_IPRINT("await ~w", [Slogan]), ?SEV_AWAIT_CONTINUE(Parent, parent, Slogan). -%% This hould actually work - we leave it for now +%% This should actually work - we leave it for now sc_rs_tcp_handler_recv(Recv, Sock, First) -> ?SEV_IPRINT("recv"), try Recv(Sock) of @@ -39244,7 +39244,7 @@ traffic_snr_tcp_client(Parent) -> traffic_snr_tcp_client_send_loop(Parent, Sock) -> case ?SEV_AWAIT_CONTINUE(Parent, parent, send) of - {ok, stop} -> % Breakes the loop + {ok, stop} -> % Breaks the loop ?SEV_ANNOUNCE_READY(Parent, send, ok), ok; {ok, Data} -> @@ -40323,7 +40323,7 @@ traffic_ping_pong_sendmsg_and_recvmsg_tcp2(InitState) -> traffic_ping_pong_send_and_receive_tcp(#{msg := Msg} = InitState) -> Fun = fun(Sock) -> {ok, RcvSz} = socket:getopt(Sock, socket, rcvbuf), - ?SEV_IPRINT("RcvBuf is ~p (needs atleast ~p)", + ?SEV_IPRINT("RcvBuf is ~p (needs at least ~p)", [RcvSz, 16+size(Msg)]), if (RcvSz < size(Msg)) -> NewRcvSz = 1024+size(Msg), @@ -40341,7 +40341,7 @@ traffic_ping_pong_send_and_receive_tcp(#{msg := Msg} = InitState) -> ok end, {ok, SndSz} = socket:getopt(Sock, socket, sndbuf), - ?SEV_IPRINT("SndBuf is ~p (needs atleast ~p)", + ?SEV_IPRINT("SndBuf is ~p (needs at least ~p)", [SndSz, 16+size(Msg)]), if (SndSz < size(Msg)) -> NewSndSz = 1024+size(Msg), @@ -40850,7 +40850,7 @@ traffic_ping_pong_send_and_receive_tcp2(InitState) -> CTime = tdiff(CStart, CStop), %% Note that the sizes we are counting is only %% the "data" part of the messages. There is also - %% fixed header for each message, which of cource + %% fixed header for each message, which of course %% is small for the large messages, but comparatively %% big for the small messages! ?SEV_IPRINT("Results: ~w messages exchanged" @@ -41754,7 +41754,7 @@ traffic_ping_pong_send_and_receive_udp2(InitState) -> CTime = tdiff(CStart, CStop), %% Note that the sizes we are counting is only %% the "data" part of the messages. There is also - %% fixed header for each message, which of cource + %% fixed header for each message, which of course %% is small for the large messages, but comparatively %% big for the small messages! ?SEV_IPRINT("Results: ~w messages exchanged" @@ -42031,7 +42031,7 @@ tpp_udp_recv(Sock, Recv, Tag) -> ERROR catch C:E:S -> - {error, {catched, C, E, S}} + {error, {caught, C, E, S}} end. tpp_udp_send_req(Sock, Send, Data, Dest) -> @@ -48032,7 +48032,7 @@ ttest_tcp(TC, %% On darwin we seem to hit the system limit(s) %% much earlier. %% The tests "mostly" work, but random cases fail - %% (even on reasonably powerfull machines), + %% (even on reasonably powerful machines), %% so its much simpler to just skip on darwin... has_support_unix_domain_socket(), is_not_darwin(); @@ -48624,7 +48624,7 @@ ttest_report(Domain, bytes = NumBytes, msgs = NumMsgs}, %% If we run just one test case, the group init has never been run - %% and therefor the ttest manager is not running (we also don't actually + %% and therefore the ttest manager is not running (we also don't actually %% care about collecting reports in that case). (catch global:send(?TTEST_MANAGER, Report)), ok. @@ -49520,7 +49520,7 @@ ensure_unique_path(Path) -> ensure_unique_path(Path, 1); {error, _} -> %% We assume this means it does not exist yet... - %% If we have several process in paralell trying to create + %% If we have several process in parallel trying to create %% (unique) path's, then we are in trouble. To *really* be %% on the safe side we should have a (central) path registry... encode_path(Path) @@ -50140,19 +50140,19 @@ tc_try(Case, TCCondFun, TCFun) end catch C:{skip, _} = SKIP when ((C =:= throw) orelse (C =:= exit)) -> - %% i("catched[tc] (skip): " + %% i("caught[tc] (skip): " %% "~n C: ~p" %% "~n SKIP: ~p" %% "~n", [C, SKIP]), - tc_end( f("skipping(catched,~w,tc)", [C]) ), + tc_end( f("skipping(caught,~w,tc)", [C]) ), SKIP; C:E:S -> - %% i("catched[tc]: " + %% i("caught[tc]: " %% "~n C: ~p" %% "~n E: ~p" %% "~n S: ~p" %% "~n", [C, E, S]), - tc_end( f("failed(catched,~w,tc)", [C]) ), + tc_end( f("failed(caught,~w,tc)", [C]) ), erlang:raise(C, E, S) end; {skip, _} = SKIP -> @@ -50163,19 +50163,19 @@ tc_try(Case, TCCondFun, TCFun) exit({tc_cond_failed, Reason}) catch C:{skip, _} = SKIP when ((C =:= throw) orelse (C =:= exit)) -> - %% i("catched[cond] (skip): " + %% i("caught[cond] (skip): " %% "~n C: ~p" %% "~n SKIP: ~p" %% "~n", [C, SKIP]), - tc_end( f("skipping(catched,~w,cond)", [C]) ), + tc_end( f("skipping(caught,~w,cond)", [C]) ), SKIP; C:E:S -> - %% i("catched[cond]: " + %% i("caught[cond]: " %% "~n C: ~p" %% "~n E: ~p" %% "~n S: ~p" %% "~n", [C, E, S]), - tc_end( f("failed(catched,~w,cond)", [C]) ), + tc_end( f("failed(caught,~w,cond)", [C]) ), erlang:raise(C, E, S) end. @@ -50205,7 +50205,7 @@ tc_which_name() -> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% This function prints various host info, which might be usefull +%% This function prints various host info, which might be useful %% when analyzing the test suite (results). %% It also returns a "factor" that can be used when deciding %% the load for some test cases (traffic). Such as run time or diff --git a/lib/kernel/test/socket_test_evaluator.erl b/lib/kernel/test/socket_test_evaluator.erl index 19c8650d63..033ff29e79 100644 --- a/lib/kernel/test/socket_test_evaluator.erl +++ b/lib/kernel/test/socket_test_evaluator.erl @@ -26,7 +26,7 @@ await_finish/1 ]). -%% Functions used by evaluators to interact with eachother +%% Functions used by evaluators to interact with each other -export([ %% Announce functions %% (Send an announcement from one evaluator to another) @@ -138,7 +138,7 @@ loop(ID, [#{desc := Desc, %% Secondary skip exit(E); C:{skip, R} = E:_ when ((C =:= throw) orelse (C =:= exit)) -> - ?SEV_IPRINT("command ~w skip catched(~w): " + ?SEV_IPRINT("command ~w skip caught(~w): " "~n Reason: ~p", [ID, C, R]), exit(E); C:E:S -> @@ -166,7 +166,7 @@ await_finish([], _OK, Fails) -> Fails; await_finish(Evs, OK, Fails) -> receive - %% Successfull termination of evaluator + %% Successful termination of evaluator {'DOWN', _MRef, process, Pid, normal} -> {Evs2, OK2, Fails2} = await_finish_normal(Pid, Evs, OK, Fails), await_finish(Evs2, OK2, Fails2); diff --git a/lib/kernel/test/socket_test_ttest_tcp_server.erl b/lib/kernel/test/socket_test_ttest_tcp_server.erl index d8cacd750c..6acad1f844 100644 --- a/lib/kernel/test/socket_test_ttest_tcp_server.erl +++ b/lib/kernel/test/socket_test_ttest_tcp_server.erl @@ -25,7 +25,7 @@ %% %% There are three ways to run the server: active, passive or active-once. %% -%% The server does only two things; accept connnections and then reply +%% The server does only two things; accept connections and then reply %% to requests (actually the handler(s) does that). No timing or counting. %% That is all done by the clients. %% @@ -415,7 +415,7 @@ handler_recv_message(#{mod := Mod, %% When "active" (once or true), we receive one data "message", which may %% contain any number of requests or only part of a request. Then we %% process this data together with whatever we had "accumulated" from -%% prevous messages. Each request will be extracted and replied to. If +%% previous messages. Each request will be extracted and replied to. If %% there is some data left, not enough for a complete request, we store %% this in 'acc' (accumulate it). handler_recv_message(#{mod := Mod, diff --git a/lib/kernel/test/socket_test_ttest_tcp_socket.erl b/lib/kernel/test/socket_test_ttest_tcp_socket.erl index d949e51da1..22788b3651 100644 --- a/lib/kernel/test/socket_test_ttest_tcp_socket.erl +++ b/lib/kernel/test/socket_test_ttest_tcp_socket.erl @@ -84,7 +84,7 @@ accept(#{sock := LSock, opts := #{async := Async, ERROR end. -%% If a timeout has been explictly specified, then we do not use +%% If a timeout has been explicitly specified, then we do not use %% async here. We will pass it on to the reader process. accept(#{sock := LSock, opts := #{async := Async, method := Method} = Opts}, Timeout) -> -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor