Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0931-remove-repeated-words-and-small-typos.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0931-remove-repeated-words-and-small-typos.patch of Package erlang
From 03978ebb6063c1c4db4e15f1ece782f57d91a609 Mon Sep 17 00:00:00 2001 From: Paul Ivanov <pi@berkeley.edu> Date: Tue, 14 Nov 2023 15:09:16 -0800 Subject: [PATCH 1/2] remove repeated words and small typos --- .github/scripts/sync-github-releases.sh | 2 +- HOWTO/DEVELOPMENT.md | 2 +- HOWTO/INSTALL-IOS.md | 2 +- HOWTO/MARKDOWN.md | 4 ++-- erts/doc/src/erl_dist_protocol.xml | 2 +- erts/doc/src/erlang.xml | 6 +++--- erts/doc/src/notes.xml | 16 ++++++++-------- erts/emulator/asmjit/core.h | 2 +- erts/emulator/asmjit/core/api-config.h | 2 +- erts/emulator/asmjit/core/jitallocator.h | 2 +- erts/emulator/asmjit/core/virtmem.h | 2 +- erts/emulator/asmjit/x86/x86opcode_p.h | 6 +++--- erts/emulator/beam/big.c | 2 +- erts/emulator/beam/emu/instrs.tab | 2 +- erts/emulator/beam/erl_flxctr.h | 2 +- erts/emulator/beam/erl_msacc.h | 2 +- erts/emulator/beam/erl_node_tables.h | 2 +- erts/emulator/beam/erl_proc_sig_queue.h | 4 ++-- erts/emulator/beam/erl_process.h | 2 +- erts/emulator/beam/erl_term.h | 2 +- erts/emulator/beam/jit/arm/ops.tab | 2 +- erts/emulator/beam/jit/x86/ops.tab | 2 +- .../internal_doc/AutomaticYieldingOfCCode.md | 2 +- erts/emulator/internal_doc/PTables.md | 2 +- erts/emulator/internal_doc/Tracing.md | 2 +- erts/emulator/internal_doc/beam_makeops.md | 6 +++--- erts/emulator/nifs/common/prim_net_nif.c | 2 +- erts/emulator/sys/common/erl_osenv.h | 2 +- erts/emulator/test/big_SUITE.erl | 2 +- erts/emulator/test/bs_match_int_SUITE.erl | 2 +- erts/emulator/test/bs_utf_SUITE.erl | 2 +- erts/emulator/test/code_SUITE.erl | 4 ++-- erts/emulator/test/dirty_nif_SUITE.erl | 2 +- erts/emulator/test/distribution_SUITE.erl | 2 +- erts/emulator/test/map_SUITE.erl | 2 +- erts/emulator/zlib/inftrees.h | 2 +- erts/emulator/zlib/zlib.h | 2 +- erts/etc/unix/RELNOTES | 2 +- erts/etc/unix/etp-commands.in | 2 +- .../visualize_throughput.html | 2 +- lib/asn1/doc/src/asn1_spec.xmlsrc | 2 +- lib/asn1/doc/src/notes.xml | 4 ++-- lib/asn1/src/asn1ct_check.erl | 2 +- lib/asn1/src/asn1ct_imm.erl | 6 +++--- lib/asn1/src/asn1ct_parser2.erl | 2 +- lib/common_test/doc/src/notes.xml | 4 ++-- lib/common_test/doc/src/write_test_chapter.xml | 2 +- lib/common_test/src/test_server.erl | 2 +- lib/common_test/src/test_server_ctrl.erl | 2 +- lib/common_test/test/erl2html2_SUITE_data/m1.erl | 2 +- 50 files changed, 70 insertions(+), 70 deletions(-) diff --git a/.github/scripts/sync-github-releases.sh b/.github/scripts/sync-github-releases.sh index c5c6f97ed6..48df370b22 100755 --- a/.github/scripts/sync-github-releases.sh +++ b/.github/scripts/sync-github-releases.sh @@ -49,7 +49,7 @@ CREATE_RELEASE=() TAG_URL="${REPO}/tags?per_page=100" ## This function is used to loop over the pagianated results from github tags -## It sets TAGS to be the the json from the current page of tags +## It sets TAGS to be the json from the current page of tags _next_page() { TAGS=$(curl -s "${HDR[@]}" ${TAG_URL}) ## In the "Link:" header from github we get the link for the next page. diff --git a/HOWTO/MARKDOWN.md b/HOWTO/MARKDOWN.md index 91b5526bf9..572a16565f 100644 --- a/HOWTO/MARKDOWN.md +++ b/HOWTO/MARKDOWN.md @@ -183,7 +183,7 @@ places. Appropriate attributes to the `X` tag will also be generated. contain information from a \%CopyrightBegin\%, \%CopyrightEnd\% block if such exist (see below). -* A level `X` heading where `1 < X <= 6` will cause the the following +* A level `X` heading where `1 < X <= 6` will cause the following to be generated: <section> @@ -209,7 +209,7 @@ places. Appropriate attributes to the `X` tag will also be generated. other documents. That is, *be careful* when changing headings in an existing document. -* A level `X` heading where `6 < X` will cause the the following +* A level `X` heading where `6 < X` will cause the following to be generated: <marker id="..."/> diff --git a/erts/doc/src/erl_dist_protocol.xml b/erts/doc/src/erl_dist_protocol.xml index 389e967f5f..dd36ac5d29 100644 --- a/erts/doc/src/erl_dist_protocol.xml +++ b/erts/doc/src/erl_dist_protocol.xml @@ -1471,7 +1471,7 @@ DiB == gen_digest(ChA, ICA)? <item><p>Process identifier of the group leader of the newly created process.</p></item> <tag><c>{Module :: atom(), Function :: atom(), Arity :: integer() >= 0}</c></tag> - <item><p>Entry point for the the new process.</p></item> + <item><p>Entry point for the new process.</p></item> <tag><c>OptList :: [term()]</c></tag> <item><p>A proper list of spawn options to use when spawning.</p></item> <tag><c>ArgList :: [term()]</c></tag> diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index abc4600a37..58be93f0f0 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -8717,13 +8717,13 @@ true</pre> corresponds to scheduler number 1 and so on. If support for dirty schedulers exist, an element with the value for the dirty CPU run queue and its associated dirty CPU schedulers - follow and then as last element the value for the the dirty + follow and then as last element the value for the dirty IO run queue and its associated dirty IO schedulers follow. The information is <em>not</em> gathered atomically. That is, the result is not necessarily a consistent snapshot of the state, but instead quite efficiently gathered.</p> <note><p>Each normal scheduler has one run queue that it - manages. If dirty schedulers schedulers are supported, all + manages. If dirty schedulers are supported, all dirty CPU schedulers share one run queue, and all dirty IO schedulers share one run queue. That is, we have multiple normal run queues, one dirty CPU run queue and one dirty @@ -9002,7 +9002,7 @@ lists:map( necessarily a consistent snapshot of the state, but instead quite efficiently gathered.</p> <note><p>Each normal scheduler has one run queue that it - manages. If dirty schedulers schedulers are supported, all + manages. If dirty schedulers are supported, all dirty CPU schedulers share one run queue, and all dirty IO schedulers share one run queue. That is, we have multiple normal run queues, one dirty CPU run queue and one dirty diff --git a/erts/doc/src/notes.xml b/erts/doc/src/notes.xml index ba152477e3..f2f06ada5b 100644 --- a/erts/doc/src/notes.xml +++ b/erts/doc/src/notes.xml @@ -4587,7 +4587,7 @@ map in a single pass.</p> <p> <c>maps:from_keys/2</c> constructs a map from a list of - keys and a single value and can be used to to optimize + keys and a single value and can be used to optimize sets operations such as from_list/1, filter/2, intersection/2, and subtract/2.</p> <p> @@ -8336,7 +8336,7 @@ <item> <p> The Kernel application's User's Guide now contain a - Logger Cookbook with with common usage patterns.</p> + Logger Cookbook with common usage patterns.</p> <p> Own Id: OTP-16208</p> </item> @@ -12135,7 +12135,7 @@ been called, all exceptions will now contain the entry for <em>one</em> function (despite the zero). It used to be that a hand-made stack backtrace passed to - <c>erlang:raise/3</c> would be be truncated to an empty + <c>erlang:raise/3</c> would be truncated to an empty list.</p> <p> Own Id: OTP-15026</p> @@ -20798,7 +20798,7 @@ <p> The previous default of a maximum of 32768 simultaneous processes has been raised to 262144. This value can be - changed using the the <seecom + changed using the <seecom marker="erl#+P">+P</seecom> command line flag of <seecom marker="erl">erl(1)</seecom>. Note that the value passed now is considered as a hint, and that actual @@ -21602,7 +21602,7 @@ </item> <item> <p>Calling trace_info/2 asking for information about a - function that had native could could crash the run-time + function that had native could crash the run-time system.</p> <p> Own Id: OTP-9886</p> @@ -25413,7 +25413,7 @@ <item> <p> Emulator flags in an escript were earlier inherited to - emulators started from from the emulator running the + emulators started from the emulator running the escript. For example when an escript invoked <c>os:cmd("erl")</c>, the new emulator were given erroneous emulator flags. This bug has now been fixed</p> @@ -26873,7 +26873,7 @@ In the section about binary construction, the reference manual now mentions what happens when an integer value does not fit into an integer segment of size N (namely, - that the N least significant bits will be put into into + that the N least significant bits will be put into the binary and that the most significant bits will be silently discarded). (Thanks to Edwin Fine.)</p> <p> @@ -29653,7 +29653,7 @@ </item> <item> <p>The undocumented <c><![CDATA[{packet,http}]]></c> option (for the - <c><![CDATA[gen_tcp]]></c> module) did not not work correctly when + <c><![CDATA[gen_tcp]]></c> module) did not work correctly when there were multiple continuation lines. (Thanks to Per Hedeland.)</p> <p>Own Id: OTP-5945</p> diff --git a/erts/emulator/asmjit/core.h b/erts/emulator/asmjit/core.h index e586734e49..878c5ffa66 100644 --- a/erts/emulator/asmjit/core.h +++ b/erts/emulator/asmjit/core.h @@ -757,7 +757,7 @@ namespace asmjit { //! //! There is no function that would return the number of unbound labels as this is completely unimportant from //! CodeHolder's perspective. If a label is not used then it doesn't matter whether it's bound or not, only actually -//! used labels matter. After a Label is bound it's possible to query its offset offset relative to the start of the +//! used labels matter. After a Label is bound it's possible to query its offset relative to the start of the //! section where it was bound: //! //! ``` diff --git a/erts/emulator/asmjit/core/api-config.h b/erts/emulator/asmjit/core/api-config.h index 60c9d5244e..b12832f863 100644 --- a/erts/emulator/asmjit/core/api-config.h +++ b/erts/emulator/asmjit/core/api-config.h @@ -21,7 +21,7 @@ //! //! It's used to make sure that when user links to an incompatible version of AsmJit, it won't link. It has also some //! additional properties as well. When `ASMJIT_ABI_NAMESPACE` is defined by the user it would override the AsmJit -//! default, which makes it possible to use use multiple AsmJit libraries within a single project, totally controlled +//! default, which makes it possible to use multiple AsmJit libraries within a single project, totally controlled //! by the users. This is useful especially in cases in which some of such library comes from a third party. #ifndef ASMJIT_ABI_NAMESPACE #define ASMJIT_ABI_NAMESPACE _abi_1_9 diff --git a/erts/emulator/asmjit/core/jitallocator.h b/erts/emulator/asmjit/core/jitallocator.h index 40af92924c..1edc436df7 100644 --- a/erts/emulator/asmjit/core/jitallocator.h +++ b/erts/emulator/asmjit/core/jitallocator.h @@ -231,7 +231,7 @@ public: inline size_t usedSize() const noexcept { return _usedSize; } //! Returns the number of bytes unused by the allocator at the moment. inline size_t unusedSize() const noexcept { return _reservedSize - _usedSize; } - //! Returns the total number of bytes bytes reserved by the allocator (sum of sizes of all blocks). + //! Returns the total number of bytes reserved by the allocator (sum of sizes of all blocks). inline size_t reservedSize() const noexcept { return _reservedSize; } //! Returns the number of bytes the allocator needs to manage the allocated memory. inline size_t overheadSize() const noexcept { return _overheadSize; } diff --git a/erts/emulator/asmjit/core/virtmem.h b/erts/emulator/asmjit/core/virtmem.h index a5633a2081..2f7e86d5af 100644 --- a/erts/emulator/asmjit/core/virtmem.h +++ b/erts/emulator/asmjit/core/virtmem.h @@ -194,7 +194,7 @@ enum class ProtectJitAccess : uint32_t { //! Protects access of memory mapped with MAP_JIT flag for the current thread. //! -//! \note This feature is only available on Apple hardware (AArch64) at the moment and and uses a non-portable +//! \note This feature is only available on Apple hardware (AArch64) at the moment and uses a non-portable //! `pthread_jit_write_protect_np()` call when available. //! //! This function must be called before and after a memory mapped with MAP_JIT flag is modified. Example: diff --git a/erts/emulator/asmjit/x86/x86opcode_p.h b/erts/emulator/asmjit/x86/x86opcode_p.h index 94a76f0481..83b2f3e428 100644 --- a/erts/emulator/asmjit/x86/x86opcode_p.h +++ b/erts/emulator/asmjit/x86/x86opcode_p.h @@ -45,7 +45,7 @@ struct Opcode { //! `pp` in instruction manuals. //! //! - `LL` field is used exclusively by AVX+ and AVX512+ instruction sets. It describes vector size, which is `L.128` - //! for XMM register, `L.256` for for YMM register, and `L.512` for ZMM register. The `LL` field is omitted in case + //! for XMM register, `L.256` for YMM register, and `L.512` for ZMM register. The `LL` field is omitted in case //! that instruction supports multiple vector lengths, however, if the instruction requires specific `L` value it //! must be specified as a part of the opcode. //! @@ -244,7 +244,7 @@ struct Opcode { // REX|VEX|EVEX B|X|R|W Bits // ------------------------- // - // NOTE: REX.[B|X|R] are never stored within the opcode itself, they are reserved by AsmJit are are added + // NOTE: REX.[B|X|R] are never stored within the opcode itself, they are reserved by AsmJit are added // dynamically to the opcode to represent [REX|VEX|EVEX].[B|X|R] bits. REX.W can be stored in DB as it's sometimes // part of the opcode itself. @@ -280,7 +280,7 @@ struct Opcode { // `L` or `LL` field in AVX/XOP/AVX-512 // ------------------------------------ // - // VEX/XOP prefix can only use the first bit `L.128` or `L.256`. EVEX prefix prefix makes it possible to use also + // VEX/XOP prefix can only use the first bit `L.128` or `L.256`. EVEX prefix makes it possible to use also // `L.512`. If the instruction set manual describes an instruction by `LIG` it means that the `L` field is ignored // and AsmJit defaults to `0` in such case. kLL_Shift = 29, diff --git a/erts/emulator/beam/big.c b/erts/emulator/beam/big.c index 3c5a2bed4b..92f463e41e 100644 --- a/erts/emulator/beam/big.c +++ b/erts/emulator/beam/big.c @@ -896,7 +896,7 @@ static dsize_t I_mul_karatsuba(ErtsDigit* x, dsize_t xl, ErtsDigit* y, res_len += m; ASSERT(res_len <= xl + yl); - /* Copy result to the the final result buffer. */ + /* Copy result to the final result buffer. */ (void) I_add(z_res_buf, res_len, &zero, 1, r); erts_free(ERTS_ALC_T_TMP, (void *) heap); diff --git a/erts/emulator/beam/emu/instrs.tab b/erts/emulator/beam/emu/instrs.tab index 88e6da9bf1..226ad5a3a9 100644 --- a/erts/emulator/beam/emu/instrs.tab +++ b/erts/emulator/beam/emu/instrs.tab @@ -729,7 +729,7 @@ put_tuple2(Dst, Arity) { /* * If operands are not packed (in the 32-bit VM), - * is is not safe to use $Dst directly after I + * it is not safe to use $Dst directly after I * has been updated. */ Eterm* dst_ptr = &($Dst); diff --git a/erts/emulator/beam/erl_flxctr.h b/erts/emulator/beam/erl_flxctr.h index 6109705b45..35680d7df5 100644 --- a/erts/emulator/beam/erl_flxctr.h +++ b/erts/emulator/beam/erl_flxctr.h @@ -290,7 +290,7 @@ int erts_flxctr_suspend_until_thr_prg_if_snapshot_ongoing(ErtsFlxCtr* c, Process /** * @brief This function returns the number of bytes that are allocated - * for for the given FlxCtr. + * for the given FlxCtr. * * @return nr of bytes allocated for the FlxCtr */ diff --git a/erts/emulator/beam/erl_msacc.h b/erts/emulator/beam/erl_msacc.h index 1907f600f5..34938ecf04 100644 --- a/erts/emulator/beam/erl_msacc.h +++ b/erts/emulator/beam/erl_msacc.h @@ -150,7 +150,7 @@ struct erl_msacc_t_ { Eterm id; char *type; - /* the the values below are protected by mtx iff unmanaged = 1 */ + /* the values below are protected by mtx iff unmanaged = 1 */ ErtsSysPerfCounter perf_counter; Uint state; ErtsMsAccPerfCntr counters[]; diff --git a/erts/emulator/beam/erl_node_tables.h b/erts/emulator/beam/erl_node_tables.h index 56696586c6..bde12fcfac 100644 --- a/erts/emulator/beam/erl_node_tables.h +++ b/erts/emulator/beam/erl_node_tables.h @@ -196,7 +196,7 @@ Vs = [begin [Val, _, _, _, What] = All = string:lexemes(Ln, " "),{Val,What,All} Accs = lists:foldl(fun({V,<<"ERL_NODE_INC">>,_},M) -> Val = maps:get(V,M,0), M#{ V => Val + 1 }; ({V,<<"ERL_NODE_DEC">>,_},M) -> Val = maps:get(V,M,0), M#{ V => Val - 1 } end, #{}, Vs). lists:usort(lists:filter(fun({V,N}) -> N /= 0 end, maps:to_list(Accs))). - * There are bound to be bugs in the the instrumentation code, but + * There are bound to be bugs in the instrumentation code, but * at least this is a place to start when hunting refc bugs. * */ diff --git a/erts/emulator/beam/erl_proc_sig_queue.h b/erts/emulator/beam/erl_proc_sig_queue.h index 187b8d7a16..d05b7b7051 100644 --- a/erts/emulator/beam/erl_proc_sig_queue.h +++ b/erts/emulator/beam/erl_proc_sig_queue.h @@ -898,7 +898,7 @@ erts_proc_sig_send_sync_suspend(Process *c_p, Eterm to, * term returned by 'func'. If the return value of * 'func' is not an immediate term, 'func' has to * allocate a heap fragment where the result is stored - * and update the the heap fragment pointer pointer + * and update the heap fragment pointer pointer * passed as third argument to point to it. * * If this function returns a reference, 'func' will @@ -963,7 +963,7 @@ erts_proc_sig_send_rpc_request(Process *c_p, * term returned by 'func'. If the return value of * 'func' is not an immediate term, 'func' has to * allocate a heap fragment where the result is stored - * and update the the heap fragment pointer pointer + * and update the heap fragment pointer pointer * passed as third argument to point to it. * * If this function returns a reference, 'func' will diff --git a/erts/emulator/beam/erl_process.h b/erts/emulator/beam/erl_process.h index 6f166e372c..abf738570d 100644 --- a/erts/emulator/beam/erl_process.h +++ b/erts/emulator/beam/erl_process.h @@ -1648,7 +1648,7 @@ extern int erts_system_profile_ts_type; # define F_INITIAL_TRACE_FLAGS 0 #endif -/* F_TIMESTAMP_MASK is a bit-field of all all timestamp types */ +/* F_TIMESTAMP_MASK is a bit-field of all timestamp types */ #define F_TIMESTAMP_MASK \ (ERTS_TRACE_TS_TYPE_MASK << ERTS_TRACE_FLAGS_TS_TYPE_SHIFT) diff --git a/erts/emulator/beam/erl_term.h b/erts/emulator/beam/erl_term.h index a744dd9054..88f0790d56 100644 --- a/erts/emulator/beam/erl_term.h +++ b/erts/emulator/beam/erl_term.h @@ -116,7 +116,7 @@ struct erl_node_; /* Declared in erl_node_tables.h */ * * - The tag is zero for arityval and non-zero for thing headers. * - A single bit differentiates between positive and negative bignums. - * - If more tags are needed, the REF and and EXTERNAL_REF tags could probably + * - If more tags are needed, the REF and EXTERNAL_REF tags could probably * be combined to one tag. * * XXX: globally replace XXX_SUBTAG with TAG_HEADER_XXX diff --git a/erts/emulator/beam/jit/x86/ops.tab b/erts/emulator/beam/jit/x86/ops.tab index ef57021d83..6812aef76f 100644 --- a/erts/emulator/beam/jit/x86/ops.tab +++ b/erts/emulator/beam/jit/x86/ops.tab @@ -282,7 +282,7 @@ i_get_tuple_element Tuple Pos Tuple2 | current_tuple Tuple3 | # Drop the current_tuple instruction if the tuple is overwritten. i_get_tuple_element Tuple Pos Tuple | current_tuple Tuple => i_get_tuple_element Tuple Pos Tuple -# This is a current_tuple instruction instruction not followed by get_tuple_element. +# This is a current_tuple instruction not followed by get_tuple_element. # Invalidate the current tuple pointer. current_tuple Tuple => diff --git a/erts/emulator/internal_doc/AutomaticYieldingOfCCode.md b/erts/emulator/internal_doc/AutomaticYieldingOfCCode.md index 9ee24595d8..e20cc3de75 100644 --- a/erts/emulator/internal_doc/AutomaticYieldingOfCCode.md +++ b/erts/emulator/internal_doc/AutomaticYieldingOfCCode.md @@ -106,7 +106,7 @@ belong. For example, the functions for the map BIFs are placed in `erl_map.c` together with the other map-related functions. When building, YCF is invoked to generate the transformed versions of the functions into a header file that is included in the source file that -contains the the non-transformed version of the function (search for +contains the non-transformed version of the function (search for YCF in `$ERL_TOP/erts/emulator/Makefile.in` to see examples of how YCF can be invoked). diff --git a/erts/emulator/internal_doc/PTables.md b/erts/emulator/internal_doc/PTables.md index 6b316eaa7e..dbb811a240 100644 --- a/erts/emulator/internal_doc/PTables.md +++ b/erts/emulator/internal_doc/PTables.md @@ -238,7 +238,7 @@ When we insert a new element in the table we do the following: be done before we publish the structure in the table. This, for example, includes storing the identifier in the process structure. -6. Now we can publish the structure in the table by writing the the +6. Now we can publish the structure in the table by writing the pointer to the process structure in the slot previously reserved in 3. diff --git a/erts/emulator/internal_doc/Tracing.md b/erts/emulator/internal_doc/Tracing.md index 28c973c264..d270b7f218 100644 --- a/erts/emulator/internal_doc/Tracing.md +++ b/erts/emulator/internal_doc/Tracing.md @@ -153,7 +153,7 @@ through when adding a new breakpoint. 9. Wait for thread progress. 10. Prepare for next call to `trace_pattern` by updating the new staging part - (the old active) of the breakpoint to be identic to the the new active part. + (the old active) of the breakpoint to be identic to the new active part. 11. Release code write permission and return from `trace_pattern`. diff --git a/erts/emulator/internal_doc/beam_makeops.md b/erts/emulator/internal_doc/beam_makeops.md index 563ad200f7..7a159bd182 100644 --- a/erts/emulator/internal_doc/beam_makeops.md +++ b/erts/emulator/internal_doc/beam_makeops.md @@ -1686,7 +1686,7 @@ similar to this: #### Variable number of operands #### -Here follows an example of how to to handle an instruction with a variable number +Here follows an example of how to handle an instruction with a variable number of operands for the interpreter. Here is the instruction definition in `emu/ops.tab`: put_tuple2 xy I * diff --git a/erts/emulator/sys/common/erl_osenv.h b/erts/emulator/sys/common/erl_osenv.h index 9b592c0507..969f23c86f 100644 --- a/erts/emulator/sys/common/erl_osenv.h +++ b/erts/emulator/sys/common/erl_osenv.h @@ -78,7 +78,7 @@ int erts_osenv_unset_term(erts_osenv_t *env, Eterm key); * @param value [in,out] The buffer to copy the value into, may be NULL if you * only wish to query presence. * - * @return 1 on success, 0 if the key couldn't be found, and -1 if if the value + * @return 1 on success, 0 if the key couldn't be found, and -1 if the value * didn't fit into the buffer. */ int erts_osenv_get_native(const erts_osenv_t *env, const erts_osenv_data_t *key, erts_osenv_data_t *value); diff --git a/erts/emulator/test/big_SUITE.erl b/erts/emulator/test/big_SUITE.erl index 2839a97061..dce6d869a3 100644 --- a/erts/emulator/test/big_SUITE.erl +++ b/erts/emulator/test/big_SUITE.erl @@ -214,7 +214,7 @@ test_squaring(I) -> Sqr = I * I, %% This expression will be multiplied in the usual way, because - %% the the two operands for '*' are stored at different addresses. + %% the two operands for '*' are stored at different addresses. Sqr = I * ((I + id(1)) - id(1)), ok. diff --git a/erts/emulator/test/code_SUITE.erl b/erts/emulator/test/code_SUITE.erl index f74df5ca71..b95c4074b9 100644 --- a/erts/emulator/test/code_SUITE.erl +++ b/erts/emulator/test/code_SUITE.erl @@ -589,7 +589,7 @@ constant_refc_binaries_test(Config) when is_list(Config) -> Bef = memory_binary(), io:format("Binary data (bytes) before test: ~p\n", [Bef]), - %% Compile the the literals module. + %% Compile the literals module. Data = proplists:get_value(data_dir, Config), File = filename:join(Data, "literals"), {ok,literals,Code} = compile:file(File, [report,binary]), @@ -858,7 +858,7 @@ t_copy_literals(Config) when is_list(Config) -> run_sys_proc_test(fun t_copy_literals_test/1, Config). t_copy_literals_test(Config) when is_list(Config) -> - %% Compile the the literals module. + %% Compile the literals module. Data = proplists:get_value(data_dir, Config), File = filename:join(Data, "literals"), {ok,literals,Code} = compile:file(File, [report,binary]), diff --git a/erts/emulator/test/dirty_nif_SUITE.erl b/erts/emulator/test/dirty_nif_SUITE.erl index 5069dfa5b9..632d289c57 100644 --- a/erts/emulator/test/dirty_nif_SUITE.erl +++ b/erts/emulator/test/dirty_nif_SUITE.erl @@ -520,7 +520,7 @@ dirty_nif_send_traced(Config) when is_list(Config) -> true = Time2 >= 1900, %% Make sure that the send trace is - %% in between an in and and out trace + %% in between an in and an out trace (fun F() -> %% We got an in trace, look for out or send {trace,Sndr,in,_} = recv_trace_from(Sndr), diff --git a/erts/emulator/test/distribution_SUITE.erl b/erts/emulator/test/distribution_SUITE.erl index 144f9ec3b8..a02988c90b 100644 --- a/erts/emulator/test/distribution_SUITE.erl +++ b/erts/emulator/test/distribution_SUITE.erl @@ -1162,7 +1162,7 @@ roundtrip(Term) -> exit(Term). %% Test that the smallest external term [] aka NIL can be sent to -%% another node node and back again. +%% another node and back again. nil_roundtrip(Config) when is_list(Config) -> process_flag(trap_exit, true), {ok, Node} = start_node(nil_roundtrip), diff --git a/erts/emulator/test/map_SUITE.erl b/erts/emulator/test/map_SUITE.erl index ffb10b9285..02977f8159 100644 --- a/erts/emulator/test/map_SUITE.erl +++ b/erts/emulator/test/map_SUITE.erl @@ -2990,7 +2990,7 @@ t_maps_without(_Config) -> %% MISC -%% Verify that the the number of nodes in hashmaps +%% Verify that the number of nodes in hashmaps %% of different types and sizes does not deviate too %% much from the theoretical model. %% For debug with DBG_HASHMAP_COLLISION_BONANZA the test will expect diff --git a/erts/emulator/zlib/inftrees.h b/erts/emulator/zlib/inftrees.h index f53665311c..1b6bfc3dd4 100644 --- a/erts/emulator/zlib/inftrees.h +++ b/erts/emulator/zlib/inftrees.h @@ -41,7 +41,7 @@ typedef struct { examples/enough.c found in the zlib distribtution. The arguments to that program are the number of symbols, the initial root table size, and the maximum bit length of a code. "enough 286 9 15" for literal/length codes - returns returns 852, and "enough 30 6 15" for distance codes returns 592. + returns 852, and "enough 30 6 15" for distance codes returns 592. The initial root table size (9 or 6) is found in the fifth argument of the inflate_table() calls in inflate.c and infback.c. If the root table size is changed, then these maximum sizes would be need to be recalculated and diff --git a/erts/emulator/zlib/zlib.h b/erts/emulator/zlib/zlib.h index 953cb5012d..8fe4dbb813 100644 --- a/erts/emulator/zlib/zlib.h +++ b/erts/emulator/zlib/zlib.h @@ -729,7 +729,7 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, Then no more input data should be provided before the deflateParams() call. If this is done, the old level and strategy will be applied to the data compressed before deflateParams(), and the new level and strategy will be - applied to the the data compressed after deflateParams(). + applied to the data compressed after deflateParams(). deflateParams returns Z_OK on success, Z_STREAM_ERROR if the source stream state was inconsistent or if a parameter was invalid, or Z_BUF_ERROR if diff --git a/erts/etc/unix/RELNOTES b/erts/etc/unix/RELNOTES index 97aec2b100..6555b02aea 100644 --- a/erts/etc/unix/RELNOTES +++ b/erts/etc/unix/RELNOTES @@ -236,7 +236,7 @@ the 4.2 system, but there is a number of incompatibilities. -- eprof, is a (tty-based) tool for real-time profiling, see eprof(3). --- dbg, is a (tty-based) interface to the the trace/3 BIF, see dbg(3). +-- dbg, is a (tty-based) interface to the trace/3 BIF, see dbg(3). -- pman, is a (pxw-based) interface to the trace/3 BIF. diff --git a/erts/etc/unix/etp-commands.in b/erts/etc/unix/etp-commands.in index 0e764c2430..68ab39745b 100644 --- a/erts/etc/unix/etp-commands.in +++ b/erts/etc/unix/etp-commands.in @@ -4369,7 +4369,7 @@ document etp-search-alloc %--------------------------------------------------------------------------- % etp-search-heaps Eterm % -% Search all internal allocator memory blocks for for the specified Eterm. +% Search all internal allocator memory blocks for the specified Eterm. %--------------------------------------------------------------------------- end diff --git a/lib/asn1/doc/src/asn1_spec.xmlsrc b/lib/asn1/doc/src/asn1_spec.xmlsrc index fd30d34a34..b86fe1fad7 100644 --- a/lib/asn1/doc/src/asn1_spec.xmlsrc +++ b/lib/asn1/doc/src/asn1_spec.xmlsrc @@ -391,7 +391,7 @@ List_Selector = [integer()]</pre> <item>Each name in <c>Element_List</c> must be a constructed type except the last name, which can be any type.</item> <item><c>List_Selector</c> makes it possible to choose one of the - encoded components in a a <c>SEQUENCE OF</c> or a <c>SET OF</c>. + encoded components in a <c>SEQUENCE OF</c> or a <c>SET OF</c>. It is also possible to go further in that component and pick a subtype of that to decode. So, in the <c>Type_List</c>: <c>['Window',status,buttonList,[1],number]</c>, component diff --git a/lib/asn1/doc/src/notes.xml b/lib/asn1/doc/src/notes.xml index c53f969384..634857de15 100644 --- a/lib/asn1/doc/src/notes.xml +++ b/lib/asn1/doc/src/notes.xml @@ -723,7 +723,7 @@ <list> <item> <p> - Many bugs have been eliminated in the the ASN.1 compiler + Many bugs have been eliminated in the ASN.1 compiler so that it can now successfully compile many more ASN.1 specifications. Error messages have also been improved.</p> <p> @@ -977,7 +977,7 @@ <item> <p> The ASN.1 compiler would fail to compile a constraint - with values given for for the extension part (such as + with values given for the extension part (such as <c>INTEGER (1..10, ..., 11..20)</c>).</p> <p> Own Id: OTP-11504</p> diff --git a/lib/asn1/src/asn1ct_check.erl b/lib/asn1/src/asn1ct_check.erl index f1e8a19128..4c7f63ee92 100644 --- a/lib/asn1/src/asn1ct_check.erl +++ b/lib/asn1/src/asn1ct_check.erl @@ -4934,7 +4934,7 @@ componentrelation_leadingattr(S,CompList) -> %% get_simple_table_if_used/2 should find out whether there are any %% component relation constraints in the entire tree of Cs1 that %% relates to this level. It returns information about the simple - %% table constraint necessary for the the call to + %% table constraint necessary for the call to %% componentrelation_leadingattr/6. The step when the leading %% attribute and the syntax tree is modified to support the code %% generating. diff --git a/lib/asn1/src/asn1ct_imm.erl b/lib/asn1/src/asn1ct_imm.erl index c2ec27e195..6ad0d68062 100644 --- a/lib/asn1/src/asn1ct_imm.erl +++ b/lib/asn1/src/asn1ct_imm.erl @@ -498,7 +498,7 @@ is_aligned(k_m_string, _Lb, Ub) -> Ub >= 16. %%% -%%% Generating the intermediate format format for decoding. +%%% Generating the intermediate format for decoding. %%% dec_string(Sv, U, Aligned0, T) when is_integer(Sv) -> @@ -1791,7 +1791,7 @@ enc_pre_cg_nonbuilding(Imm, _) -> Imm. %%% an expensive complete/1 implementation). If we can be sure that %%% complete/1 will be called with an iolist (no 'align' atoms or %%% bitstrings in the list), we can call iolist_to_binary/1 -%%% instead. If the list may include bitstrings, we can can call +%%% instead. If the list may include bitstrings, we can call %%% list_to_bitstring/1 (note that list_to_bitstring/1 does not accept %%% a binary or bitstring, so we MUST be sure that we only pass it a %%% list). If complete/1 is called with a binary, we can omit the @@ -2199,7 +2199,7 @@ propagate({var,Var}, Propagate, #ost{sym=Sym0}=St) when is_function(Propagate, 2 %%% any Anything. %%% %%% align Basically iodata, but the list may contain bitstrings -%%% and the the atom 'align'. Can be passed to complete/1 +%%% and the atom 'align'. Can be passed to complete/1 %%% to construct a binary. Only used for aligned PER (per). %%% %%% bitstring An Erlang bitstring. diff --git a/lib/asn1/src/asn1ct_parser2.erl b/lib/asn1/src/asn1ct_parser2.erl index 2bdc284b12..52a7eef643 100644 --- a/lib/asn1/src/asn1ct_parser2.erl +++ b/lib/asn1/src/asn1ct_parser2.erl @@ -283,7 +283,7 @@ parse_Assignment([{typereference,_,_},{'{',_}|_]=Tokens) -> %% 2) ValueSet{...} Type ::= ... %% ObjectSet{...} CLASS-NAME ::= CLASS {...} %% 3) CLASS-NAME{...} ::= CLASS {...} - %% A parameterized value set and and a parameterized object set + %% A parameterized value set and a parameterized object set %% cannot be distinguished from each other without type information. Flist = [fun parse_ParameterizedTypeAssignment/1, fun parse_ParameterizedValueSetTypeAssignment/1, diff --git a/lib/common_test/doc/src/notes.xml b/lib/common_test/doc/src/notes.xml index e304a309c9..fbad54cd94 100644 --- a/lib/common_test/doc/src/notes.xml +++ b/lib/common_test/doc/src/notes.xml @@ -3991,7 +3991,7 @@ </item> <item> <p> - If a timetrap timeout occurred during execution of of a + If a timetrap timeout occurred during execution of a function in a lib module (i.e. a function called directly or indirectly from a test case), the Suite argument in the end_tc/3 framework callback function would not @@ -5082,7 +5082,7 @@ <item> <p> The rx library, included with common_test, failed to - build on on some architectures because the -fPIC compiler + build on some architectures because the -fPIC compiler option was missing.</p> <p> Own Id: OTP-7111</p> diff --git a/lib/common_test/doc/src/write_test_chapter.xml b/lib/common_test/doc/src/write_test_chapter.xml index 248ef317b9..38acab95ef 100644 --- a/lib/common_test/doc/src/write_test_chapter.xml +++ b/lib/common_test/doc/src/write_test_chapter.xml @@ -826,7 +826,7 @@ <p>In the data directory, <c>data_dir</c>, the test module has its own files needed for the testing. The name of <c>data_dir</c> - is the the name of the test suite followed by <c>"_data"</c>. + is the name of the test suite followed by <c>"_data"</c>. For example, <c>"some_path/foo_SUITE.beam"</c> has the data directory <c>"some_path/foo_SUITE_data/"</c>. Use this directory for portability, that is, to avoid hardcoding directory names in your suite. As the data diff --git a/lib/common_test/src/test_server.erl b/lib/common_test/src/test_server.erl index 36e37984b4..32ff69ec10 100644 --- a/lib/common_test/src/test_server.erl +++ b/lib/common_test/src/test_server.erl @@ -466,7 +466,7 @@ run_test_case_msgloop(#st{ref=Ref,pid=Pid,end_conf_pid=EndConfPid0}=St0) -> From ! {self(),Tag,ok}, run_test_case_msgloop(St); {abort_current_testcase,_,_}=Abort when St0#st.status =:= starting -> - %% we're in init phase, must must postpone this operation + %% we're in init phase, must postpone this operation %% until test case execution is in progress (or FW:init_tc %% gets killed) self() ! Abort, diff --git a/lib/common_test/src/test_server_ctrl.erl b/lib/common_test/src/test_server_ctrl.erl index 35fb69698a..e5a361bd33 100644 --- a/lib/common_test/src/test_server_ctrl.erl +++ b/lib/common_test/src/test_server_ctrl.erl @@ -4632,7 +4632,7 @@ update_config(Config, []) -> %% simple list of test cases to call, when executing the test suite. %% %% CurMod is the "current" module, that is, the module the last instruction -%% was read from. May be be set to 'none' initially. +%% was read from. May be set to 'none' initially. %% %% SkipList is the list of test cases to skip and requirements to deny. %% diff --git a/lib/common_test/test/erl2html2_SUITE_data/m1.erl b/lib/common_test/test/erl2html2_SUITE_data/m1.erl index 1d405963a5..ed01f62fdc 100644 --- a/lib/common_test/test/erl2html2_SUITE_data/m1.erl +++ b/lib/common_test/test/erl2html2_SUITE_data/m1.erl @@ -43,7 +43,7 @@ ok. % indentation error, OTP-9710 %% Function inside macro definition ?MACRO_DEFINING_A_FUNCTION. -%% Two function one one line +%% Two function on one line quuux() -> ok. quuuux() -> ok. %% do_something/0 does something -- 2.35.3
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