File 0147-Fix-typos-in-lib-os_mon.patch of Package erlang (Revision 05e07e74e02c3c6851eb7fb2c2e0ef8b)
Currently displaying revision 05e07e74e02c3c6851eb7fb2c2e0ef8b , Show latest
161
1
From 7ed77a7cdebc0a976138fb4690ad3f062ab10209 Mon Sep 17 00:00:00 2001
2
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
3
Date: Fri, 24 Dec 2021 14:47:32 +0800
4
Subject: [PATCH] Fix typos in lib/os_mon
5
6
---
7
lib/os_mon/c_src/memsup.c | 4 ++--
8
lib/os_mon/c_src/nteventlog/elog_format.h | 2 +-
9
lib/os_mon/c_src/nteventlog/elog_main.c | 2 +-
10
lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c | 2 +-
11
lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h | 6 +++---
12
lib/os_mon/c_src/win32sysinfo.c | 2 +-
13
lib/os_mon/doc/src/notes.xml | 2 +-
14
lib/os_mon/test/disksup_SUITE.erl | 2 +-
15
lib/os_mon/test/memsup_SUITE.erl | 2 +-
16
9 files changed, 12 insertions(+), 12 deletions(-)
17
18
diff --git a/lib/os_mon/c_src/memsup.c b/lib/os_mon/c_src/memsup.c
19
index 7ea7456003..3cc13c905b 100644
20
--- a/lib/os_mon/c_src/memsup.c
21
+++ b/lib/os_mon/c_src/memsup.c
22
23
* This program communicates with Erlang through the standard
24
* input and output file descriptors (0 and 1). These descriptors
25
* (and the standard error descriptor 2) must NOT be closed
26
- * explicitely by this program at termination (in UNIX it is
27
+ * explicitly by this program at termination (in UNIX it is
28
* taken care of by the operating system itself; in VxWorks
29
* it is taken care of by the spawn driver part of the Emulator).
30
*
31
32
* PageTables: 9368 kB 2.5.41+
33
* VmallocTotal: 34359738367 kB ?? total size of vmalloc memory area
34
* VmallocUsed: 57376 kB ?? amount of vmalloc area which is used
35
- * VmallocChunk: 34359677947 kB ?? largest contigious block of vmalloc area which is free
36
+ * VmallocChunk: 34359677947 kB ?? largest contiguous block of vmalloc area which is free
37
* ReverseMaps: 5738 2.5.41+ number of rmap pte chains
38
* SwapCached: 0 kB 2.5.??+
39
* HugePages_Total: 0 2.5.??+
40
diff --git a/lib/os_mon/c_src/nteventlog/elog_format.h b/lib/os_mon/c_src/nteventlog/elog_format.h
41
index d92e2a81c3..9b9f3f77c1 100644
42
--- a/lib/os_mon/c_src/nteventlog/elog_format.h
43
+++ b/lib/os_mon/c_src/nteventlog/elog_format.h
44
45
* Formats an eventlog message with the messagefiles
46
* in mf, the ID id, the stringarray strings,
47
* containing numstrings strings into buff.
48
- * if bufflen is to small or anything else failes,
49
+ * if bufflen is to small or anything else fails,
50
* the return value is NULL.
51
*/
52
53
diff --git a/lib/os_mon/c_src/nteventlog/elog_main.c b/lib/os_mon/c_src/nteventlog/elog_main.c
54
index a7b59e516b..bed558f80f 100644
55
--- a/lib/os_mon/c_src/nteventlog/elog_main.c
56
+++ b/lib/os_mon/c_src/nteventlog/elog_main.c
57
58
* number and timestamp, and sends them to
59
* stdout. If timestamp does
60
* not correspond with record number, the
61
- * log is concidered wrapped around
62
+ * log is considered wrapped around
63
* and is reread from the beginning.
64
* time is ignored if 0.
65
* If record_number is 0, the whole log is read (if there is one).
66
diff --git a/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c b/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c
67
index 1920268af9..e61bb81920 100644
68
--- a/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c
69
+++ b/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.c
70
71
static int stdin_siz = 0;
72
static int stdin_len = 0;
73
static int stdin_eof = 0;
74
-/* end syncronized objects */
75
+/* end synchronized objects */
76
static int stdin_is_console = 0;
77
static HANDLE stdin_event;
78
79
diff --git a/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h b/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h
80
index b8f08bb412..239de5016c 100644
81
--- a/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h
82
+++ b/lib/os_mon/c_src/nteventlog/elog_pipe_stdin.h
83
84
/*
85
* Module: elog_pipe_stdin
86
* Purpouse: Read data from stdin when stdin is a pipe
87
- * and deliver events only when data is really availabel or
88
+ * and deliver events only when data is really available or
89
* end of file is reached.
90
* If we would wait on an ordinary pipe handle, we
91
* would return immediately as it's always "signaled".
92
- * some kind of asyncronous I/O in the win32 way is
93
+ * some kind of asynchronous I/O in the win32 way is
94
* not possible as it's not supported on anonymous pipes
95
* (besides we have not opened the file ourselves so we
96
* cannot specify that we want async I/O...).
97
98
/*
99
* Initializes the module, returns TRUE if OK.
100
* If stdin is a console, no thread is created
101
- * and the event objet returned by get_Stdin_event
102
+ * and the event object returned by get_Stdin_event
103
* will be the console handle.
104
* Check if stdin was a console with the console_stdin()
105
* function.
106
diff --git a/lib/os_mon/c_src/win32sysinfo.c b/lib/os_mon/c_src/win32sysinfo.c
107
index 67b3f74910..aeb81b02a5 100644
108
--- a/lib/os_mon/c_src/win32sysinfo.c
109
+++ b/lib/os_mon/c_src/win32sysinfo.c
110
111
112
* get_disk_info 'd'Driveroot (where Driveroot is a string like this "A:\\"
113
* (request info of specific drive)
114
- * The result is returned with the same format as above exept that
115
+ * The result is returned with the same format as above except that
116
* Type will be DRIVE_NOT_EXIST if the drive does not exist.
117
*
118
* get_mem_info 'm' (request info about memory)
119
diff --git a/lib/os_mon/doc/src/notes.xml b/lib/os_mon/doc/src/notes.xml
120
index f510329619..263eadad85 100644
121
--- a/lib/os_mon/doc/src/notes.xml
122
+++ b/lib/os_mon/doc/src/notes.xml
123
124
<list>
125
<item>
126
<p>
127
- Memsup did not read memory correctly on MaxOSX
128
+ Memsup did not read memory correctly on macOS X
129
Snowleopard. This has now been corrected. (Thanks to Joel
130
Reymont)</p>
131
<p>
132
diff --git a/lib/os_mon/test/disksup_SUITE.erl b/lib/os_mon/test/disksup_SUITE.erl
133
index fe27ea9046..34726581cf 100644
134
--- a/lib/os_mon/test/disksup_SUITE.erl
135
+++ b/lib/os_mon/test/disksup_SUITE.erl
136
137
138
% filter get_disk_data and remove entriew with zero capacity
139
% "non-normal" filesystems report zero capacity
140
-% - Perhaps errorneous 'df -k -l'?
141
+% - Perhaps erroneous 'df -k -l'?
142
% - Always list filesystems by type '-t ufs,zfs,..' instead?
143
% It is unclear what the intention was from the beginning.
144
get_disk_data() ->
145
diff --git a/lib/os_mon/test/memsup_SUITE.erl b/lib/os_mon/test/memsup_SUITE.erl
146
index fcbfa26991..0232e55885 100644
147
--- a/lib/os_mon/test/memsup_SUITE.erl
148
+++ b/lib/os_mon/test/memsup_SUITE.erl
149
150
erlang:trace(whereis(memsup), false, ['receive']),
151
flush(),
152
collection_timeout;
153
- timout ->
154
+ timeout ->
155
erlang:trace(whereis(memsup), false, ['receive']),
156
flush(),
157
timeout;
158
--
159
2.31.1
160
161