File 1348-Fix-typos-in-lib-os_mon.patch of Package erlang

From 7ed77a7cdebc0a976138fb4690ad3f062ab10209 Mon Sep 17 00:00:00 2001
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
Date: Fri, 24 Dec 2021 14:47:32 +0800
Subject: [PATCH] Fix typos in lib/os_mon

---
 lib/os_mon/c_src/memsup.c                     | 4 ++--
 lib/os_mon/c_src/nteventlog/elog_format.h     | 2 +-
 lib/os_mon/c_src/nteventlog/elog_main.c       | 2 +-
 lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c | 2 +-
 lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h | 6 +++---
 lib/os_mon/c_src/win32sysinfo.c               | 2 +-
 lib/os_mon/doc/src/notes.xml                  | 2 +-
 lib/os_mon/test/disksup_SUITE.erl             | 2 +-
 lib/os_mon/test/memsup_SUITE.erl              | 2 +-
 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;
-- 
2.31.1

openSUSE Build Service is sponsored by