summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang.org>2021-12-29 15:40:49 +0100
committerGitHub <noreply@github.com>2021-12-29 15:40:49 +0100
commitbff2c60cc7baca10ffdd39a6316c39e546abc471 (patch)
tree4a3f979082f167099bd4c809b83a9f3509dc5ae8 /lib
parent54773f20fc52cd45f68fc628b94449d7142b77db (diff)
parent7ed77a7cdebc0a976138fb4690ad3f062ab10209 (diff)
downloaderlang-bff2c60cc7baca10ffdd39a6316c39e546abc471.tar.gz
Merge pull request #5547 from kianmeng/fix-typos-in-lib-os-mon
Fix typos in lib/os_mon
Diffstat (limited to 'lib')
-rw-r--r--lib/os_mon/c_src/memsup.c4
-rw-r--r--lib/os_mon/c_src/nteventlog/elog_format.h2
-rw-r--r--lib/os_mon/c_src/nteventlog/elog_main.c2
-rw-r--r--lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c2
-rw-r--r--lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h6
-rw-r--r--lib/os_mon/c_src/win32sysinfo.c2
-rw-r--r--lib/os_mon/doc/src/notes.xml2
-rw-r--r--lib/os_mon/test/disksup_SUITE.erl2
-rw-r--r--lib/os_mon/test/memsup_SUITE.erl2
9 files changed, 12 insertions, 12 deletions
diff --git a/lib/os_mon/c_src/memsup.c b/lib/os_mon/c_src/memsup.c
index 7ea7456003..3cc13c905b 100644
--- a/lib/os_mon/c_src/memsup.c
+++ b/lib/os_mon/c_src/memsup.c
@@ -66,7 +66,7 @@
* This program communicates with Erlang through the standard
* input and output file descriptors (0 and 1). These descriptors
* (and the standard error descriptor 2) must NOT be closed
- * explicitely by this program at termination (in UNIX it is
+ * explicitly by this program at termination (in UNIX it is
* taken care of by the operating system itself; in VxWorks
* it is taken care of by the spawn driver part of the Emulator).
*
@@ -176,7 +176,7 @@ static void print_error(const char *,...);
* PageTables: 9368 kB 2.5.41+
* VmallocTotal: 34359738367 kB ?? total size of vmalloc memory area
* VmallocUsed: 57376 kB ?? amount of vmalloc area which is used
- * VmallocChunk: 34359677947 kB ?? largest contigious block of vmalloc area which is free
+ * VmallocChunk: 34359677947 kB ?? largest contiguous block of vmalloc area which is free
* ReverseMaps: 5738 2.5.41+ number of rmap pte chains
* SwapCached: 0 kB 2.5.??+
* HugePages_Total: 0 2.5.??+
diff --git a/lib/os_mon/c_src/nteventlog/elog_format.h b/lib/os_mon/c_src/nteventlog/elog_format.h
index d92e2a81c3..9b9f3f77c1 100644
--- a/lib/os_mon/c_src/nteventlog/elog_format.h
+++ b/lib/os_mon/c_src/nteventlog/elog_format.h
@@ -34,7 +34,7 @@ char *format_message(MessageFiles mf, DWORD id,
* Formats an eventlog message with the messagefiles
* in mf, the ID id, the stringarray strings,
* containing numstrings strings into buff.
- * if bufflen is to small or anything else failes,
+ * if bufflen is to small or anything else fails,
* the return value is NULL.
*/
diff --git a/lib/os_mon/c_src/nteventlog/elog_main.c b/lib/os_mon/c_src/nteventlog/elog_main.c
index a7b59e516b..bed558f80f 100644
--- a/lib/os_mon/c_src/nteventlog/elog_main.c
+++ b/lib/os_mon/c_src/nteventlog/elog_main.c
@@ -285,7 +285,7 @@ BOOL output_record(char *category, EVENTLOGRECORD *event){
* number and timestamp, and sends them to
* stdout. If timestamp does
* not correspond with record number, the
- * log is concidered wrapped around
+ * log is considered wrapped around
* and is reread from the beginning.
* time is ignored if 0.
* If record_number is 0, the whole log is read (if there is one).
diff --git a/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c b/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c
index 1920268af9..e61bb81920 100644
--- a/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c
+++ b/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c
@@ -31,7 +31,7 @@ static char *stdin_buff = NULL;
static int stdin_siz = 0;
static int stdin_len = 0;
static int stdin_eof = 0;
-/* end syncronized objects */
+/* end synchronized objects */
static int stdin_is_console = 0;
static HANDLE stdin_event;
diff --git a/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h b/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h
index b8f08bb412..239de5016c 100644
--- a/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h
+++ b/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h
@@ -22,11 +22,11 @@
/*
* Module: elog_pipe_stdin
* Purpouse: Read data from stdin when stdin is a pipe
- * and deliver events only when data is really availabel or
+ * and deliver events only when data is really available or
* end of file is reached.
* If we would wait on an ordinary pipe handle, we
* would return immediately as it's always "signaled".
- * some kind of asyncronous I/O in the win32 way is
+ * some kind of asynchronous I/O in the win32 way is
* not possible as it's not supported on anonymous pipes
* (besides we have not opened the file ourselves so we
* cannot specify that we want async I/O...).
@@ -66,7 +66,7 @@ BOOL setup_pipe_stdin(void);
/*
* Initializes the module, returns TRUE if OK.
* If stdin is a console, no thread is created
- * and the event objet returned by get_Stdin_event
+ * and the event object returned by get_Stdin_event
* will be the console handle.
* Check if stdin was a console with the console_stdin()
* function.
diff --git a/lib/os_mon/c_src/win32sysinfo.c b/lib/os_mon/c_src/win32sysinfo.c
index 67b3f74910..aeb81b02a5 100644
--- a/lib/os_mon/c_src/win32sysinfo.c
+++ b/lib/os_mon/c_src/win32sysinfo.c
@@ -55,7 +55,7 @@
* get_disk_info 'd'Driveroot (where Driveroot is a string like this "A:\\"
* (request info of specific drive)
- * The result is returned with the same format as above exept that
+ * The result is returned with the same format as above except that
* Type will be DRIVE_NOT_EXIST if the drive does not exist.
*
* get_mem_info 'm' (request info about memory)
diff --git a/lib/os_mon/doc/src/notes.xml b/lib/os_mon/doc/src/notes.xml
index f510329619..263eadad85 100644
--- a/lib/os_mon/doc/src/notes.xml
+++ b/lib/os_mon/doc/src/notes.xml
@@ -698,7 +698,7 @@
<list>
<item>
<p>
- Memsup did not read memory correctly on MaxOSX
+ Memsup did not read memory correctly on macOS X
Snowleopard. This has now been corrected. (Thanks to Joel
Reymont)</p>
<p>
diff --git a/lib/os_mon/test/disksup_SUITE.erl b/lib/os_mon/test/disksup_SUITE.erl
index fe27ea9046..34726581cf 100644
--- a/lib/os_mon/test/disksup_SUITE.erl
+++ b/lib/os_mon/test/disksup_SUITE.erl
@@ -404,7 +404,7 @@ check_get_disk_data() ->
% filter get_disk_data and remove entriew with zero capacity
% "non-normal" filesystems report zero capacity
-% - Perhaps errorneous 'df -k -l'?
+% - Perhaps erroneous 'df -k -l'?
% - Always list filesystems by type '-t ufs,zfs,..' instead?
% It is unclear what the intention was from the beginning.
get_disk_data() ->
diff --git a/lib/os_mon/test/memsup_SUITE.erl b/lib/os_mon/test/memsup_SUITE.erl
index fcbfa26991..0232e55885 100644
--- a/lib/os_mon/test/memsup_SUITE.erl
+++ b/lib/os_mon/test/memsup_SUITE.erl
@@ -785,7 +785,7 @@ force_collection(TimerRef) ->
erlang:trace(whereis(memsup), false, ['receive']),
flush(),
collection_timeout;
- timout ->
+ timeout ->
erlang:trace(whereis(memsup), false, ['receive']),
flush(),
timeout;