Re: [edk2-devel] [edk2-libc Patch 1/1] edk2-libc/StdLib: Fixed typo issues in multiple files

2023-11-24 Thread Jayaprakash, N
Reviewed-by : Jayaprakash Nevara 

-Original Message-
From: R, Vishal  
Sent: Friday, November 24, 2023 4:41 PM
To: devel@edk2.groups.io
Cc: R, Vishal ; Rebecca Cran ; Kinney, 
Michael D ; Jayaprakash, N 
Subject: [edk2-libc Patch 1/1] edk2-libc/StdLib: Fixed typo issues in multiple 
files

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4579

This commit fixes the various typo issues found in documentation strings in 
multiple files issue reported via the BZ4579 These changes are documentation 
updates only and does not affect the functionality of the code

Cc: Rebecca Cran 
Cc: Michael D Kinney 
Cc: Jayaprakash N 
Signed-off-by: Vishal R 
---
 StdLib/BsdSocketLib/ns_addr.c  |  4 ++--
 StdLib/BsdSocketLib/res_comp.c |  2 +-
 StdLib/BsdSocketLib/res_config.h   |  2 +-
 StdLib/BsdSocketLib/res_init.c |  2 +-
 StdLib/Include/arpa/telnet.h   |  2 +-
 StdLib/Include/errno.h |  2 +-
 StdLib/Include/locale.h|  2 +-
 StdLib/Include/net/if.h|  8 
 StdLib/Include/netns/ns.h  |  2 +-
 StdLib/Include/stdio.h |  2 +-
 StdLib/Include/stdlib.h|  6 +++---
 StdLib/Include/sys/termios.h   | 14 +++---
 StdLib/Include/sys/wait.h  |  2 +-
 StdLib/LibC/Main/Arm/flt_rounds.c  |  2 +-
 StdLib/LibC/StdLib/realpath.c  |  2 +-
 StdLib/LibC/Stdio/vfscanf.c|  2 +-
 StdLib/LibC/Uefi/InteractiveIO/TerminalFunctions.c |  8 
 StdLib/LibC/Uefi/SysCalls.c|  8 
 StdLib/LibC/Wchar/String.c |  2 +-
 StdLib/LibC/gdtoa/gdtoaimp.h   |  2 +-
 StdLib/PosixLib/Gen/dirname.c  |  2 +-
 21 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/StdLib/BsdSocketLib/ns_addr.c b/StdLib/BsdSocketLib/ns_addr.c 
index 4360b0c..36fe379 100644
--- a/StdLib/BsdSocketLib/ns_addr.c
+++ b/StdLib/BsdSocketLib/ns_addr.c
@@ -72,9 +72,9 @@ ns_addr(
 
   /*
* First, figure out what he intends as a field separtor.
-   * Despite the way this routine is written, the prefered
+   * Despite the way this routine is written, the preferred
* form  2-272.AA001234H.01777, i.e. XDE standard.
-   * Great efforts are made to insure backward compatability.
+   * Great efforts are made to insure backward compatibility.
*/
   if ((hostname = strchr(buf, '#')) != NULL)
 separator = '#';
diff --git a/StdLib/BsdSocketLib/res_comp.c b/StdLib/BsdSocketLib/res_comp.c 
index 7c327fa..8e52e32 100644
--- a/StdLib/BsdSocketLib/res_comp.c
+++ b/StdLib/BsdSocketLib/res_comp.c
@@ -108,7 +108,7 @@ static char rcsid[] = "$Id: res_comp.c,v 1.1.1.1 2003/11/19 
01:51:35 kyu3 Exp $"
 
 /*
  * Expand compressed domain name 'comp_dn' to full domain name.
- * 'msg' is a pointer to the begining of the message,
+ * 'msg' is a pointer to the beginning of the message,
  * 'eomorig' points to the first location after the message,
  * 'exp_dn' is a pointer to a buffer of size 'length' for the result.
  * Return size of compressed name or -1 if there was an error.
diff --git a/StdLib/BsdSocketLib/res_config.h b/StdLib/BsdSocketLib/res_config.h
index 4f4afdf..e3128e1 100644
--- a/StdLib/BsdSocketLib/res_config.h
+++ b/StdLib/BsdSocketLib/res_config.h
@@ -1,6 +1,6 @@
 #define DEBUG   1   /* enable debugging code (needed for dig) */
 #define RESOLVSORT  /* allow sorting of addresses in gethostbyname */
-#define RFC1535 /* comply with RFC1535 (STRONGLY reccomended by vixie)*/
+#define RFC1535 /* comply with RFC1535 (STRONGLY recommended by vixie)*/
 #undef  USELOOPBACK /* res_init() bind to localhost */  #undef  SUNSECURITY /* 
verify gethostbyaddr() calls - WE DONT NEED IT  */  #define 
MULTI_PTRS_ARE_ALIASES 1 /* fold multiple PTR records into aliases */ diff 
--git a/StdLib/BsdSocketLib/res_init.c b/StdLib/BsdSocketLib/res_init.c index 
9df7d4f..449cb17 100644
--- a/StdLib/BsdSocketLib/res_init.c
+++ b/StdLib/BsdSocketLib/res_init.c
@@ -134,7 +134,7 @@ struct __res_state _res
  * there will have precedence.  Otherwise, the server address is set to
  * INADDR_ANY and the default domain name comes from the gethostname().
  *
- * An interrim version of this code (BIND 4.9, pre-4.4BSD) used 127.0.0.1
+ * An interim version of this code (BIND 4.9, pre-4.4BSD) used 
+ 127.0.0.1
  * rather than INADDR_ANY ("0.0.0.0") as the default name server address
  * since it was noted that INADDR_ANY actually meant ``the first interface
  * you "ifconfig"'d at boot time'' and if this was a SLIP or PPP interface, 
diff --git a/StdLib/Include/arpa/telnet.h b/StdLib/Include/arpa/telnet.h index 
d7c8ecb..04c4a30 100644
--- a/StdLib/Include/arpa/telnet.h
+++ b/StdLib/Include/arpa/telnet.h
@@ -213,7 +213,7 @@ char *telo

[edk2-devel] [edk2-libc Patch 1/1] edk2-libc/StdLib: Fixed typo issues in multiple files

2023-11-24 Thread Vishal R
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4579

This commit fixes the various typo issues found in documentation strings
in multiple files issue reported via the BZ4579
These changes are documentation updates only and does not affect the
functionality of the code

Cc: Rebecca Cran 
Cc: Michael D Kinney 
Cc: Jayaprakash N 
Signed-off-by: Vishal R 
---
 StdLib/BsdSocketLib/ns_addr.c  |  4 ++--
 StdLib/BsdSocketLib/res_comp.c |  2 +-
 StdLib/BsdSocketLib/res_config.h   |  2 +-
 StdLib/BsdSocketLib/res_init.c |  2 +-
 StdLib/Include/arpa/telnet.h   |  2 +-
 StdLib/Include/errno.h |  2 +-
 StdLib/Include/locale.h|  2 +-
 StdLib/Include/net/if.h|  8 
 StdLib/Include/netns/ns.h  |  2 +-
 StdLib/Include/stdio.h |  2 +-
 StdLib/Include/stdlib.h|  6 +++---
 StdLib/Include/sys/termios.h   | 14 +++---
 StdLib/Include/sys/wait.h  |  2 +-
 StdLib/LibC/Main/Arm/flt_rounds.c  |  2 +-
 StdLib/LibC/StdLib/realpath.c  |  2 +-
 StdLib/LibC/Stdio/vfscanf.c|  2 +-
 StdLib/LibC/Uefi/InteractiveIO/TerminalFunctions.c |  8 
 StdLib/LibC/Uefi/SysCalls.c|  8 
 StdLib/LibC/Wchar/String.c |  2 +-
 StdLib/LibC/gdtoa/gdtoaimp.h   |  2 +-
 StdLib/PosixLib/Gen/dirname.c  |  2 +-
 21 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/StdLib/BsdSocketLib/ns_addr.c b/StdLib/BsdSocketLib/ns_addr.c
index 4360b0c..36fe379 100644
--- a/StdLib/BsdSocketLib/ns_addr.c
+++ b/StdLib/BsdSocketLib/ns_addr.c
@@ -72,9 +72,9 @@ ns_addr(
 
   /*
* First, figure out what he intends as a field separtor.
-   * Despite the way this routine is written, the prefered
+   * Despite the way this routine is written, the preferred
* form  2-272.AA001234H.01777, i.e. XDE standard.
-   * Great efforts are made to insure backward compatability.
+   * Great efforts are made to insure backward compatibility.
*/
   if ((hostname = strchr(buf, '#')) != NULL)
 separator = '#';
diff --git a/StdLib/BsdSocketLib/res_comp.c b/StdLib/BsdSocketLib/res_comp.c
index 7c327fa..8e52e32 100644
--- a/StdLib/BsdSocketLib/res_comp.c
+++ b/StdLib/BsdSocketLib/res_comp.c
@@ -108,7 +108,7 @@ static char rcsid[] = "$Id: res_comp.c,v 1.1.1.1 2003/11/19 
01:51:35 kyu3 Exp $"
 
 /*
  * Expand compressed domain name 'comp_dn' to full domain name.
- * 'msg' is a pointer to the begining of the message,
+ * 'msg' is a pointer to the beginning of the message,
  * 'eomorig' points to the first location after the message,
  * 'exp_dn' is a pointer to a buffer of size 'length' for the result.
  * Return size of compressed name or -1 if there was an error.
diff --git a/StdLib/BsdSocketLib/res_config.h b/StdLib/BsdSocketLib/res_config.h
index 4f4afdf..e3128e1 100644
--- a/StdLib/BsdSocketLib/res_config.h
+++ b/StdLib/BsdSocketLib/res_config.h
@@ -1,6 +1,6 @@
 #define DEBUG   1   /* enable debugging code (needed for dig) */
 #define RESOLVSORT  /* allow sorting of addresses in gethostbyname */
-#define RFC1535 /* comply with RFC1535 (STRONGLY reccomended by vixie)*/
+#define RFC1535 /* comply with RFC1535 (STRONGLY recommended by vixie)*/
 #undef  USELOOPBACK /* res_init() bind to localhost */
 #undef  SUNSECURITY /* verify gethostbyaddr() calls - WE DONT NEED IT  */
 #define MULTI_PTRS_ARE_ALIASES 1 /* fold multiple PTR records into aliases */
diff --git a/StdLib/BsdSocketLib/res_init.c b/StdLib/BsdSocketLib/res_init.c
index 9df7d4f..449cb17 100644
--- a/StdLib/BsdSocketLib/res_init.c
+++ b/StdLib/BsdSocketLib/res_init.c
@@ -134,7 +134,7 @@ struct __res_state _res
  * there will have precedence.  Otherwise, the server address is set to
  * INADDR_ANY and the default domain name comes from the gethostname().
  *
- * An interrim version of this code (BIND 4.9, pre-4.4BSD) used 127.0.0.1
+ * An interim version of this code (BIND 4.9, pre-4.4BSD) used 127.0.0.1
  * rather than INADDR_ANY ("0.0.0.0") as the default name server address
  * since it was noted that INADDR_ANY actually meant ``the first interface
  * you "ifconfig"'d at boot time'' and if this was a SLIP or PPP interface,
diff --git a/StdLib/Include/arpa/telnet.h b/StdLib/Include/arpa/telnet.h
index d7c8ecb..04c4a30 100644
--- a/StdLib/Include/arpa/telnet.h
+++ b/StdLib/Include/arpa/telnet.h
@@ -213,7 +213,7 @@ char *telopts[NTELOPTS+1] = {
 #defineNSLC30
 
 /*
- * For backwards compatability, we define SLC_NAMES to be the
+ * For backwards compatibility, we define SLC_NAMES to be the
  * list of names if SLC_NAMES is not defined.
  */
 #defineSLC_NAMELIST"0", "SYNCH", "BRK", "IP", "AO", "AYT", "E