Commit | Line | Data |
---|---|---|
62068be8 KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
0609943c | 5 | .\" @(#)getdiskbyname.3 6.2 (Berkeley) %G% |
62068be8 | 6 | .\" |
0609943c | 7 | .TH GETDISKBYNAME 3 "" |
62068be8 KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | getdiskbyname \- get disk description by its name | |
11 | .SH SYNOPSIS | |
12 | .nf | |
13 | .B #include <disktab.h> | |
14 | .PP | |
15 | .B struct disktab * | |
16 | .B getdiskbyname(name) | |
17 | .B char *name; | |
18 | .fi | |
19 | .SH DESCRIPTION | |
20 | .I Getdiskbyname | |
21 | takes a disk name (e.g. rm03) and returns a structure | |
22 | describing its geometry information and the standard | |
23 | disk partition tables. All information obtained from | |
24 | the | |
25 | .IR disktab (5) | |
26 | file. | |
27 | .PP | |
28 | .RI < disktab.h > | |
29 | has the following form: | |
30 | .PP | |
31 | .nf | |
32 | .DT | |
33 | .so /usr/include/disktab.h | |
34 | .SH "SEE ALSO" | |
35 | disktab(5) | |
36 | .SH BUGS | |
37 | This information should be obtained from the system for | |
38 | locally available disks (in particular, the disk partition | |
39 | tables). |