READLABELFS(3) BSD Programmer's Manual READLABELFS(3)NAMEreadlabelfs - read disklabel filesystem type
SYNOPSIS
#include <util.h>
char *
readlabelfs(char *device, int verbose);
DESCRIPTION
The readlabelfs() function attempts to determine the filesystem type of
the disk partition specified by device and returns it in a short form
that can be easily used to construct arguments within mount(8) and simi-
lar high-level filesystem utilities.
If the verbose argument is not 0, readlabelfs() will print appropriate
error messages before returning. Otherwise, it produces no output on the
terminal.
RETURN VALUESreadlabelfs() returns NULL upon error, or a valid filesystem type upon
success.
HISTORYreadlabelfs() first appeared in OpenBSD 2.0.
MirOS BSD #10-current December 22, 1996 1