diff options
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/arpa/nameser_compat.h | 4 | ||||
-rw-r--r-- | resolv/bits/types/res_state.h | 2 | ||||
-rw-r--r-- | resolv/gai_misc.c | 4 | ||||
-rw-r--r-- | resolv/gai_misc.h | 2 | ||||
-rw-r--r-- | resolv/inet_net_pton.c | 2 | ||||
-rw-r--r-- | resolv/inet_pton.c | 2 | ||||
-rw-r--r-- | resolv/ns_print.c | 2 | ||||
-rw-r--r-- | resolv/ns_rr_cursor_next.c | 2 | ||||
-rw-r--r-- | resolv/nss_dns/dns-host.c | 6 | ||||
-rw-r--r-- | resolv/res-noaaaa.c | 2 | ||||
-rw-r--r-- | resolv/resolv-internal.h | 2 | ||||
-rw-r--r-- | resolv/resolv.h | 2 | ||||
-rw-r--r-- | resolv/resolv_conf.c | 6 | ||||
-rw-r--r-- | resolv/resolv_context.c | 2 | ||||
-rw-r--r-- | resolv/resolv_context.h | 2 | ||||
-rw-r--r-- | resolv/tst-resolv-canonname.c | 2 | ||||
-rw-r--r-- | resolv/tst-resolv-edns.c | 2 | ||||
-rw-r--r-- | resolv/tst-resolv-qtypes.c | 2 | ||||
-rw-r--r-- | resolv/tst-resolv-res_init-skeleton.c | 4 | ||||
-rw-r--r-- | resolv/tst-resolv-res_ninit.c | 4 |
20 files changed, 28 insertions, 28 deletions
diff --git a/resolv/arpa/nameser_compat.h b/resolv/arpa/nameser_compat.h index f1c390f3b9..f929661250 100644 --- a/resolv/arpa/nameser_compat.h +++ b/resolv/arpa/nameser_compat.h @@ -44,7 +44,7 @@ typedef struct { /* fields in third byte */ unsigned qr: 1; /*%< response flag */ unsigned opcode: 4; /*%< purpose of message */ - unsigned aa: 1; /*%< authoritive answer */ + unsigned aa: 1; /*%< authoritative answer */ unsigned tc: 1; /*%< truncated message */ unsigned rd: 1; /*%< recursion desired */ /* fields in fourth byte */ @@ -58,7 +58,7 @@ typedef struct { /* fields in third byte */ unsigned rd :1; /*%< recursion desired */ unsigned tc :1; /*%< truncated message */ - unsigned aa :1; /*%< authoritive answer */ + unsigned aa :1; /*%< authoritative answer */ unsigned opcode :4; /*%< purpose of message */ unsigned qr :1; /*%< response flag */ /* fields in fourth byte */ diff --git a/resolv/bits/types/res_state.h b/resolv/bits/types/res_state.h index 2544a627f6..79e079c5c9 100644 --- a/resolv/bits/types/res_state.h +++ b/resolv/bits/types/res_state.h @@ -11,7 +11,7 @@ #define MAXRESOLVSORT 10 /* number of net to sort on */ struct __res_state { - int retrans; /* retransmition time interval */ + int retrans; /* retransmission time interval */ int retry; /* number of times to retransmit */ unsigned long options; /* option flags - see below. */ int nscount; /* number of name servers */ diff --git a/resolv/gai_misc.c b/resolv/gai_misc.c index 9e3b1d29b7..d02bd7ed23 100644 --- a/resolv/gai_misc.c +++ b/resolv/gai_misc.c @@ -85,11 +85,11 @@ static int idle_thread_count; /* These are the values used for optimization. We will probably - create a funcion to set these values. */ + create a function to set these values. */ static struct gaiinit optim = { 20, /* int gai_threads; Maximal number of threads. */ - 64, /* int gai_num; Number of expected simultanious requests. */ + 64, /* int gai_num; Number of expected simultaneous requests. */ 0, 0, 0, diff --git a/resolv/gai_misc.h b/resolv/gai_misc.h index 439bed361d..1e245a509c 100644 --- a/resolv/gai_misc.h +++ b/resolv/gai_misc.h @@ -58,7 +58,7 @@ struct requestlist struct gaiinit { int gai_threads; /* Maximal number of threads. */ - int gai_num; /* Number of expected simultanious requests. */ + int gai_num; /* Number of expected simultaneous requests. */ int gai_locks; /* Not used. */ int gai_usedba; /* Not used. */ int gai_debug; /* Not used. */ diff --git a/resolv/inet_net_pton.c b/resolv/inet_net_pton.c index aab9b7b582..63a47b7394 100644 --- a/resolv/inet_net_pton.c +++ b/resolv/inet_net_pton.c @@ -157,7 +157,7 @@ inet_net_pton_ipv4 (const char *src, u_char *dst, size_t size) goto emsgsize; } - /* Firey death and destruction unless we prefetched EOS. */ + /* Fiery death and destruction unless we prefetched EOS. */ if (ch != '\0') goto enoent; diff --git a/resolv/inet_pton.c b/resolv/inet_pton.c index fae52145cc..e84a83499c 100644 --- a/resolv/inet_pton.c +++ b/resolv/inet_pton.c @@ -121,7 +121,7 @@ inet_pton4 (const char *src, const char *end, unsigned char *dst) return 1; } -/* Return the value of CH as a hexademical digit, or -1 if it is a +/* Return the value of CH as a hexadecimal digit, or -1 if it is a different type of character. */ static int hex_digit_value (char ch) diff --git a/resolv/ns_print.c b/resolv/ns_print.c index 43f39edf61..cef2212fd2 100644 --- a/resolv/ns_print.c +++ b/resolv/ns_print.c @@ -491,7 +491,7 @@ ns_sprintrrf(const u_char *msg, size_t msglen, len = SPRINTF((tmp, "%lu ", t)); T(addstr(tmp, len, &buf, &buflen)); - /* Experation. */ + /* Expiration. */ t = ns_get32(rdata); rdata += NS_INT32SZ; len = SPRINTF((tmp, "%lu ", t)); T(addstr(tmp, len, &buf, &buflen)); diff --git a/resolv/ns_rr_cursor_next.c b/resolv/ns_rr_cursor_next.c index 5a188a3604..09f74d4c8a 100644 --- a/resolv/ns_rr_cursor_next.c +++ b/resolv/ns_rr_cursor_next.c @@ -54,7 +54,7 @@ __ns_rr_cursor_next (struct ns_rr_cursor *c, struct ns_rr_wire *rr) } memcpy (&metadata, c->current, sizeof (metadata)); c->current += sizeof (metadata); - /* Endianess conversion. */ + /* Endianness conversion. */ rr->rtype = ntohs (metadata.rtype); rr->rclass = ntohs (metadata.rclass); rr->ttl = ntohl (metadata.ttl); diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c index ae1f8669d5..1d60c51f5e 100644 --- a/resolv/nss_dns/dns-host.c +++ b/resolv/nss_dns/dns-host.c @@ -715,7 +715,7 @@ getanswer_r (unsigned char *packet, size_t packetlen, uint16_t qtype, if (!__ns_rr_cursor_init (&c, packet, packetlen)) { /* This should not happen because __res_context_query already - perfroms response validation. */ + performs response validation. */ *h_errnop = NO_RECOVERY; return NSS_STATUS_UNAVAIL; } @@ -811,7 +811,7 @@ getanswer_ptr (unsigned char *packet, size_t packetlen, if (!__ns_rr_cursor_init (&c, packet, packetlen)) { /* This should not happen because __res_context_query already - perfroms response validation. */ + performs response validation. */ *h_errnop = NO_RECOVERY; return NSS_STATUS_UNAVAIL; } @@ -906,7 +906,7 @@ gaih_getanswer_slice (unsigned char *packet, size_t packetlen, if (!__ns_rr_cursor_init (&c, packet, packetlen)) { /* This should not happen because __res_context_query already - perfroms response validation. */ + performs response validation. */ *h_errnop = NO_RECOVERY; return NSS_STATUS_UNAVAIL; } diff --git a/resolv/res-noaaaa.c b/resolv/res-noaaaa.c index b079ad77ca..26ffcc63a1 100644 --- a/resolv/res-noaaaa.c +++ b/resolv/res-noaaaa.c @@ -33,7 +33,7 @@ qtype_matches (const unsigned char *p, int expected) } /* Handle RES_NOAAAA translation of AAAA queries. To produce a Name - Error (NXDOMAIN) repsonse for domain names that do not exist, it is + Error (NXDOMAIN) response for domain names that do not exist, it is still necessary to send a query. Using question type A is a conservative choice. In the returned answer, it is necessary to switch back the question type to AAAA. */ diff --git a/resolv/resolv-internal.h b/resolv/resolv-internal.h index c55f3c0366..2b98ac4920 100644 --- a/resolv/resolv-internal.h +++ b/resolv/resolv-internal.h @@ -58,7 +58,7 @@ res_use_inet6 (void) enum { - /* The advertized EDNS buffer size. The value 1200 is derived + /* The advertised EDNS buffer size. The value 1200 is derived from the IPv6 minimum MTU (1280 bytes) minus some arbitrary space for tunneling overhead. If the DNS server does not react to ICMP Fragmentation Needed But DF Set messages, this should diff --git a/resolv/resolv.h b/resolv/resolv.h index 3a79ffea57..f40d6c58ce 100644 --- a/resolv/resolv.h +++ b/resolv/resolv.h @@ -87,7 +87,7 @@ /* * Resolver configuration file. * Normally not present, but may contain the address of the - * inital name server(s) to query and the domain search list. + * initial name server(s) to query and the domain search list. */ #ifndef _PATH_RESCONF diff --git a/resolv/resolv_conf.c b/resolv/resolv_conf.c index 0ef66d49d3..bd5890773b 100644 --- a/resolv/resolv_conf.c +++ b/resolv/resolv_conf.c @@ -81,7 +81,7 @@ static struct resolv_conf_global *global; __libc_lock_define_initialized (static, lock); /* Ensure that GLOBAL is allocated and lock it. Return NULL if - memory allocation failes. */ + memory allocation fails. */ static struct resolv_conf_global * get_locked_global (void) { @@ -174,7 +174,7 @@ __resolv_conf_get_current (void) static struct resolv_conf * resolv_conf_get_1 (const struct __res_state *resp) { - /* Not initialized, and therefore no assoicated context. */ + /* Not initialized, and therefore no associated context. */ if (!(resp->options & RES_INIT)) return NULL; @@ -243,7 +243,7 @@ resolv_conf_matches (const struct __res_state *resp, const struct resolv_conf *conf) { /* NB: Do not compare the options, retrans, retry, ndots. These can - be changed by applicaiton. */ + be changed by application. */ /* Check that the name servers in *RESP have not been modified by the application. */ diff --git a/resolv/resolv_context.c b/resolv/resolv_context.c index aeb415b6d4..7bf7ce9df4 100644 --- a/resolv/resolv_context.c +++ b/resolv/resolv_context.c @@ -52,7 +52,7 @@ static __thread struct resolv_context *current attribute_tls_model_ie; /* The resolv_conf handling will gives us a ctx->conf pointer even if - these fields do not match because a mis-match does not cause a loss + these fields do not match because a mismatch does not cause a loss of state (_res objects can store the full information). This function checks to ensure that there is a full patch, to prevent overwriting a patched configuration. */ diff --git a/resolv/resolv_context.h b/resolv/resolv_context.h index c5d51a12a4..020b9bd775 100644 --- a/resolv/resolv_context.h +++ b/resolv/resolv_context.h @@ -78,7 +78,7 @@ void __resolv_context_put (struct resolv_context *ctx); libc_hidden_proto (__resolv_context_put) /* Like __resolv_context_get, but the _res structure can be partially - initialzed and those changes will not be overwritten. */ + initialized and those changes will not be overwritten. */ struct resolv_context *__resolv_context_get_preinit (void) __attribute__ ((warn_unused_result)); libc_hidden_proto (__resolv_context_get_preinit) diff --git a/resolv/tst-resolv-canonname.c b/resolv/tst-resolv-canonname.c index 2a28193c37..33bab6638d 100644 --- a/resolv/tst-resolv-canonname.c +++ b/resolv/tst-resolv-canonname.c @@ -153,7 +153,7 @@ response (const struct resolv_response_context *ctx, } break; case 103: - /* NODATA repsonse. */ + /* NODATA response. */ resolv_response_init (b, (struct resolv_response_flags) {}); resolv_response_add_question (b, qname, qclass, qtype); break; diff --git a/resolv/tst-resolv-edns.c b/resolv/tst-resolv-edns.c index a2245de948..6e0072b541 100644 --- a/resolv/tst-resolv-edns.c +++ b/resolv/tst-resolv-edns.c @@ -40,7 +40,7 @@ struct response_data response data. The test DNS server returns the index of the array element which contains the actual response data. This enables the test case to return arbitrary amounts of data with the limited - number of bits which fit into an IP addres. + number of bits which fit into an IP address. The volatile specifier is needed because the test case accesses these variables from a callback function called from a function diff --git a/resolv/tst-resolv-qtypes.c b/resolv/tst-resolv-qtypes.c index dee273c5cc..6c1ef3f7ec 100644 --- a/resolv/tst-resolv-qtypes.c +++ b/resolv/tst-resolv-qtypes.c @@ -25,7 +25,7 @@ #include <support/test-driver.h> #include <support/xmemstream.h> -/* If ture, the response function will send the actual response packet +/* If true, the response function will send the actual response packet over TCP instead of UDP. */ static volatile bool force_tcp; diff --git a/resolv/tst-resolv-res_init-skeleton.c b/resolv/tst-resolv-res_init-skeleton.c index 24d980071e..cbdf377b84 100644 --- a/resolv/tst-resolv-res_init-skeleton.c +++ b/resolv/tst-resolv-res_init-skeleton.c @@ -1,4 +1,4 @@ -/* Test parsing of /etc/resolv.conf. Genric version. +/* Test parsing of /etc/resolv.conf. Generic version. Copyright (C) 2017-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -669,7 +669,7 @@ struct test_case test_cases[] = "; nameserver[0]: [192.0.2.1]:53\n" "; nameserver[1]: [192.0.2.3]:53\n" }, - {.name = "RES_OPTIONS is cummulative", + {.name = "RES_OPTIONS is cumulative", .conf = "options timeout:7 ndots:2 use-vc\n" "nameserver 192.0.2.1\n", .expected = "options ndots:3 timeout:7 attempts:5 use-vc edns0\n" diff --git a/resolv/tst-resolv-res_ninit.c b/resolv/tst-resolv-res_ninit.c index e539828319..a274b5bf3a 100644 --- a/resolv/tst-resolv-res_ninit.c +++ b/resolv/tst-resolv-res_ninit.c @@ -55,8 +55,8 @@ do_test (void) TEST_VERIFY (conf != NULL); } else - /* The underyling configuration should be identical across all - res_state opjects because resolv.conf did not change. */ + /* The underlying configuration should be identical across all + res_state objects because resolv.conf did not change. */ TEST_VERIFY (ctx->conf == conf); } qsort (array, count, sizeof (*array), sort_res_state); |