X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/39e10979b0a42e8ae854fa73f7a10059e4b6f808..ae59e04cb5f746d72d5e3e8c84dad7862c9b50e7:/usr/src/lib/libc/gen/getdiskbyname.3 diff --git a/usr/src/lib/libc/gen/getdiskbyname.3 b/usr/src/lib/libc/gen/getdiskbyname.3 index e94228faab..6ec0fda384 100644 --- a/usr/src/lib/libc/gen/getdiskbyname.3 +++ b/usr/src/lib/libc/gen/getdiskbyname.3 @@ -1,28 +1,38 @@ -.\" Copyright (c) 1983 Regents of the University of California. -.\" All rights reserved. The Berkeley software License Agreement -.\" specifies the terms and conditions for redistribution. +.\" Copyright (c) 1983, 1991 The Regents of the University of California. +.\" All rights reserved. .\" -.\" @(#)getdiskbyname.3 6.3 (Berkeley) %G% +.\" %sccs.include.redist.man% .\" -.TH GETDISKBYNAME 3 "" -.UC 5 -.SH NAME -getdiskbyname \- get generic disk description by its name -.SH SYNOPSIS -.nf -.B #include -.PP -.B struct disklabel * -.B getdiskbyname(name) -.B char *name; -.fi -.SH DESCRIPTION -.I Getdiskbyname -takes a disk name (e.g. rm03) and returns a prototype disk label +.\" @(#)getdiskbyname.3 6.6 (Berkeley) %G% +.\" +.Dd +.Dt GETDISKBYNAME 3 +.Os BSD 4.2 +.Sh NAME +.Nm getdiskbyname +.Nd get generic disk description by its name +.Sh SYNOPSIS +.Fd #include +.Ft struct disklabel * +.Fn getdiskbyname "const char *name" +.Sh DESCRIPTION +The +.Fn getdiskbyname +function +takes a disk name (e.g. +.Ql rm03 ) +and returns a prototype disk label describing its geometry information and the standard disk partition tables. All information is obtained from the -.IR disktab (5) +.Xr disktab 5 file. -.SH "SEE ALSO" -disklabel(5), disktab(5), disklabel(8) +.Sh SEE ALSO +.Xr disklabel 5 , +.Xr disktab 5 , +.Xr disklabel 8 +.Sh HISTORY +The +.Fn getdiskbyname +function appeared in +.Bx 4.3 .