summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKian-Meng, Ang <kianmeng@cpan.org>2021-12-14 08:12:47 +0800
committerKian-Meng, Ang <kianmeng@cpan.org>2021-12-14 08:12:47 +0800
commitb98c0d43ca07bcda48d09520e9aec27e110abdc3 (patch)
treef35a42702295cfbef9137517b62dfcac9160cee5
parent9b07aedd669c2cb1e12e8a9b4f06210d0892041e (diff)
downloaderlang-b98c0d43ca07bcda48d09520e9aec27e110abdc3.tar.gz
Fix typos in lib/erl_interface
-rw-r--r--lib/erl_interface/doc/src/ei_connect.xml10
-rw-r--r--lib/erl_interface/doc/src/notes.xml2
-rw-r--r--lib/erl_interface/src/Makefile.in2
-rw-r--r--lib/erl_interface/src/README.internal10
-rw-r--r--lib/erl_interface/src/connect/ei_connect.c10
-rw-r--r--lib/erl_interface/src/connect/ei_connect_int.h2
-rw-r--r--lib/erl_interface/src/connect/eirecv.c2
-rw-r--r--lib/erl_interface/src/decode/decode_atom.c2
-rw-r--r--lib/erl_interface/src/encode/encode_atom.c2
-rw-r--r--lib/erl_interface/src/epmd/epmd_unpublish.c2
-rw-r--r--lib/erl_interface/src/misc/ei_pthreads.c2
-rw-r--r--lib/erl_interface/test/all_SUITE_data/ei_runner.c2
-rw-r--r--lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c2
-rw-r--r--lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c2
-rw-r--r--lib/erl_interface/test/ei_connect_SUITE_data/einode.c2
-rw-r--r--lib/erl_interface/test/ei_decode_SUITE.erl2
-rw-r--r--lib/erl_interface/test/ei_encode_SUITE.erl2
-rw-r--r--lib/erl_interface/test/ei_global_SUITE_data/ei_global_test.c2
-rw-r--r--lib/erl_interface/test/ei_tmo_SUITE.erl2
19 files changed, 31 insertions, 31 deletions
diff --git a/lib/erl_interface/doc/src/ei_connect.xml b/lib/erl_interface/doc/src/ei_connect.xml
index c591c3a6da..596caa80a7 100644
--- a/lib/erl_interface/doc/src/ei_connect.xml
+++ b/lib/erl_interface/doc/src/ei_connect.xml
@@ -165,7 +165,7 @@
<p>On success it should set <c>*ctx</c> to point to a context for
the created socket. This context will be passed to all other
socket callbacks. This function will be passed the same
- <c>setup_context</c> as passed to the preceeding
+ <c>setup_context</c> as passed to the preceding
<seecref marker="#ei_connect_init"><c>ei_connect_init_ussi()</c></seecref>
or
<seecref marker="#ei_connect_init"><c>ei_connect_xinit_ussi()</c></seecref>
@@ -192,8 +192,8 @@
<p>The <c>addr</c> and <c>len</c> arguments are both input and output
arguments. When called <c>addr</c> points to an address structure of
- lenght <c>*len</c> containing information on how to bind the socket.
- Uppon return this callback should have updated the structure referred
+ length <c>*len</c> containing information on how to bind the socket.
+ Upon return this callback should have updated the structure referred
by <c>addr</c> with information on how the socket actually was bound.
<c>*len</c> should be updated to reflect the size of <c>*addr</c>
updated. <c>backlog</c> identifies the size of the backlog for the
@@ -211,7 +211,7 @@
connection should be created and <c>*ctx</c> should be updated
to point to the new context for the accepted connection. When
called <c>addr</c> points to an uninitialized address structure
- of lenght <c>*len</c>. Uppon return this callback should have
+ of length <c>*len</c>. Upon return this callback should have
updated this structure with information about the client address.
<c>*len</c> should be updated to reflect the size of <c>*addr</c>
updated.
@@ -233,7 +233,7 @@
identified by <c>addr</c>.</p>
<p>When called <c>addr</c> points to an address structure of
- lenght <c>len</c> containing information on where to connect.</p>
+ length <c>len</c> containing information on where to connect.</p>
<p>If the <c>EI_SCLBK_FLG_FULL_IMPL</c> flag has been set,
<c>tmo</c> contains timeout time in milliseconds.</p>
diff --git a/lib/erl_interface/doc/src/notes.xml b/lib/erl_interface/doc/src/notes.xml
index 147cf28619..91cd90721b 100644
--- a/lib/erl_interface/doc/src/notes.xml
+++ b/lib/erl_interface/doc/src/notes.xml
@@ -2032,7 +2032,7 @@
</item>
<item>
<p>
- In <c>send_exit.c</c> an errorneous size of memory
+ In <c>send_exit.c</c> an erroneous size of memory
allocation could occur when reallocating a buffer.</p>
<p>
In <c>ei_decode_trace.c</c> the index could be updated
diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in
index 56fdaa608e..32e064f703 100644
--- a/lib/erl_interface/src/Makefile.in
+++ b/lib/erl_interface/src/Makefile.in
@@ -22,7 +22,7 @@
##
## This is a standalone make file for erl_interface. It is
## to be preprocessed by the configure script and the result
-## is saved into the TARGER directory.
+## is saved into the TARGET directory.
##
## We use 'vpath' to use plain C file names without the directory
## part in dependency rules.
diff --git a/lib/erl_interface/src/README.internal b/lib/erl_interface/src/README.internal
index 51be1159d3..2f53b08802 100644
--- a/lib/erl_interface/src/README.internal
+++ b/lib/erl_interface/src/README.internal
@@ -3,7 +3,7 @@
******************************************************************************
There are two different interfaces, the old 'erl_interface' and 'ei'.
-The old interface is to depend on the new one, not the other way arount.
+The old interface is to depend on the new one, not the other way around.
Erl_interface should be "thread safe", i.e. you should be able to
handle connections, convert data etc from different threads.
@@ -143,7 +143,7 @@ source. "eidef.h" contains some common constants and macros and
also includes config.h.
In general avoid including other header files from header files.
-The exception is to make the protoypes complete to the user of
+The exception is to make the prototypes complete to the user of
this library, i.e. to include <stdio.h> to defined FILE or
to include "ei_x_encode" to define the type ei_x_buff.
@@ -157,11 +157,11 @@ where size matters ;-) Use uint8 for buffers where we construct
messages.
NOTE!!!! Sending a "char" to macros like isupper(), isalpha() where
-the character is > 127 will cause serios problems on some
+the character is > 127 will cause serious problems on some
machines/OS. The reason is that
'char' may be unsigned, i.e. the Swedish char 'รค' will
- as a number be negativ.
+ as a number be negative.
The implementation of isupper() and others will on some
machines use an array that is indexed with the incoming
@@ -237,7 +237,7 @@ long" operations will create a dependency to a "hidden" library
libei.a[decode_longlong.o]: [6] | 0| 0|NOTY |GLOB |0 |UNDEF |__ashldi3
libei.a[decode_ulonglong.o]: [5] | 0| 0|NOTY |GLOB |0 |UNDEF |__ashldi3
-We can accept that a dependecy is created for code linked with
+We can accept that a dependency is created for code linked with
"libei.a" that actually use 'ei' long long functions. But if we
arrange the 'ei' source badly using a non "long long" functions from
'ei' will still link in an object file that need "libgcc.a". One
diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c
index 9cf30fde4c..fd7b4e24b0 100644
--- a/lib/erl_interface/src/connect/ei_connect.c
+++ b/lib/erl_interface/src/connect/ei_connect.c
@@ -613,7 +613,7 @@ int ei_make_pid(ei_cnode *ec, erlang_pid *pid)
* of modifying the 'num' field in the pid returned by
* ei_self(). Since 'serial' field in pid returned by
* ei_self() is initialized to 0, pids created by
- * ei_make_pid() wont clash with such badly created pids
+ * ei_make_pid() won't clash with such badly created pids
* using ei_self() unless user also modified serial, but
* that has at least never been suggested by the
* documentation.
@@ -676,7 +676,7 @@ static ei_mutex_t *ref_mtx = NULL;
/*
* We use a global counter for all c-nodes in this process.
- * We wont wrap anyway due to the enormous amount of values
+ * We won't wrap anyway due to the enormous amount of values
* available.
*/
#ifdef EI_MAKE_REF_ATOMIC__
@@ -891,7 +891,7 @@ int ei_init_connect(void)
/*
* Perhaps run this routine instead of ei_connect_init/2 ?
-* Initailize by setting:
+* Initialize by setting:
* thishostname, thisalivename, thisnodename and thisipaddr
*/
int ei_connect_xinit_ussi(ei_cnode* ec, const char *thishostname,
@@ -1155,7 +1155,7 @@ static int ip_address_from_hostname(char* hostname,
hp = dyn_gethostbyname_r(hostname,&host,buffer_p,buffer_size,&ei_h_errno);
if (hp == NULL) {
char thishostname[EI_MAXHOSTNAMELEN+1];
- /* gethostname requies len to be max(hostname) + 1*/
+ /* gethostname requires len to be max(hostname) + 1*/
if (gethostname(thishostname,EI_MAXHOSTNAMELEN+1) < 0) {
EI_TRACE_ERR0("ip_address_from_hostname",
"Failed to get name of this host");
@@ -2407,7 +2407,7 @@ static int send_challenge(ei_cnode *ec,
flags = preferred_flags();
put8(s, tag);
if (tag == 'n') {
- put16be(s, EI_DIST_5); /* choosen version */
+ put16be(s, EI_DIST_5); /* chosen version */
put32be(s, flags);
put32be(s, challenge);
}
diff --git a/lib/erl_interface/src/connect/ei_connect_int.h b/lib/erl_interface/src/connect/ei_connect_int.h
index 63079b8e06..884a7e4dc0 100644
--- a/lib/erl_interface/src/connect/ei_connect_int.h
+++ b/lib/erl_interface/src/connect/ei_connect_int.h
@@ -56,7 +56,7 @@
#include <sys/utsname.h> /* for gen_challenge (NEED FIX?) */
#endif
-/* FIXME remove duplicate defintions */
+/* FIXME remove duplicate definitions */
#define DEFBUF_SIZ 100
diff --git a/lib/erl_interface/src/connect/eirecv.c b/lib/erl_interface/src/connect/eirecv.c
index b69e0649cf..eb9cbd4cc2 100644
--- a/lib/erl_interface/src/connect/eirecv.c
+++ b/lib/erl_interface/src/connect/eirecv.c
@@ -369,7 +369,7 @@ send_unlink_id_ack(ei_socket_callbacks *cbs, void *ctx,
s = &ctl[0];
/* packet size */
put32be(s, index - 4);
- /* pass throug */
+ /* pass through */
put8(s, ERL_PASS_THROUGH);
if (ei_tracelevel >= 4) {
diff --git a/lib/erl_interface/src/decode/decode_atom.c b/lib/erl_interface/src/decode/decode_atom.c
index 2bf8ab0552..0d2cc65202 100644
--- a/lib/erl_interface/src/decode/decode_atom.c
+++ b/lib/erl_interface/src/decode/decode_atom.c
@@ -100,7 +100,7 @@ typedef unsigned long AsciiWord;
#elif SIZEOF_VOID_P == SIZEOF_LONG_LONG
typedef unsigned long long AsciiWord;
#else
-# error "Uknown word type"
+# error "Unknown word type"
#endif
#if SIZEOF_VOID_P == 4
diff --git a/lib/erl_interface/src/encode/encode_atom.c b/lib/erl_interface/src/encode/encode_atom.c
index 6117aae37e..34eccb8e5f 100644
--- a/lib/erl_interface/src/encode/encode_atom.c
+++ b/lib/erl_interface/src/encode/encode_atom.c
@@ -65,7 +65,7 @@ int ei_encode_atom_len_as(char *buf, int *index, const char *p, int len,
/*
* Since OTP 20 we totally ignore 'to_enc'
- * and alway encode as UTF8.
+ * and always encode as UTF8.
*/
{
offs = 1 + 1;
diff --git a/lib/erl_interface/src/epmd/epmd_unpublish.c b/lib/erl_interface/src/epmd/epmd_unpublish.c
index c463732250..4ec3c9437a 100644
--- a/lib/erl_interface/src/epmd/epmd_unpublish.c
+++ b/lib/erl_interface/src/epmd/epmd_unpublish.c
@@ -61,7 +61,7 @@ int ei_unpublish_tmo(const char *alive, unsigned ms)
put8(s,EI_EPMD_STOP_REQ);
strcpy(s, alive);
- /* FIXME can't connect, return success?! At least commen whats up */
+ /* FIXME can't connect, return success?! At least comment what's up */
if ((fd = ei_epmd_connect_tmo(NULL,ms)) < 0) return fd;
dlen = (ssize_t) len+2;
diff --git a/lib/erl_interface/src/misc/ei_pthreads.c b/lib/erl_interface/src/misc/ei_pthreads.c
index df7a7fbb8f..126f4a1749 100644
--- a/lib/erl_interface/src/misc/ei_pthreads.c
+++ b/lib/erl_interface/src/misc/ei_pthreads.c
@@ -158,7 +158,7 @@ static void erl_errno_key_alloc(void)
* If pthread functions fail we fall back to using fallback_errno
* so that the main thread (actually not a thread in all ascpects)
* still will set and get an erl_errno value.
- * Actually this is a bit to nice, it would be preferrable to exit fatal
+ * Actually this is a bit to nice, it would be preferable to exit fatal
* as we do on windows, but we might break some code with one thread
* but still compiled with -D_REENTRANT, so we'll leave it here.
*/
diff --git a/lib/erl_interface/test/all_SUITE_data/ei_runner.c b/lib/erl_interface/test/all_SUITE_data/ei_runner.c
index 56c88c46f2..19812e5078 100644
--- a/lib/erl_interface/test/all_SUITE_data/ei_runner.c
+++ b/lib/erl_interface/test/all_SUITE_data/ei_runner.c
@@ -274,7 +274,7 @@ void do_fail(const char* file, int line, const char* reason, ...)
/*
* This function sends a message to the Erlang side.
* The message will be written to the test servers log file,
- * but will otherwise be completly ignored.
+ * but will otherwise be completely ignored.
*/
void message(char* format, ...)
diff --git a/lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c b/lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c
index ef1ab96d41..8276d31bd2 100644
--- a/lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c
+++ b/lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c
@@ -145,7 +145,7 @@ static void*
ei_x_free(&x);
ei_x_free(&xs);
} else {
- fprintf(file, "coudn't connect fd %d r %d\n", fd, r); fflush(file);
+ fprintf(file, "couldn't connect fd %d r %d\n", fd, r); fflush(file);
}
ei_close_connection(listen);
fprintf(file, "done thread %d\n", n);
diff --git a/lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c b/lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c
index 2b42cfd6ed..75dba6a7a0 100644
--- a/lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c
+++ b/lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c
@@ -72,7 +72,7 @@ static struct {
/*
- * Sends a list contaning all data types to the Erlang side.
+ * Sends a list containing all data types to the Erlang side.
*/
TESTCASE(interpret)
diff --git a/lib/erl_interface/test/ei_connect_SUITE_data/einode.c b/lib/erl_interface/test/ei_connect_SUITE_data/einode.c
index 8af8760f30..005f20e5cf 100644
--- a/lib/erl_interface/test/ei_connect_SUITE_data/einode.c
+++ b/lib/erl_interface/test/ei_connect_SUITE_data/einode.c
@@ -89,7 +89,7 @@ static void*
shutdown(fd, SD_SEND);
closesocket(fd);
} else {
- printf("coudn't connect fd %d r %d\n", fd, r); // DebugBreak();
+ printf("couldn't connect fd %d r %d\n", fd, r); // DebugBreak();
}
printf("done thread %d\n", n);
return 0;
diff --git a/lib/erl_interface/test/ei_decode_SUITE.erl b/lib/erl_interface/test/ei_decode_SUITE.erl
index a51078f7e7..bd7def7624 100644
--- a/lib/erl_interface/test/ei_decode_SUITE.erl
+++ b/lib/erl_interface/test/ei_decode_SUITE.erl
@@ -51,7 +51,7 @@ init_per_testcase(Case, Config) ->
%% ---------------------------------------------------------------------------
-% NOTE: for historical reasons we don't pach as tight as we can,
+% NOTE: for historical reasons we don't patch as tight as we can,
% we only fill 27 bits in 32 bit INTEGER_EXT
diff --git a/lib/erl_interface/test/ei_encode_SUITE.erl b/lib/erl_interface/test/ei_encode_SUITE.erl
index 10fcd6b871..670d6aa10b 100644
--- a/lib/erl_interface/test/ei_encode_SUITE.erl
+++ b/lib/erl_interface/test/ei_encode_SUITE.erl
@@ -52,7 +52,7 @@ init_per_testcase(Case, Config) ->
%% ---------------------------------------------------------------------------
-% NOTE: for historical reasons we don't pach as tight as we can,
+% NOTE: for historical reasons we don't patch as tight as we can,
% we only fill 27 bits in 32 bit INTEGER_EXT
diff --git a/lib/erl_interface/test/ei_global_SUITE_data/ei_global_test.c b/lib/erl_interface/test/ei_global_SUITE_data/ei_global_test.c
index dd41afe77e..8ab4108bcf 100644
--- a/lib/erl_interface/test/ei_global_SUITE_data/ei_global_test.c
+++ b/lib/erl_interface/test/ei_global_SUITE_data/ei_global_test.c
@@ -59,7 +59,7 @@ static struct {
/*
- * Sends a list contaning all data types to the Erlang side.
+ * Sends a list containing all data types to the Erlang side.
*/
TESTCASE(interpret)
diff --git a/lib/erl_interface/test/ei_tmo_SUITE.erl b/lib/erl_interface/test/ei_tmo_SUITE.erl
index 2db002b5f8..9dd49fcc1b 100644
--- a/lib/erl_interface/test/ei_tmo_SUITE.erl
+++ b/lib/erl_interface/test/ei_tmo_SUITE.erl
@@ -500,7 +500,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) ->