GETRAWPARTITION(3) BSD Programmer's Manual GETRAWPARTITION(3)
getrawpartition - get the system "raw" partition
#include <util.h> int getrawpartition(void);
getrawpartition() returns the partition number ('a' == 0, 'b' == 1, ...) of the "raw" partition of the system's disks. The "raw" partition is de- fined as the partition which provides access to the entire disk, regard- less of the disk's partition map.
getmaxpartitions(3), sysctl(3)
The getrawpartition function call appeared in NetBSD 1.2. MirBSD #10-current May 15, 1996 1