getlabelusesmbr man page on NetBSD

Man page or keyword search:  
man Server   9087 pages
apropos Keyword Search (all sections)
Output format
NetBSD logo
[printable version]

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
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server NetBSD

List of man pages available for NetBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net