--------------------
- use __attribute__((notnull)) and __attribute__((warn_unused_result))
- Note that the code has to be usefull for non-gcc compilers too.
+ Note that the code has to be useful for non-gcc compilers too.
partx
-----
Rik Faith and Stephen Tweedie inspired this change.
Version 1.20 (30-Jul-93): changes since 1.17:
- Versions 1.18 and 1.19 were never made publically available.
+ Versions 1.18 and 1.19 were never made publicly available.
Agetty now supports a -L switch that makes it force the CLOCAL flag.
This is useful if you have a local terminal attached with a partly
wired serial cable that does not pass on the Carrier Detect signal.
collectively tested. During test period changes to code base are
restricted. Usually there are two release candidates.
- what lenght what will be accepted to upstream
+ what length what will be accepted to upstream
-------------------------------------------------------
rc1 1-2 weeks bug fixes only
rc2 1-2 weeks translations, fatal/trivial bug fixes
\def\argremovecomment#1\comment#2\ArgTerm{\argremovec #1\c\ArgTerm}
\def\argremovec#1\c#2\ArgTerm{\argcheckspaces#1\^^M\ArgTerm}
-% Each occurence of `\^^M' or `<space>\^^M' is replaced by a single space.
+% Each occurrence of `\^^M' or `<space>\^^M' is replaced by a single space.
%
% \argremovec might leave us with trailing space, e.g.,
% @end itemize @c foo
\chardef\maxseclevel = 3
%
% A numbered section within an unnumbered changes to unnumbered too.
-% To achive this, remember the "biggest" unnum. sec. we are currently in:
+% To achieve this, remember the "biggest" unnum. sec. we are currently in:
\chardef\unmlevel = \maxseclevel
%
% Trace whether the current chapter is an appendix or not:
AC_ARG_ENABLE([most-builds],
- AS_HELP_STRING([--enable-most-builds], [build everthing other than experimental code]),
+ AS_HELP_STRING([--enable-most-builds], [build everything other than experimental code]),
[], enable_most_builds=no
)
if test "x$enable_most_builds" = xyes; then
program_invocation_short_name);
fprintf(out, _("\nOptions:\n"
- " -d, --divisor=NUM devide bytes NUM\n"
+ " -d, --divisor=NUM divide bytes NUM\n"
" -x, --sectors show sector count and size\n"
" -V, --version output version information and exit\n"
" -H, --help display this help and exit\n\n"));
.IB sectorsize .
.TP
.BI "\-c"[=mode]
-Specify the compatiblity mode, 'dos' or 'nondos'. The default is non-DOS
+Specify the compatibility mode, 'dos' or 'nondos'. The default is non-DOS
mode. For backward compatibility, it is possible to use the option without
the <mode> argument -- then the default is used. Note that the optional
<mode> argument cannot be separated from the -c option by a space, the correct
* The chain is sorted so that sectors increase, and so that
* starting sectors increase.
*
- * After this it may still be that cfdisk doesnt like the table.
+ * After this it may still be that cfdisk doesn't like the table.
* (This is because cfdisk considers expanded parts, from link to
* end of partition, and these may still overlap.)
* Now
*/
/* Exit codes:
- * 0) No errors, succesful operation.
+ * 0) No errors, successful operation.
* 1) getopt(3) returned an error.
* 2) A problem with parameter parsing for getopt(1).
* 3) Internal error, out of memory
}
/*
- * Each character in arg may take upto four characters in the
+ * Each character in arg may take up to four characters in the
* result: For a quote we need a closing quote, a backslash, a quote
* and an opening quote! We need also the global opening and closing
* quote, and one extra character for '\0'.
* Martin Ostermann writes:
*
* The problem with the Jensen is twofold: First, it has the clock at a
- * different address. Secondly, it has a distinction beween "local" and
+ * different address. Secondly, it has a distinction between "local" and
* normal bus addresses. The local ones pertain to the hardware integrated
* into the chipset, like serial/parallel ports and of course, the RTC.
* Those need to be addressed differently. This is handled fine in the
*
* Other docs state that "any write to 0x70 should be
* followed by an action to 0x71 or the RTC wil be left in
- * an unknown state". Most docs say that it doesnt matter at
+ * an unknown state". Most docs say that it doesn't matter at
* all what one does.
*/
/*
* November 1996: Version 2.0.1. Modifications by Nicolai Langfeldt
* (janl@math.uio.no) to make it compile on linux 1.2 machines as well as
* more recent versions of the kernel. Introduced the NO_CLOCK access method
- * and wrote feature test code to detect absense of rtc headers.
+ * and wrote feature test code to detect absence of rtc headers.
*
***************************************************************************
* Maintenance notes
* LIST ::= <item> [, <item>]
*
* The <item> is translated to 'id' by name2id() function and the 'id' is used
- * as a possition in the 'ary' bit array. It means that the 'id' has to be in
+ * as a position in the 'ary' bit array. It means that the 'id' has to be in
* range <0..N> where N < sizeof(ary) * NBBY.
*
* Returns: 0 on success, <0 on error.
A common use is to allow use of LABEL= and UUID= tags instead of hard-coding
specific block device names into configuration files.
.P
-The low-level part of the library also allows to extract infomation about
+The low-level part of the library also allows to extract information about
partitions and block device topology.
.P
The high-level part of the library keeps information about block devices in a
/*
- * encode.c - string convertion routines (mostly for compatibility with
+ * encode.c - string conversion routines (mostly for compatibility with
* udev/volume_id)
*
* Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org>
struct gpt_header {
uint64_t signature; /* "EFI PART" */
uint32_t revision;
- uint32_t header_size; /* usualy 92 bytes */
+ uint32_t header_size; /* usually 92 bytes */
uint32_t header_crc32; /* checksum of header with this
* field zeroed during calculation */
uint32_t reserved1;
}
/*
- * UUID is traditionaly 16 byte big-endian array, except Intel EFI
+ * UUID is traditionally 16 byte big-endian array, except Intel EFI
* specification where the UUID is a structure of little-endian fields.
*/
static void swap_efi_guid(efi_guid_t *uid)
* This function tries to get start and size for @devno from sysfs and
* returns a partition from @ls which matches with the values from sysfs.
*
- * This funtion is necessary when you want to make a relation between an entry
+ * This function is necessary when you want to make a relation between an entry
* in the partition table (@ls) and block devices in your system.
*
* Returns: partition object or NULL in case or error.
uint64_t utime; /* 40 bits second, 24 btes microseconds */
uint64_t events; /* incremented when superblock updated */
uint64_t resync_offset; /* data before this offset (from data_offset) known to be in sync */
- uint32_t sb_csum; /* checksum upto dev_roles[max_dev] */
+ uint32_t sb_csum; /* checksum up to dev_roles[max_dev] */
uint32_t max_dev; /* size of dev_roles[] array to consider */
uint8_t pad3[64-32]; /* set to 0 when writing */
* Check for collisions between RAID and partition table
*
* For example the superblock is at the end of the last partition, it's
- * the same possition as at the end of the disk...
+ * the same position as at the end of the disk...
*/
if ((S_ISREG(pr->mode) || blkid_probe_is_wholedisk(pr)) &&
blkid_probe_is_covered_by_pt(pr,
* @title: Superblocks probing
* @short_description: filesystems and raids superblocks probing.
*
- * The library API has been originaly designed for superblocks probing only.
+ * The library API has been originally designed for superblocks probing only.
* This is reason why some *deprecated* superblock specific functions don't use
* '_superblocks_' namespace in the function name. Please, don't use these
* functions in new code.
*
* The 'superblocks' probers support NAME=value (tags) interface only. The
- * superblocks probing is enabled by default (and controled by
+ * superblocks probing is enabled by default (and controlled by
* blkid_probe_enable_superblocks()).
*
* Currently supported tags:
* mnt_context_get_helper_status(). The mnt_context_get_status() only inform
* that exec() has been sucessful.
*
- * Returns: 1 if mount.type or mount(2) syscall has been succesfully called.
+ * Returns: 1 if mount.type or mount(2) syscall has been successfully called.
*/
int mnt_context_get_status(struct libmnt_context *cxt)
{
* again mnt_context_do_mount().
*
* WARNING: non-zero return code does not mean that mount(2) syscall or
- * mount.type helper wasn't sucessfully called.
+ * mount.type helper wasn't successfully called.
*
* Check mnt_context_get_status() after error!
*
* once, whole context has to be reseted.
*
* WARNING: non-zero return code does not mean that mount(2) syscall or
- * mount.type helper wasn't sucessfully called.
+ * mount.type helper wasn't successfully called.
*
* Check mnt_context_get_status() after error!
*
* See also mnt_context_disable_helpers().
*
* WARNING: non-zero return code does not mean that umount(2) syscall or
- * umount.type helper wasn't sucessfully called.
+ * umount.type helper wasn't successfully called.
*
* Check mnt_context_get_status() after error!
*
* See also mnt_context_disable_helpers().
*
* WARNING: non-zero return code does not mean that umount(2) syscall or
- * umount.type helper wasn't sucessfully called.
+ * umount.type helper wasn't successfully called.
*
* Check mnt_context_get_status() after error!
*
exit(EXIT_FAILURE);
/*
- * Problem: if the user's shell is a shell like ash that doesnt do
+ * Problem: if the user's shell is a shell like ash that doesn't do
* setsid() or setpgrp(), then a ctrl-\, sending SIGQUIT to every
* process in the pgrp, will kill us.
*/
.B \-d
Don't encode non-printing characters. The non-printing characters are encoded
by ^ and M- notation by default. Note that \fB-o udev\fR output format uses
-a diffrent encoding and this encoding cannot be disabled.
+a different encoding and this encoding cannot be disabled.
.TP
.B \-g
Perform a garbage collection pass on the blkid cache to remove
if (!nvals)
return 2; /* nothing detected */
- return 0; /* sucess */
+ return 0; /* success */
}
/* converts comma separated list to BLKID_USAGE_* mask */
The
.BR rootcontext=
option allows you to explicitly label the root inode of a FS being mounted
-before that FS or inode because visable to userspace. This was found to be
+before that FS or inode because visible to userspace. This was found to be
useful for things like stateless linux.
Note that kernel rejects any remount request that includes the context
/*
* For the --file option we mmap whole file. The unnecessary (already
* printed) pages are always unmapped. The result is that we have in
- * memory only the currenly used page(s).
+ * memory only the currently used page(s).
*/
char *mmap_buff;
size_t pagesize;
case STATUS:
printf (_("------ Shared Memory Status --------\n"));
/*
- * TRANSLATORS: This output format is mantained for backward
+ * TRANSLATORS: This output format is maintained for backward
* compatibility as ipcs is used in scripts. For consistency
* with the rest, the translated form can follow this model:
*
}
}
-/* add @set to the @ary, unnecesary set is deallocated. */
+/* add @set to the @ary, unnecessary set is deallocated. */
static int add_cpuset_to_array(cpu_set_t **ary, int *items, cpu_set_t *set)
{
int i;
The
.BR rootcontext=
option allows you to explicitly label the root inode of a FS being mounted
-before that FS or inode because visable to userspace. This was found to be
+before that FS or inode because visible to userspace. This was found to be
useful for things like stateless linux.
Note that kernel rejects any remount request that includes the context
# Copyright (C) 2008-2009 Karel Zak <kzak@redhat.com>
#
# This script makes a copy of relevant files from /sys and /proc.
-# The files are usefull for lscpu(1) regression tests.
+# The files are useful for lscpu(1) regression tests.
#
progname=$(basename $0)
}
/*
-** Search for nth ocurrence of regular expression contained in buf in the file
+** Search for nth occurrence of regular expression contained in buf in the file
*/
void search(char buf[], FILE *file, register int n)
if (no_tty)
return;
if (pstate) {
- tputs(ULexit, fileno(stdout), ourputch); /* putchar - if that isnt a macro */
+ tputs(ULexit, fileno(stdout), ourputch); /* putchar - if that isn't a macro */
fflush(stdout);
pstate = 0;
}
/*
* FIXME: why terminal type is lpr when command begins with c and has
* no terminal? If this behavior can be explained please insert
- * refrence or remove the code. In case this truly is desired command
+ * reference or remove the code. In case this truly is desired command
* behavior this should be mentioned in manual page.
*/
if (termtype == NULL || (argv[0][0] == 'c' && !isatty(STDOUT_FILENO)))