mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
Spelling fixes for libexec/
This commit is contained in:
parent
b07e9f3fac
commit
1acf0dba17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229780
@ -663,7 +663,7 @@ ignoring request for server %s from client at %s address %s",
|
||||
bp->bp_op = BOOTREPLY;
|
||||
if (bp->bp_ciaddr.s_addr == 0) {
|
||||
/*
|
||||
* client doesnt know his IP address,
|
||||
* client doesn't know his IP address,
|
||||
* search by hardware address.
|
||||
*/
|
||||
if (debug > 1) {
|
||||
@ -1119,7 +1119,7 @@ sendreply(forward, dst_override)
|
||||
|
||||
/*
|
||||
* This call checks read access to a file. It returns 0 if the file given
|
||||
* by "path" exists and is publically readable. A value of -1 is returned if
|
||||
* by "path" exists and is publicly readable. A value of -1 is returned if
|
||||
* access is not permitted or an error occurs. Successful calls also
|
||||
* return the file size in bytes using the long pointer "filesize".
|
||||
*
|
||||
|
@ -534,7 +534,7 @@ handle_request()
|
||||
/* Has this packet hopped too many times? */
|
||||
hops = bp->bp_hops;
|
||||
if (++hops > maxhops) {
|
||||
report(LOG_NOTICE, "reqest from %s reached hop limit",
|
||||
report(LOG_NOTICE, "request from %s reached hop limit",
|
||||
inet_ntoa(recv_addr.sin_addr));
|
||||
return;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ SOFTWARE.
|
||||
*
|
||||
* A generalized hash function, hash_HashFunction(), is included
|
||||
* with this package to make things a little easier. It is not
|
||||
* guarenteed to use the best hash algorithm in existence. . . .
|
||||
* guaranteed to use the best hash algorithm in existence. . . .
|
||||
*/
|
||||
|
||||
|
||||
|
@ -186,7 +186,7 @@ main(argc, argv)
|
||||
break;
|
||||
switch (argv[0][1]) {
|
||||
|
||||
case 'f': /* File name to reqest. */
|
||||
case 'f': /* File name to request. */
|
||||
if (argc < 2)
|
||||
goto error;
|
||||
argc--; argv++;
|
||||
|
@ -187,7 +187,7 @@ bootp_print(bp, length, sport, dport)
|
||||
|
||||
/*
|
||||
* Option description data follows.
|
||||
* These are decribed in: RFC-1048, RFC-1395, RFC-1497, RFC-1533
|
||||
* These are described in: RFC-1048, RFC-1395, RFC-1497, RFC-1533
|
||||
*
|
||||
* The first char of each option string encodes the data format:
|
||||
* ?: unknown
|
||||
|
@ -1718,7 +1718,7 @@ exptilde(char *s)
|
||||
* Avoid expanding to a pathname including '\r' or '\n' in order to
|
||||
* not disrupt the FTP protocol.
|
||||
* The expansion found must be unique.
|
||||
* Return the result as a malloced string, or NULL if an error occured.
|
||||
* Return the result as a malloced string, or NULL if an error occurred.
|
||||
*
|
||||
* Problem: this production is used for all pathname
|
||||
* processing, but only gives a 550 error reply.
|
||||
|
@ -64,7 +64,7 @@ struct gettystrs gettystrs[] = {
|
||||
{ "et", &omode.c_cc[VEOF] }, /* eof chatacter (eot) */
|
||||
{ "pc", nullstr }, /* pad character */
|
||||
{ "tt" }, /* terminal type */
|
||||
{ "ev" }, /* enviroment */
|
||||
{ "ev" }, /* environment */
|
||||
{ "lo", loginprg }, /* login program */
|
||||
{ "hn", hostname }, /* host name */
|
||||
{ "he" }, /* host name edit */
|
||||
|
@ -10,7 +10,7 @@ pidfile(const char *basename)
|
||||
pid_t otherpid, childpid;
|
||||
|
||||
if (basename != NULL) {
|
||||
errx(EX_USAGE, "Need to impliment NetBSD semantics.");
|
||||
errx(EX_USAGE, "Need to implement NetBSD semantics.");
|
||||
}
|
||||
|
||||
pfh = pidfile_open(basename, 0644, &otherpid);
|
||||
|
@ -145,7 +145,7 @@ ParseConfig(void)
|
||||
*/
|
||||
if ((addr = ParseAddr(bcp)) == NULL) {
|
||||
syslog(LOG_ERR,
|
||||
"ParseConfig: line %d: cant parse <%s>",
|
||||
"ParseConfig: line %d: can't parse <%s>",
|
||||
linecnt, bcp);
|
||||
continue;
|
||||
}
|
||||
@ -193,7 +193,7 @@ ParseConfig(void)
|
||||
/*
|
||||
* Restricted list of boot files were spec'd,
|
||||
* however, none of them were found. Since we
|
||||
* apparently cant let them boot "just anything",
|
||||
* apparently can't let them boot "just anything",
|
||||
* the entire record is invalidated.
|
||||
*/
|
||||
if (i == 0) {
|
||||
@ -355,7 +355,7 @@ GetBootFiles(void)
|
||||
|
||||
(void) closedir(dfd); /* close BootDir */
|
||||
|
||||
if (i == 0) /* cant find any boot files */
|
||||
if (i == 0) /* can't find any boot files */
|
||||
syslog(LOG_ERR, "GetBootFiles: no boot files (%s)\n", BootDir);
|
||||
|
||||
return(i);
|
||||
|
@ -231,7 +231,7 @@ main(int argc, char *argv[])
|
||||
|
||||
r = rset;
|
||||
|
||||
if (RmpConns == NULL) { /* timeout isnt necessary */
|
||||
if (RmpConns == NULL) { /* timeout isn't necessary */
|
||||
nsel = select(maxfds, &r, NULL, NULL, NULL);
|
||||
} else {
|
||||
timeout.tv_sec = RMP_TIMEOUT;
|
||||
|
@ -401,7 +401,7 @@ SendReadRepl(RMPCONN *rconn)
|
||||
int madeconn = 0;
|
||||
|
||||
/*
|
||||
* Find the old connection. If one doesnt exist, create one only
|
||||
* Find the old connection. If one doesn't exist, create one only
|
||||
* to return the error code.
|
||||
*/
|
||||
if ((oldconn = FindConn(rconn)) == NULL) {
|
||||
@ -515,7 +515,7 @@ BootDone(RMPCONN *rconn)
|
||||
struct rmp_packet *rpl;
|
||||
|
||||
/*
|
||||
* If we cant find the connection, ignore the request.
|
||||
* If we can't find the connection, ignore the request.
|
||||
*/
|
||||
if ((oldconn = FindConn(rconn)) == NULL) {
|
||||
syslog(LOG_ERR, "BootDone: no existing connection (%s)",
|
||||
|
@ -199,8 +199,8 @@ parse_netgrp(char *group)
|
||||
if (lp->l_parsed) {
|
||||
#ifdef DEBUG
|
||||
/*
|
||||
* This error message is largely superflous since the
|
||||
* code handles the error condition sucessfully, and
|
||||
* This error message is largely superfluous since the
|
||||
* code handles the error condition successfully, and
|
||||
* spewing it out from inside libc can actually hose
|
||||
* certain programs.
|
||||
*/
|
||||
|
@ -148,7 +148,7 @@ by
|
||||
The options are as follows:
|
||||
.Bl -tag -width indent
|
||||
.It Fl a
|
||||
This flag is ignored, and is present for compatability purposes.
|
||||
This flag is ignored, and is present for compatibility purposes.
|
||||
.It Fl D
|
||||
Sets the TCP_NODELAY socket option, which improves the performance
|
||||
of small back-to-back writes at the expense of additional network
|
||||
|
@ -159,7 +159,7 @@ cmpndewey(int d1[], int n1, int d2[], int n2)
|
||||
if (i == n2)
|
||||
return 1;
|
||||
|
||||
errx(1, "cmpndewey: cant happen");
|
||||
errx(1, "cmpndewey: can't happen");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -358,7 +358,7 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, RtldLockState *lockstate)
|
||||
def = find_symdef(i, obj, &defobj, false, NULL,
|
||||
lockstate);
|
||||
if (def == NULL) {
|
||||
dbg("Warning4, cant find symbole %d", i);
|
||||
dbg("Warning4, can't find symbole %d", i);
|
||||
return -1;
|
||||
}
|
||||
*got = def->st_value + (Elf_Addr)defobj->relocbase;
|
||||
|
@ -238,7 +238,7 @@ typedef struct Struct_Obj_Entry {
|
||||
Objlist dagmembers; /* DAG has these members (%) */
|
||||
dev_t dev; /* Object's filesystem's device */
|
||||
ino_t ino; /* Object's inode number */
|
||||
void *priv; /* Platform-dependant */
|
||||
void *priv; /* Platform-dependent */
|
||||
} Obj_Entry;
|
||||
|
||||
#define RTLD_MAGIC 0xd550b87a
|
||||
|
@ -623,7 +623,7 @@ reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *obj,
|
||||
flush(where, 4);
|
||||
} else if (target >= 0 && target < (1L<<32)) {
|
||||
/*
|
||||
* We're withing 32-bits of address zero.
|
||||
* We're within 32-bits of address zero.
|
||||
*
|
||||
* The resulting code in the jump slot is:
|
||||
*
|
||||
@ -643,7 +643,7 @@ reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *obj,
|
||||
flush(where, 4);
|
||||
} else if (target <= 0 && target > -(1L<<32)) {
|
||||
/*
|
||||
* We're withing 32-bits of address -1.
|
||||
* We're within 32-bits of address -1.
|
||||
*
|
||||
* The resulting code in the jump slot is:
|
||||
*
|
||||
@ -665,7 +665,7 @@ reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *obj,
|
||||
flush(where, 4);
|
||||
} else if (offset <= (1L<<32) && offset >= -((1L<<32) - 4)) {
|
||||
/*
|
||||
* We're withing 32-bits -- we can use a direct call
|
||||
* We're within 32-bits -- we can use a direct call
|
||||
* insn
|
||||
*
|
||||
* The resulting code in the jump slot is:
|
||||
@ -688,7 +688,7 @@ reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *obj,
|
||||
flush(where, 4);
|
||||
} else if (offset >= 0 && offset < (1L<<44)) {
|
||||
/*
|
||||
* We're withing 44 bits. We can generate this
|
||||
* We're within 44 bits. We can generate this
|
||||
* pattern:
|
||||
*
|
||||
* The resulting code in the jump slot is:
|
||||
@ -713,7 +713,7 @@ reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *obj,
|
||||
flush(where, 4);
|
||||
} else if (offset < 0 && offset > -(1L<<44)) {
|
||||
/*
|
||||
* We're withing 44 bits. We can generate this
|
||||
* We're within 44 bits. We can generate this
|
||||
* pattern:
|
||||
*
|
||||
* The resulting code in the jump slot is:
|
||||
|
@ -72,13 +72,13 @@ struct errmsg {
|
||||
#define DROPPACKET(s) \
|
||||
if (packetdroppercentage != 0 && \
|
||||
random()%100 < packetdroppercentage) { \
|
||||
tftp_log(LOG_DEBUG, "Artifical packet drop in %s", s); \
|
||||
tftp_log(LOG_DEBUG, "Artificial packet drop in %s", s); \
|
||||
return; \
|
||||
}
|
||||
#define DROPPACKETn(s,n) \
|
||||
if (packetdroppercentage != 0 && \
|
||||
random()%100 < packetdroppercentage) { \
|
||||
tftp_log(LOG_DEBUG, "Artifical packet drop in %s", s); \
|
||||
tftp_log(LOG_DEBUG, "Artificial packet drop in %s", s); \
|
||||
return (n); \
|
||||
}
|
||||
|
||||
|
@ -36,11 +36,11 @@ __FBSDID("$FreeBSD$");
|
||||
#define MAXPKTSIZE (MAXSEGSIZE + 4) /* Maximum size of the packet */
|
||||
|
||||
/* For the blksize option */
|
||||
#define BLKSIZE_MIN 8 /* Minumum size of the data segment */
|
||||
#define BLKSIZE_MIN 8 /* Minimum size of the data segment */
|
||||
#define BLKSIZE_MAX MAXSEGSIZE /* Maximum size of the data segment */
|
||||
|
||||
/* For the timeout option */
|
||||
#define TIMEOUT_MIN 0 /* Minumum timeout value */
|
||||
#define TIMEOUT_MIN 0 /* Minimum timeout value */
|
||||
#define TIMEOUT_MAX 255 /* Maximum timeout value */
|
||||
#define MIN_TIMEOUTS 3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user