GETLABELSECTOR(3)       NetBSD Library Functions Manual      GETLABELSECTOR(3)

NAME
     getlabelsector, getlabeloffset -- get the sector number and offset of the
     disklabel

LIBRARY
     System Utilities Library (libutil, -lutil)

SYNOPSIS
     #include <util.h>

     daddr_t
     getlabelsector(void);

     off_t
     getlabeloffset(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 supercede the hardcoded
     LABELSECTOR and LABELOFFSET definitions previously used to derive the
     location of the disklabel(5).

SEE ALSO
     sysctl(3), disklabel(5)

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

NetBSD 5.1                     December 11, 2002                    NetBSD 5.1

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias <christia@softlab.ntua.gr>
©1996-2014 Modified for NetBSD by Kimmo Suominen