Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil add manual page



details:   https://anonhg.NetBSD.org/src/rev/79857bb9bf4c
branches:  trunk
changeset: 771187:79857bb9bf4c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 13 22:03:34 2011 +0000

description:
add manual page

diffstat:

 lib/libutil/Makefile        |   7 ++--
 lib/libutil/getfstypename.3 |  63 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+), 4 deletions(-)

diffs (88 lines):

diff -r f7c9830baf74 -r 79857bb9bf4c lib/libutil/Makefile
--- a/lib/libutil/Makefile      Sun Nov 13 21:57:14 2011 +0000
+++ b/lib/libutil/Makefile      Sun Nov 13 22:03:34 2011 +0000
@@ -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 @@
        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 \
diff -r f7c9830baf74 -r 79857bb9bf4c lib/libutil/getfstypename.3
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libutil/getfstypename.3       Sun Nov 13 22:03:34 2011 +0000
@@ -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 .



Home | Main Index | Thread Index | Old Index