Query: getdiskbyname
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETDISKBYNAME(3) BSD Library Functions Manual GETDISKBYNAME(3)NAMEgetdiskbyname, setdisktab -- get generic disk description by its nameLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/types.h> #include <sys/disklabel.h> #include <disktab.h> int setdisktab(char *name); struct disklabel * getdiskbyname(const char *name);DESCRIPTIONThe getdiskbyname() function takes a disk name (e.g. 'rm03') and returns a prototype disk label describing its geometry information and the standard disk partition tables. All information is obtained from the disktab(5) file. The setdisktab() function changes the default disktab file name from /etc/disktab (aka _PATH_DISKTAB) to name.RETURN VALUESgetdiskbyname() returns a null pointer if the entry is not found in the current disktab file. setdisktab() returns 0 on success and -1 if name is a null pointer or points to an empty string.FILES/etc/disktab the default database of disk types.SEE ALSOdisklabel(5), disktab(5), disklabel(8)HISTORYThe getdiskbyname() function appeared in 4.3BSD. The setdisktab() function appeared in NetBSD 1.4.BUGSThe getdiskbyname() function leaves its results in an internal static object and returns a pointer to that object. Subsequent calls will modify the same object.BSDJune 4, 1993 BSD
Related Man Pages |
---|
disktab(5) - bsd |
disktab(5) - freebsd |
getdiskbyname(3) - netbsd |
setdisktab(3) - netbsd |
disklabel(4) - osf1 |
Similar Topics in the Unix Linux Community |
---|
OpenBSD : mount problem |
How to use getdiskbyname() API |
Fedora Initialize disklabel |