multiple spelling and typo fixes

This fixes #516.
This commit is contained in:
Josh Soref
2022-04-15 11:53:24 -04:00
committed by William Hubbs
parent f81bb7e2c4
commit 3054046e18
31 changed files with 42 additions and 42 deletions

View File

@@ -1,6 +1,6 @@
/*
* checkpath.c
* Checks for the existance of a file or directory and creates it
* Checks for the existence of a file or directory and creates it
* if necessary. It can also correct its ownership.
*/
@@ -67,7 +67,7 @@ const char * const longopts_help[] = {
"Create a named pipe (FIFO) if not exists",
"Mode to check",
"Owner to check (user:group)",
"follow symbolic links (irrelivent on linux)",
"follow symbolic links (irrelevant on linux)",
"Check whether the path is writable or not",
longopts_help_COMMON
};

View File

@@ -30,7 +30,7 @@
#include "einfo.h"
#include "helpers.h"
/* usecs to wait while we poll the file existance */
/* usecs to wait while we poll the file existence */
#define WAIT_INTERVAL 20000000
const char *applet = NULL;

View File

@@ -75,7 +75,7 @@ const struct option longopts[] = {
longopts_COMMON
};
const char * const longopts_help[] = {
"Mounts the filesytem from the mountpoint",
"Mounts the filesystem from the mountpoint",
"Remounts the filesystem based on the information in fstab",
"Extract the block device",
"Show arguments needed to mount the entry",

View File

@@ -108,7 +108,7 @@ int ebegin(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2);
* eend places [ ok ] or [ !! ] at the end of the terminal line depending on
* retval (0 or ok, anything else for !!)
*
* ebracket allows you to specifiy the position, color and message */
* ebracket allows you to specify the position, color and message */
/*@{*/
int eend(int, const char * EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3);
int ewend(int, const char * EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3);

View File

@@ -186,7 +186,7 @@ rc_config_list(const char *file)
if (token && (strlen(token) > 1)) {
/* If not variable assignment then skip */
if (strchr(token, '=')) {
/* Stip the newline if present */
/* Strip the newline if present */
if (token[strlen(token) - 1] == '\n')
token[strlen(token) - 1] = 0;

View File

@@ -201,7 +201,7 @@ bool rc_service_add(const char *, const char *);
/*! Remove the service from the runlevel
* @param runlevel to remove from
* @param service to remove
* @return true if sucessful, otherwise false */
* @return true if successful, otherwise false */
bool rc_service_delete(const char *, const char *);
/*! Save the arguments to find a running daemon
@@ -304,7 +304,7 @@ RC_STRINGLIST *rc_services_in_runlevel_stacked(const char *);
* @return NULL terminated list of services */
RC_STRINGLIST *rc_services_in_state(RC_SERVICE);
/*! List the services shceduled to start when this one does
/*! List the services scheduled to start when this one does
* @param service to check
* @return NULL terminated list of services */
RC_STRINGLIST *rc_services_scheduled(const char *);
@@ -450,9 +450,9 @@ RC_STRINGLIST *rc_deptree_depend(const RC_DEPTREE *, const char *, const char *)
RC_STRINGLIST *rc_deptree_depends(const RC_DEPTREE *, const RC_STRINGLIST *,
const RC_STRINGLIST *, const char *, int);
/*! List all the services that should be stoppned and then started, in order,
/*! List all the services that should be stopped and then started, in order,
* for the given runlevel, including sysinit and boot services where
* approriate.
* appropriate.
* @param deptree to search
* @param runlevel to change into
* @param options to pass
@@ -528,7 +528,7 @@ bool rc_yesno(const char *);
/*! @name String List functions
* Every string list should be released with a call to rc_stringlist_free. */
/*! Create a new stringlinst
/*! Create a new stringlist
* @return pointer to new list */
RC_STRINGLIST *rc_stringlist_new(void);

View File

@@ -363,7 +363,7 @@ svc_exec(const char *arg1, const char *arg2)
* We do this instead of mapping pipes to stdout, stderr so that
* programs can tell if they're attached to a tty or not.
* The only loss is that we can no longer tell the difference
* between the childs stdout or stderr */
* between the child's stdout or stderr */
master_tty = slave_tty = -1;
if (prefix && isatty(fdout)) {
tcgetattr(fdout, &tt);
@@ -1045,7 +1045,7 @@ svc_stop(void)
static void
svc_restart(void)
{
/* This is hairly and a better way needs to be found I think!
/* This is hairy and a better way needs to be found I think!
* The issue is this - openvpn need net and dns. net can restart
* dns via resolvconf, so you could have openvpn trying to restart
* dnsmasq which in turn is waiting on net which in turn is waiting

View File

@@ -50,7 +50,7 @@ struct init_request_bsd {
/*
* Because of legacy interfaces, "runlevel" and "sleeptime"
* aren't in a seperate struct in the union.
* aren't in a separate struct in the union.
*
* The weird sizes are because init expects the whole
* struct to be 384 bytes.

View File

@@ -562,7 +562,7 @@ do_stop_services(RC_STRINGLIST *types_nw, RC_STRINGLIST *start_services,
continue;
}
/* If the service has crashed, skip futher checks and just stop
/* If the service has crashed, skip further checks and just stop
it */
if (crashed &&
rc_service_daemons_crashed(service->value))
@@ -584,7 +584,7 @@ do_stop_services(RC_STRINGLIST *types_nw, RC_STRINGLIST *start_services,
continue;
}
/* We got this far. Last check is to see if any any service
/* We got this far. Last check is to see if any service
* that going to be started depends on us */
if (!svc1) {
tmplist = rc_stringlist_new();
@@ -877,7 +877,7 @@ int main(int argc, char **argv)
setenv("RC_RUNLEVEL", newlevel, 1);
setenv("RC_GOINGDOWN", "YES", 1);
} else {
/* We should not use krunevel in sysinit or boot runlevels */
/* We should not use krunlevel in sysinit or boot runlevels */
if (!newlevel ||
(strcmp(newlevel, RC_LEVEL_SYSINIT) != 0 &&
strcmp(newlevel, getenv("RC_BOOTLEVEL")) != 0))
@@ -913,7 +913,7 @@ int main(int argc, char **argv)
#ifdef __FreeBSD__
/* FIXME: we shouldn't have todo this */
/* For some reason, wait_for_services waits for the logger
* proccess to finish as well, but only on FreeBSD.
* process to finish as well, but only on FreeBSD.
* We cannot allow this so we stop logging now. */
rc_logger_close();
#endif

View File

@@ -64,7 +64,7 @@ if [ -z $TERM -o $TERM = "dumb" ]; then
fi
# Gather list of candidate services s6-supervise may be supervising
# filter for folders and symlinks at /run/openrc/s6-scan/* ommiting output starting with '.'
# filter for folders and symlinks at /run/openrc/s6-scan/* omitting output starting with '.'
services="$(find $scandir -maxdepth 1 -mindepth 1 \( -type d -or -type l \) | awk -F'/' '{ if ( $NF !~ "^\\." ) print $NF}')"
if [ -z "$services" ]; then
printf "s6 found no services configured for supervision\n"
@@ -72,7 +72,7 @@ if [ -z "$services" ]; then
fi
# Gather status for each service from s6-svstat
# write to tmp file in memory for non I/O bound repeatative access
# write to tmp file in memory for non I/O bound repetitive access
rm -f $statfile 2>/dev/null
for service in $services ; do
echo "$service $(s6-svstat ${scandir}/${service})" >> $statfile

View File

@@ -18,7 +18,7 @@
#ifndef __LIBRC_PLUGIN_H__
#define __LIBRC_PLUGIN_H__
/* A simple flag to say if we're in a plugin proccess or not.
/* A simple flag to say if we're in a plugin process or not.
* Mainly used in atexit code. */
extern bool rc_in_plugin;

View File

@@ -664,7 +664,7 @@ struct { \
*/
/*
* __launder_type(): We use this ugly hack to work around the the compiler
* __launder_type(): We use this ugly hack to work around the compiler
* noticing that two types may not alias each other and elide tests in code.
* We hit this in the CIRCLEQ macros when comparing 'struct name *' and
* 'struct type *' (see CIRCLEQ_HEAD()). Modern compilers (such as GCC
@@ -675,7 +675,7 @@ struct { \
* Do not use for assignment.
*
* If we ever choose to change the ABI of the CIRCLEQ macros, we could fix
* this by changing the head/tail sentinal values, but see the note above
* this by changing the head/tail sentinel values, but see the note above
* this one.
*/
static __inline const void * __launder_type(const void *);

View File

@@ -1,7 +1,7 @@
/*
* supervise-daemon
* This is a supervisor for daemons.
* It will start a deamon and make sure it restarts if it crashes.
* It will start a daemon and make sure it restarts if it crashes.
*/
/*