xref: /openbsd-src/lib/libutil/getmaxpartitions.3 (revision 0ee0a8052485e77e93f77dc91cc59ad80b37bf80)
1*0ee0a805Sjmc.\"   $OpenBSD: getmaxpartitions.3,v 1.8 2019/05/15 18:42:30 jmc Exp $
24b826ba8Sderaadt.\"	$NetBSD: getmaxpartitions.3,v 1.1 1996/05/16 07:03:30 thorpej Exp $
34b826ba8Sderaadt.\"
44b826ba8Sderaadt.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
54b826ba8Sderaadt.\" All rights reserved.
64b826ba8Sderaadt.\"
74b826ba8Sderaadt.\" This code is derived from software contributed to The NetBSD Foundation
84b826ba8Sderaadt.\" by Jason R. Thorpe.
94b826ba8Sderaadt.\"
104b826ba8Sderaadt.\" Redistribution and use in source and binary forms, with or without
114b826ba8Sderaadt.\" modification, are permitted provided that the following conditions
124b826ba8Sderaadt.\" are met:
134b826ba8Sderaadt.\" 1. Redistributions of source code must retain the above copyright
144b826ba8Sderaadt.\"    notice, this list of conditions and the following disclaimer.
154b826ba8Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright
164b826ba8Sderaadt.\"    notice, this list of conditions and the following disclaimer in the
174b826ba8Sderaadt.\"    documentation and/or other materials provided with the distribution.
184b826ba8Sderaadt.\"
194b826ba8Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
204b826ba8Sderaadt.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
214b826ba8Sderaadt.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
224b826ba8Sderaadt.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
234b826ba8Sderaadt.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
244b826ba8Sderaadt.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
254b826ba8Sderaadt.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
264b826ba8Sderaadt.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
274b826ba8Sderaadt.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
284b826ba8Sderaadt.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
294b826ba8Sderaadt.\" POSSIBILITY OF SUCH DAMAGE.
304b826ba8Sderaadt.\"
31*0ee0a805Sjmc.Dd $Mdocdate: May 15 2019 $
324b826ba8Sderaadt.Dt GETMAXPARTITIONS 3
3319244f19Smichaels.Os
344b826ba8Sderaadt.Sh NAME
354b826ba8Sderaadt.Nm getmaxpartitions
364b826ba8Sderaadt.Nd get the maximum number of partitions allowed per disk
374b826ba8Sderaadt.Sh SYNOPSIS
3886f9d4cdStedu.In util.h
394b826ba8Sderaadt.Ft int
404b826ba8Sderaadt.Fn getmaxpartitions void
414b826ba8Sderaadt.Sh DESCRIPTION
42960f8fbdSderaadt.Fn getmaxpartitions
434b826ba8Sderaadtreturns the number of partitions that are allowed per disk on the
444b826ba8Sderaadtsystem.
454b826ba8Sderaadt.Sh SEE ALSO
46*0ee0a805Sjmc.Xr sysctl 2 ,
47*0ee0a805Sjmc.Xr getrawpartition 3
484b826ba8Sderaadt.Sh HISTORY
494b826ba8SderaadtThe
504b826ba8Sderaadt.Nm
514b826ba8Sderaadtfunction call appeared in
524b826ba8Sderaadt.Nx 1.2 .
53