Unix/Linux Go Back    


NetBSD 6.1.5 - man page for getlabelsector (netbsd section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)


GETLABELSECTOR(3)		   BSD Library Functions Manual 		GETLABELSECTOR(3)

NAME
     getlabelsector, getlabeloffset, getlabelusesmbr -- get disklabel location informations

LIBRARY
     System Utilities Library (libutil, -lutil)

SYNOPSIS
     #include <util.h>

     daddr_t
     getlabelsector(void);

     off_t
     getlabeloffset(void);

     int
     getlabelusesmbr(void);

DESCRIPTION
     The getlabelsector() and getlabeloffset() functions return values which describe the exact
     on-disk location of the disklabel(5) on the current 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 ALSO
     sysctl(3), disklabel(5)

HISTORY
     The getlabelsector() and getlabeloffset() functions appeared in NetBSD 2.0.

BSD					 August 25, 2011				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums


All times are GMT -4. The time now is 08:21 PM.