Home | History | Annotate | Line # | Download | only in libutil
util.3 revision 1.20
 $NetBSD: util.3,v 1.20 2010/05/04 07:07:12 jruoho Exp $

Copyright (c) 2001 The NetBSD Foundation, Inc.
All rights reserved.

This code is derived from software contributed to The NetBSD Foundation
by Gregory McGarry.

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.

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 May 4, 2010 .Dt UTIL 3 .Os .Sh NAME .Nm util .Nd system utilities library .Sh LIBRARY .Lb libutil .Sh DESCRIPTION The .Nm library is the system utilities library and contains various system-dependent utility routines used in a wide variety of system daemons. The abstracted functions are mostly related to pseudo-terminals and login accounting. These routines are .Nx Ns -specific and are not portable. Their use should be restricted.

p Declarations for these functions may be obtained from the include file n util.h . The .Nm library and the associated functions are implemented within the

a /usr/src/lib/libutil directory. .Sh FILES l -tag -width /usr/lib/libutil_p.a -compact t Pa /usr/lib/libutil.a static util library t Pa /usr/lib/libutil.so dynamic util library t Pa /usr/lib/libutil_p.a static util library compiled for profiling .El .Sh SEE ALSO .Xr efun 3 , .Xr intro 3