netbsd man page for getrawpartition

Query: getrawpartition

OS: netbsd

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GETRAWPARTITION(3)					   BSD Library Functions Manual 					GETRAWPARTITION(3)

NAME
getrawpartition -- get the system ``raw'' partition
LIBRARY
System Utilities Library (libutil, -lutil)
SYNOPSIS
#include <util.h> int getrawpartition(void);
DESCRIPTION
getrawpartition() returns the partition number ( 'a' == 0, 'b' == 1, ...) 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.
SEE ALSO
getmaxpartitions(3), sysctl(3)
HISTORY
The getrawpartition() function call appeared in NetBSD 1.2.
BSD
May 4, 2010 BSD
Related Man Pages
kpartx(8) - debian
libutil(3) - netbsd
mbrlabel(8) - netbsd
svhlabel(8) - netbsd
opendev(3) - osx
Similar Topics in the Unix Linux Community
sorting left-justified numeric values
How to install PGX32 on Sparc 10 Ultra?
Better to Use Return Code or wc -l Output?
RFC - Korn shell prompt
Adding a List of Times