From e9ce3d82e48d06f0b8c48b58c5d8a66c5a5d3c9b Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 23 Jan 1997 06:29:01 +0000 Subject: Adds slice_type_name() which extends chunk_n[] for subtype's too. Curorary review by: phk --- lib/libdisk/libdisk.3 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'lib/libdisk/libdisk.3') diff --git a/lib/libdisk/libdisk.3 b/lib/libdisk/libdisk.3 index 0e44b806bbba..83a26f7548c6 100644 --- a/lib/libdisk/libdisk.3 +++ b/lib/libdisk/libdisk.3 @@ -57,11 +57,19 @@ .Nm MakeDevDisk , .Nm ShowChunkFlags , .Nm ChunkCanBeRoot , +.Nm chunk_n , +.Nm slice_type_name .Nd library interface to slice and partition labels .Sh SYNOPSIS .Fd #include .Fd #include .Dv extern const u_char *boot1, boot2; +.\" What is the correct way to cause a single line break ??? +.Bd -literal +.Dv extern const char *chunk_n[]; +.Ed +.Ft const char * +.Fn slice_type_name "int type" "int subtype" .Ft struct disk * .Fn Open_Disk "const char *devname" .Ft struct disk * @@ -310,6 +318,17 @@ returns a string to show flags. .Pp .Fn ChunkCanBeRoot returns NULL if chunk can be +.Pp +Chunk name strings can be accessed directly using the external array +.Va chunk_n . +.Pp +.Fn slice_type_name +returns the name strings associated with the specified +.Ql type . +.Ql subtype . +If +.Fn slice_type_name +returns "unknown" for slices it isn't familar with. .Ql / . .Sh AUTHOR .Nm Libdisk -- cgit v1.3