17029Sjgish/*
27065Skatleman * Copyright 2000 Massachusetts Institute of Technology
37029Sjgish *
47029Sjgish * Permission to use, copy, modify, and distribute this software and
57029Sjgish * its documentation for any purpose and without fee is hereby
67029Sjgish * granted, provided that both the above copyright notice and this
77029Sjgish * permission notice appear in all copies, that both the above
87029Sjgish * copyright notice and this permission notice appear in all
97029Sjgish * supporting documentation, and that the name of M.I.T. not be used
107029Sjgish * in advertising or publicity pertaining to distribution of the
117029Sjgish * software without specific, written prior permission.  M.I.T. makes
127029Sjgish * no representations about the suitability of this software for any
137029Sjgish * purpose.  It is provided "as is" without express or implied
147029Sjgish * warranty.
157029Sjgish *
167029Sjgish * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''.  M.I.T. DISCLAIMS
177029Sjgish * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE,
187029Sjgish * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
197029Sjgish * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
207029Sjgish * SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
217029Sjgish * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
227029Sjgish * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
237029Sjgish * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
247029Sjgish * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
257029Sjgish * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
267029Sjgish * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
277029Sjgish * SUCH DAMAGE.
287029Sjgish *
297029Sjgish * $FreeBSD$
307634Salanb */
317029Sjgish
327029Sjgish#ifdef STABLE
337029Sjgishtypedef long long intmax_t;
347029Sjgish#define	PRIdMAX	"lld"
357029Sjgish#else
367029Sjgish#include <inttypes.h>
377029Sjgish#endif
387029Sjgish
397029Sjgishint	find_confstr(const char *name, int *key);
407029Sjgishint	find_limit(const char *name, intmax_t *value);
417029Sjgishint	find_pathconf(const char *name, int *key);
427029Sjgishint	find_progenv(const char *name, const char **alt_path);
437029Sjgishint	find_sysconf(const char *name, int *key);
447029Sjgish