docs: Fix word repetitions
This commit is contained in:
parent
7ccc1643ab
commit
a7349ee315
|
@ -29,7 +29,7 @@ Branches
|
||||||
--------
|
--------
|
||||||
|
|
||||||
1. Use the name of the subsystem, such as blkid, libmount, misc-utils,
|
1. Use the name of the subsystem, such as blkid, libmount, misc-utils,
|
||||||
that is the common thing for changes in in the change set.
|
that is the common thing for changes in the change set.
|
||||||
|
|
||||||
2. If the changes do not have anything in common use some random name,
|
2. If the changes do not have anything in common use some random name,
|
||||||
such as YYYY-MM-DD of the first patch in the branch. Name of the branch
|
such as YYYY-MM-DD of the first patch in the branch. Name of the branch
|
||||||
|
|
|
@ -815,7 +815,7 @@ int main(int argc, char **argv)
|
||||||
{ NULL, 0, NULL, 0 }
|
{ NULL, 0, NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'P','a','d','l','r','s','u' },
|
{ 'P','a','d','l','r','s','u' },
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -623,7 +623,7 @@ static char *get_subsystem(char *chain, char *buf, size_t bufsz)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns complete path to the device, the patch contains all all subsystems
|
* Returns complete path to the device, the patch contains all subsystems
|
||||||
* used for the device.
|
* used for the device.
|
||||||
*/
|
*/
|
||||||
char *sysfs_get_devchain(struct sysfs_cxt *cxt, char *buf, size_t bufsz)
|
char *sysfs_get_devchain(struct sysfs_cxt *cxt, char *buf, size_t bufsz)
|
||||||
|
|
|
@ -85,7 +85,7 @@ struct libmnt_cache *mnt_new_cache(void)
|
||||||
* @cache: pointer to struct libmnt_cache instance
|
* @cache: pointer to struct libmnt_cache instance
|
||||||
*
|
*
|
||||||
* Deallocates the cache. This function does not care about reference count. Don't
|
* Deallocates the cache. This function does not care about reference count. Don't
|
||||||
* use this function directly -- it's better to use use mnt_unref_cache().
|
* use this function directly -- it's better to use mnt_unref_cache().
|
||||||
*/
|
*/
|
||||||
void mnt_free_cache(struct libmnt_cache *cache)
|
void mnt_free_cache(struct libmnt_cache *cache)
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,7 +43,7 @@ struct libmnt_fs *mnt_new_fs(void)
|
||||||
* @fs: fs pointer
|
* @fs: fs pointer
|
||||||
*
|
*
|
||||||
* Deallocates the fs. This function does not care about reference count. Don't
|
* Deallocates the fs. This function does not care about reference count. Don't
|
||||||
* use this function directly -- it's better to use use mnt_unref_fs().
|
* use this function directly -- it's better to use mnt_unref_fs().
|
||||||
*
|
*
|
||||||
* The reference counting is supported since util-linux v2.24.
|
* The reference counting is supported since util-linux v2.24.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -150,7 +150,7 @@ void mnt_unref_table(struct libmnt_table *tb)
|
||||||
* @tb: tab pointer
|
* @tb: tab pointer
|
||||||
*
|
*
|
||||||
* Deallocates the table. This function does not care about reference count. Don't
|
* Deallocates the table. This function does not care about reference count. Don't
|
||||||
* use this function directly -- it's better to use use mnt_unref_table().
|
* use this function directly -- it's better to use mnt_unref_table().
|
||||||
*
|
*
|
||||||
* The table entries (filesystems) are unreferenced by mnt_reset_table() and
|
* The table entries (filesystems) are unreferenced by mnt_reset_table() and
|
||||||
* cache by mnt_unref_cache().
|
* cache by mnt_unref_cache().
|
||||||
|
|
|
@ -236,7 +236,7 @@ int main(int argc, char *argv[])
|
||||||
{ NULL, 0, 0, 0 },
|
{ NULL, 0, 0, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'E', 'J', 'r' },
|
{ 'E', 'J', 'r' },
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -930,7 +930,7 @@ int main(int argc, char **argv)
|
||||||
{ "time-format", required_argument, NULL, OPT_TIME_FORMAT },
|
{ "time-format", required_argument, NULL, OPT_TIME_FORMAT },
|
||||||
{ NULL, 0, NULL, 0 }
|
{ NULL, 0, NULL, 0 }
|
||||||
};
|
};
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'F', OPT_TIME_FORMAT }, /* fulltime, time-format */
|
{ 'F', OPT_TIME_FORMAT }, /* fulltime, time-format */
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -649,7 +649,7 @@ int main(int argc, char **argv)
|
||||||
int c;
|
int c;
|
||||||
uintmax_t offset = 0, size = 0;
|
uintmax_t offset = 0, size = 0;
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'n','u' },
|
{ 'n','u' },
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -284,7 +284,7 @@ int main(int argc, char **argv)
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'Y','n','y' },
|
{ 'Y','n','y' },
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -1316,7 +1316,7 @@ int main(int argc, char *argv[])
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'C', 'c'}, /* [no]canonicalize */
|
{ 'C', 'c'}, /* [no]canonicalize */
|
||||||
{ 'C', 'e' }, /* nocanonicalize, evaluate */
|
{ 'C', 'e' }, /* nocanonicalize, evaluate */
|
||||||
{ 'J', 'P', 'r','x' }, /* json,pairs,raw,verify */
|
{ 'J', 'P', 'r','x' }, /* json,pairs,raw,verify */
|
||||||
|
|
|
@ -170,7 +170,7 @@ look(char *front, char *back)
|
||||||
int ch;
|
int ch;
|
||||||
char *readp, *writep;
|
char *readp, *writep;
|
||||||
|
|
||||||
/* Reformat string string to avoid doing it multiple times later. */
|
/* Reformat string to avoid doing it multiple times later. */
|
||||||
if (dflag) {
|
if (dflag) {
|
||||||
for (readp = writep = string; (ch = *readp++) != 0;) {
|
for (readp = writep = string; (ch = *readp++) != 0;) {
|
||||||
if (isalnum(ch) || isblank(ch))
|
if (isalnum(ch) || isblank(ch))
|
||||||
|
|
|
@ -1696,7 +1696,7 @@ int main(int argc, char *argv[])
|
||||||
{ NULL, 0, 0, 0 },
|
{ NULL, 0, 0, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'D','O' },
|
{ 'D','O' },
|
||||||
{ 'I','e' },
|
{ 'I','e' },
|
||||||
{ 'J', 'P', 'r' },
|
{ 'J', 'P', 'r' },
|
||||||
|
|
|
@ -78,7 +78,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
|
||||||
{
|
{
|
||||||
fprintf(out, "\n %s [options]\n", program_invocation_short_name);
|
fprintf(out, "\n %s [options]\n", program_invocation_short_name);
|
||||||
|
|
||||||
fprintf(out, " -p <num> number of of nprocesses (default:%zu)\n", nprocesses);
|
fprintf(out, " -p <num> number of nprocesses (default:%zu)\n", nprocesses);
|
||||||
fprintf(out, " -t <num> number of nthreads (default:%zu)\n", nthreads);
|
fprintf(out, " -t <num> number of nthreads (default:%zu)\n", nthreads);
|
||||||
fprintf(out, " -o <num> number of nobjects (default:%zu)\n", nobjects);
|
fprintf(out, " -o <num> number of nobjects (default:%zu)\n", nobjects);
|
||||||
fprintf(out, " -l <level> log level (default:%zu)\n", loglev);
|
fprintf(out, " -l <level> log level (default:%zu)\n", loglev);
|
||||||
|
|
|
@ -499,7 +499,7 @@ main(int argc, char **argv)
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'a','o' },
|
{ 'a','o' },
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -273,7 +273,7 @@ int main(int argc, char *argv[])
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'c','d','e','g','p' },
|
{ 'c','d','e','g','p' },
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -1261,7 +1261,7 @@ int main(int argc, char *argv[])
|
||||||
{ NULL, 0, NULL, 0 }
|
{ NULL, 0, NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'C','D','E','c','n','r' }, /* clear,off,on,read-clear,level,raw*/
|
{ 'C','D','E','c','n','r' }, /* clear,off,on,read-clear,level,raw*/
|
||||||
{ 'H','r' }, /* human, raw */
|
{ 'H','r' }, /* human, raw */
|
||||||
{ 'L','r' }, /* color, raw */
|
{ 'L','r' }, /* color, raw */
|
||||||
|
|
|
@ -309,7 +309,7 @@ int main(int argc, char **argv)
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'c', 'd', 'p', 'z' },
|
{ 'c', 'd', 'p', 'z' },
|
||||||
{ 'c', 'n' },
|
{ 'c', 'n' },
|
||||||
{ 'x', 'c', 'd', 'i', 'n', 'p', 'z'},
|
{ 'x', 'c', 'd', 'i', 'n', 'p', 'z'},
|
||||||
|
|
|
@ -68,7 +68,7 @@ int main(int argc, char **argv)
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'f','u' }, /* freeze, unfreeze */
|
{ 'f','u' }, /* freeze, unfreeze */
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -652,7 +652,7 @@ display_time(const bool hclock_valid, struct timeval hwctime)
|
||||||
* runnable by issuing the command "date" to the /bin/sh shell. That means
|
* runnable by issuing the command "date" to the /bin/sh shell. That means
|
||||||
* in must be in the current PATH.
|
* in must be in the current PATH.
|
||||||
*
|
*
|
||||||
* If anything goes wrong (and many things can), we return return code 10
|
* If anything goes wrong (and many things can), we return code 10
|
||||||
* and arbitrary *time_p. Otherwise, return code is 0 and *time_p is valid.
|
* and arbitrary *time_p. Otherwise, return code is 0 and *time_p is valid.
|
||||||
*/
|
*/
|
||||||
static int interpret_date_string(const struct hwclock_control *ctl,
|
static int interpret_date_string(const struct hwclock_control *ctl,
|
||||||
|
@ -1527,7 +1527,7 @@ int main(int argc, char **argv)
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'a','r','s','w',
|
{ 'a','r','s','w',
|
||||||
OPT_GET, OPT_GETEPOCH, OPT_PREDICT_HC,
|
OPT_GET, OPT_GETEPOCH, OPT_PREDICT_HC,
|
||||||
OPT_SET, OPT_SETEPOCH, OPT_SYSTZ },
|
OPT_SET, OPT_SETEPOCH, OPT_SYSTZ },
|
||||||
|
|
|
@ -868,7 +868,7 @@ int main(int argc, char **argv)
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'B','M','R' }, /* bind,move,rbind */
|
{ 'B','M','R' }, /* bind,move,rbind */
|
||||||
{ 'L','U', MOUNT_OPT_SOURCE }, /* label,uuid,source */
|
{ 'L','U', MOUNT_OPT_SOURCE }, /* label,uuid,source */
|
||||||
{ 0 }
|
{ 0 }
|
||||||
|
|
|
@ -862,7 +862,7 @@ int main(int argc, char *argv[])
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'a','o','s', SHOW_OPTION },
|
{ 'a','o','s', SHOW_OPTION },
|
||||||
{ 'a','o', BYTES_OPTION },
|
{ 'a','o', BYTES_OPTION },
|
||||||
{ 'a','o', NOHEADINGS_OPTION },
|
{ 'a','o', NOHEADINGS_OPTION },
|
||||||
|
|
|
@ -527,7 +527,7 @@ int main(int argc, char **argv)
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'A','a' }, /* all-targets,all */
|
{ 'A','a' }, /* all-targets,all */
|
||||||
{ 'R','a' }, /* recursive,all */
|
{ 'R','a' }, /* recursive,all */
|
||||||
{ 'O','R','t'}, /* options,recursive,types */
|
{ 'O','R','t'}, /* options,recursive,types */
|
||||||
|
|
|
@ -495,7 +495,7 @@ int main(int argc, char *argv[])
|
||||||
{ NULL, 0, NULL, 0 }
|
{ NULL, 0, NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ul_excl_t excl[] = { /* rows and cols in in ASCII order */
|
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
|
||||||
{ 'F','f' }, /* noflags,flags*/
|
{ 'F','f' }, /* noflags,flags*/
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -2537,7 +2537,7 @@ static void init_special_char(char* arg, struct options *op)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Appends @str to @dest and if @dest is not empty then use use @sep as a
|
* Appends @str to @dest and if @dest is not empty then use @sep as a
|
||||||
* separator. The maximal final length of the @dest is @len.
|
* separator. The maximal final length of the @dest is @len.
|
||||||
*
|
*
|
||||||
* Returns the final @dest length or -1 in case of error.
|
* Returns the final @dest length or -1 in case of error.
|
||||||
|
|
Loading…
Reference in New Issue