1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Fix spelling and grammar in several comments

This commit is contained in:
Jonny Grant
2020-12-12 01:16:22 +01:00
committed by Arjun Shankar
parent 0e00b35704
commit 2ea6af7447
5 changed files with 11 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* Hierarchial argument parsing, layered over getopt. /* Hierarchical argument parsing, layered over getopt.
Copyright (C) 1995-2020 Free Software Foundation, Inc. Copyright (C) 1995-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Written by Miles Bader <miles@gnu.ai.mit.edu>. Written by Miles Bader <miles@gnu.ai.mit.edu>.
@ -233,7 +233,7 @@ struct argp
}; };
/* Possible KEY arguments to a help filter function. */ /* Possible KEY arguments to a help filter function. */
#define ARGP_KEY_HELP_PRE_DOC 0x2000001 /* Help text preceeding options. */ #define ARGP_KEY_HELP_PRE_DOC 0x2000001 /* Help text preceding options. */
#define ARGP_KEY_HELP_POST_DOC 0x2000002 /* Help text following options. */ #define ARGP_KEY_HELP_POST_DOC 0x2000002 /* Help text following options. */
#define ARGP_KEY_HELP_HEADER 0x2000003 /* Option header string. */ #define ARGP_KEY_HELP_HEADER 0x2000003 /* Option header string. */
#define ARGP_KEY_HELP_EXTRA 0x2000004 /* After all other documentation; #define ARGP_KEY_HELP_EXTRA 0x2000004 /* After all other documentation;
@ -447,7 +447,7 @@ extern void __argp_help (const struct argp *__restrict __argp,
parsing routine (thus taking an argp_state structure as the first parsing routine (thus taking an argp_state structure as the first
argument). They may or may not print an error message and exit, depending argument). They may or may not print an error message and exit, depending
on the flags in STATE -- in any case, the caller should be prepared for on the flags in STATE -- in any case, the caller should be prepared for
them *not* to exit, and should return an appropiate error after calling them *not* to exit, and should return an appropriate error after calling
them. [argp_usage & argp_error should probably be called argp_state_..., them. [argp_usage & argp_error should probably be called argp_state_...,
but they're used often enough that they should be short] */ but they're used often enough that they should be short] */

View File

@ -25,7 +25,7 @@
__BEGIN_DECLS __BEGIN_DECLS
/* Structure to represent one entry of the alias data base. */ /* Structure to represent one entry of the alias database. */
struct aliasent struct aliasent
{ {
char *alias_name; char *alias_name;
@ -38,13 +38,13 @@ struct aliasent
/* Open alias data base files. */ /* Open alias data base files. */
extern void setaliasent (void) __THROW; extern void setaliasent (void) __THROW;
/* Close alias data base files. */ /* Close alias database files. */
extern void endaliasent (void) __THROW; extern void endaliasent (void) __THROW;
/* Get the next entry from the alias data base. */ /* Get the next entry from the alias database. */
extern struct aliasent *getaliasent (void) __THROW; extern struct aliasent *getaliasent (void) __THROW;
/* Get the next entry from the alias data base and put it in RESULT_BUF. */ /* Get the next entry from the alias database and put it in RESULT_BUF. */
extern int getaliasent_r (struct aliasent *__restrict __result_buf, extern int getaliasent_r (struct aliasent *__restrict __result_buf,
char *__restrict __buffer, size_t __buflen, char *__restrict __buffer, size_t __buflen,
struct aliasent **__restrict __result) __THROW; struct aliasent **__restrict __result) __THROW;

View File

@ -25,7 +25,7 @@
/* The GNU libc does not support any K&R compilers or the traditional mode /* The GNU libc does not support any K&R compilers or the traditional mode
of ISO C compilers anymore. Check for some of the combinations not of ISO C compilers anymore. Check for some of the combinations not
anymore supported. */ supported anymore. */
#if defined __GNUC__ && !defined __STDC__ #if defined __GNUC__ && !defined __STDC__
# error "You need a ISO C conforming compiler to use the glibc headers" # error "You need a ISO C conforming compiler to use the glibc headers"
#endif #endif
@ -47,7 +47,7 @@
# endif # endif
/* GCC can always grok prototypes. For C++ programs we add throw() /* GCC can always grok prototypes. For C++ programs we add throw()
to help it optimize the function calls. But this works only with to help it optimize the function calls. But this only works with
gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
as non-throwing using a function attribute since programs can use as non-throwing using a function attribute since programs can use
the -fexceptions options for C code as well. */ the -fexceptions options for C code as well. */

View File

@ -25,7 +25,7 @@
__BEGIN_DECLS __BEGIN_DECLS
/* Remove any previous definitions. */ /* Remove any previous definition. */
#undef alloca #undef alloca
/* Allocate a block that will be freed when the calling function exits. */ /* Allocate a block that will be freed when the calling function exits. */

View File

@ -56,7 +56,6 @@ struct ether_header
#define ETHERTYPE_IPV6 0x86dd /* IP protocol version 6 */ #define ETHERTYPE_IPV6 0x86dd /* IP protocol version 6 */
#define ETHERTYPE_LOOPBACK 0x9000 /* used to test interfaces */ #define ETHERTYPE_LOOPBACK 0x9000 /* used to test interfaces */
#define ETHER_ADDR_LEN ETH_ALEN /* size of ethernet addr */ #define ETHER_ADDR_LEN ETH_ALEN /* size of ethernet addr */
#define ETHER_TYPE_LEN 2 /* bytes in type field */ #define ETHER_TYPE_LEN 2 /* bytes in type field */
#define ETHER_CRC_LEN 4 /* bytes in CRC field */ #define ETHER_CRC_LEN 4 /* bytes in CRC field */
@ -64,7 +63,7 @@ struct ether_header
#define ETHER_MIN_LEN (ETH_ZLEN + ETHER_CRC_LEN) /* min packet length */ #define ETHER_MIN_LEN (ETH_ZLEN + ETHER_CRC_LEN) /* min packet length */
#define ETHER_MAX_LEN (ETH_FRAME_LEN + ETHER_CRC_LEN) /* max packet length */ #define ETHER_MAX_LEN (ETH_FRAME_LEN + ETHER_CRC_LEN) /* max packet length */
/* make sure ethenet length is valid */ /* make sure ethernet length is valid */
#define ETHER_IS_VALID_LEN(foo) \ #define ETHER_IS_VALID_LEN(foo) \
((foo) >= ETHER_MIN_LEN && (foo) <= ETHER_MAX_LEN) ((foo) >= ETHER_MIN_LEN && (foo) <= ETHER_MAX_LEN)