date and time created 89/05/17 22:49:21 by bostic
[unix-history] / usr / src / lib / libc / gen / getdiskbyname.3
CommitLineData
99c9d8e2
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
62068be8 3.\"
99c9d8e2
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)getdiskbyname.3 6.4 (Berkeley) %G%
62068be8 17.\"
0609943c 18.TH GETDISKBYNAME 3 ""
62068be8
KM
19.UC 5
20.SH NAME
39e10979 21getdiskbyname \- get generic disk description by its name
62068be8
KM
22.SH SYNOPSIS
23.nf
39e10979 24.B #include <sys/disklabel.h>
62068be8 25.PP
39e10979 26.B struct disklabel *
62068be8
KM
27.B getdiskbyname(name)
28.B char *name;
29.fi
30.SH DESCRIPTION
31.I Getdiskbyname
39e10979 32takes a disk name (e.g. rm03) and returns a prototype disk label
62068be8 33describing its geometry information and the standard
39e10979 34disk partition tables. All information is obtained from
62068be8
KM
35the
36.IR disktab (5)
37file.
62068be8 38.SH "SEE ALSO"
39e10979 39disklabel(5), disktab(5), disklabel(8)