#endif
#if !defined(HAVE_GETRANDOM) && defined(SYS_getrandom)
-/* libc without function, but we have syscal */
+/* libc without function, but we have syscall */
#define GRND_NONBLOCK 0x01
#define GRND_RANDOM 0x02
static int getrandom(void *buf, size_t buflen, unsigned int flags)
* @cache: pointer to return cache handler
* @filename: path to the cache file or NULL for the default path
*
- * Allocates and initialize library cache handler.
+ * Allocates and initializes library cache handler.
*
* Returns: 0 on success or number less than zero in case of error.
*/
list_for_each_safe(p, pnext, &cache->bic_devs) {
blkid_dev dev = list_entry(p, struct blkid_struct_dev, bid_devs);
if (stat(dev->bid_name, &st) < 0) {
- DBG(CACHE, ul_debugobj(cache, "freeing non-exiting %s", dev->bid_name));
+ DBG(CACHE, ul_debugobj(cache, "freeing non-existing %s", dev->bid_name));
blkid_free_dev(dev);
cache->bic_flags |= BLKID_BIC_FL_CHANGED;
} else {
}
/*
- * Search in buffers we already in memory
+ * Search in buffers we already have in memory
*/
static struct blkid_bufinfo *get_cached_buffer(blkid_probe pr, uint64_t off, uint64_t len)
{
return 0;
}
-/* This function do NOT overwrite (replace) the string in @new, the string in
- * the @new has to be NULL otherwise this is no-op */
+/* This function does NOT overwrite (replace) the string in @new, the string in
+ * @new has to be NULL otherwise this is no-op. */
static inline int cpy_str_at_offset(void *new, const void *old, size_t offset)
{
char **o = (char **) ((char *) old + offset);
.TP
.BR \-r , " \-\-random"
Generate a random-based UUID. This method creates a UUID consisting mostly
-of random bits. It requires that the operating system have a high
+of random bits. It requires that the operating system has a high
quality random number generator, such as
.IR /dev/random .
.TP