Module Name:    src
Committed By:   christos
Date:           Sun Nov 13 22:03:34 UTC 2011

Modified Files:
        src/lib/libutil: Makefile
Added Files:
        src/lib/libutil: getfstypename.3

Log Message:
add manual page


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/lib/libutil/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/libutil/getfstypename.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libutil/Makefile
diff -u src/lib/libutil/Makefile:1.68 src/lib/libutil/Makefile:1.69
--- src/lib/libutil/Makefile:1.68	Thu Oct 20 22:05:36 2011
+++ src/lib/libutil/Makefile	Sun Nov 13 17:03:34 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.68 2011/10/21 02:05:36 christos Exp $
+#	$NetBSD: Makefile,v 1.69 2011/11/13 22:03:34 christos Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/4/93
 
 USE_SHLIBDIR=	yes
@@ -21,9 +21,8 @@ SRCS+=	efun.c getbootfile.c getlabelsect
 	secure_path.c sockaddr_snprintf.c stat_flags.c \
 	strpct.c ttyaction.c ttymsg.c
 
-MAN=	efun.3 getbootfile.3 getlabelsector.3 getmaxpartitions.3 \
-	getmntopts.3 \
-	getrawpartition.3 \
+MAN=	efun.3 getbootfile.3 getfstypename.3 getlabelsector.3 \
+	getmaxpartitions.3 getmntopts.3 getrawpartition.3 \
 	login.3 login_cap.3 loginx.3 \
 	disklabel_dkcksum.3 disklabel_scan.3 \
 	opendisk.3 openpty.3 parsedate.3 pidfile.3 pidlock.3 \

Added files:

Index: src/lib/libutil/getfstypename.3
diff -u /dev/null src/lib/libutil/getfstypename.3:1.1
--- /dev/null	Sun Nov 13 17:03:34 2011
+++ src/lib/libutil/getfstypename.3	Sun Nov 13 17:03:34 2011
@@ -0,0 +1,63 @@
+.\"	$NetBSD: getfstypename.3,v 1.1 2011/11/13 22:03:34 christos Exp $
+.\"
+.\"
+.\" Copyright (c) 2011 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Christos Zoulas.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"        This product includes software developed by the NetBSD
+.\"        Foundation, Inc. and its contributors.
+.\" 4. Neither the name of The NetBSD Foundation nor the names of its
+.\"    contributors may be used to endorse or promote products derived
+.\"    from this software without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd November 13, 2011
+.Dt GETFSTYPENAME 3
+.Os
+.Sh NAME
+.Nm getfstypename
+.Nd convert a partition file system type integer to a wedge partition type name.
+.Sh LIBRARY
+.Lb libutil
+.Sh SYNOPSIS
+.In util.h
+.Ft const char *
+.Fn getfstypename "int fstype"
+.Sh DESCRIPTION
+.Fn getfstypename
+returns the disk wedge partitition type name corresponding to the
+.Ar fstype
+argument as specified in
+.In sys/disk.h
+or
+.Dv DKW_PTYPE_UNKNOWN
+if one is not found.
+.Sh HISTORY
+The
+.Fn getfstypename
+function call appeared in
+.Nx 6.0 .

Reply via email to