*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: setdisktab | Section: 3 | Source: NetBSD | File: setdisktab.3
GETDISKBYNAME(3) FreeBSD Library Functions Manual GETDISKBYNAME(3) NAME getdiskbyname, setdisktab - get generic disk description by its name LIBRARY Standard 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); DESCRIPTION The 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 VALUES getdiskbyname() 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 ALSO disklabel(5), disktab(5), disklabel(8) HISTORY The getdiskbyname() function appeared in 4.3BSD. The setdisktab() function appeared in NetBSD 1.4. BUGS The getdiskbyname() function leaves its results in an internal static object and returns a pointer to that object. Subsequent calls will modify the same object. FreeBSD 14.1-RELEASE-p8 June 4, 1993 FreeBSD 14.1-RELEASE-p8

Navigation Options