| GETRAWPARTITION(3) | Library Functions Manual | GETRAWPARTITION(3) |
getrawpartition —
get the system “raw” partition
System Utilities Library (libutil, -lutil)
#include
<util.h>
int
getrawpartition(void);
getrawpartition()
returns the partition number (0 for
‘a’, 1 for
‘b’, etc) of the “raw”
partition of the system's disks, or -1 in case of an error, setting the
global errno variable. The possible values for
errno are the same as in
sysctl(3). The
“raw” partition is defined as the partition which provides
access to the entire disk, regardless of the disk's partition map.
The getrawpartition() function call
appeared in NetBSD 1.2.
| May 4, 2010 | NetBSD 11.0 |