GETDISKBYNAME(3) | Library Functions Manual | GETDISKBYNAME(3) |
int
setdisktab(char *name);
struct disklabel *
getdiskbyname(const char *name);
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.
setdisktab() returns 0 on success and -1 if name is a null pointer or points to an empty string.
The setdisktab() function appeared in NetBSD 1.4.
June 4, 1993 | NetBSD 6.1 |