Query: getlabeloffset
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETLABELSECTOR(3) BSD Library Functions Manual GETLABELSECTOR(3)NAMEgetlabelsector, getlabeloffset, getlabelusesmbr -- get disklabel location informationsLIBRARYSystem Utilities Library (libutil, -lutil)SYNOPSIS#include <util.h> daddr_t getlabelsector(void); off_t getlabeloffset(void); int getlabelusesmbr(void);DESCRIPTIONThe getlabelsector() and getlabeloffset() functions return values which describe the exact on-disk location of the disklabel(5) on the cur- rent system, or -1 on error. These functions supersede the hardcoded LABELSECTOR and LABELOFFSET definitions previously used to derive the location of the disklabel(5). The getlabelusesmbr() returns 1 if the disklabel is located inside a MBR partition, 0 if it's stored relative to the start of the disk, or -1 on error.SEE ALSOsysctl(3), disklabel(5)HISTORYThe getlabelsector() and getlabeloffset() functions appeared in NetBSD 2.0.BSDAugust 25, 2011 BSD
Related Man Pages |
---|
getdiskbyname(3) - netbsd |
libutil(3) - netbsd |
setdisktab(3) - netbsd |
mbrlabel(8) - netbsd |
getdiskbyname_r(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Unix File Permissions |
Better to Use Return Code or wc -l Output? |
RFC - Korn shell prompt |
Grandpa returning to UNIX |
Grep command to show the number of results |