xref: /freebsd/lib/libnetbsd/stdlib.h (revision 6bea8766443cc86412928fa25a6e6a4b70a0a3b0)
1*6bea8766SBrooks Davis /* $FreeBSD$ */
2*6bea8766SBrooks Davis 
3*6bea8766SBrooks Davis /*-
4*6bea8766SBrooks Davis  * Copyright (c) 2012 SRI International
5*6bea8766SBrooks Davis  * Copyright (c) 2001-2002,2004 The NetBSD Foundation, Inc.
6*6bea8766SBrooks Davis  * All rights reserved.
7*6bea8766SBrooks Davis  *
8*6bea8766SBrooks Davis  * This code is derived from software contributed to The NetBSD Foundation
9*6bea8766SBrooks Davis  * by Luke Mewburn.
10*6bea8766SBrooks Davis  *
11*6bea8766SBrooks Davis  * Redistribution and use in source and binary forms, with or without
12*6bea8766SBrooks Davis  * modification, are permitted provided that the following conditions
13*6bea8766SBrooks Davis  * are met:
14*6bea8766SBrooks Davis  * 1. Redistributions of source code must retain the above copyright
15*6bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer.
16*6bea8766SBrooks Davis  * 2. Redistributions in binary form must reproduce the above copyright
17*6bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer in the
18*6bea8766SBrooks Davis  *    documentation and/or other materials provided with the distribution.
19*6bea8766SBrooks Davis  *
20*6bea8766SBrooks Davis  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21*6bea8766SBrooks Davis  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22*6bea8766SBrooks Davis  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23*6bea8766SBrooks Davis  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24*6bea8766SBrooks Davis  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25*6bea8766SBrooks Davis  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26*6bea8766SBrooks Davis  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27*6bea8766SBrooks Davis  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28*6bea8766SBrooks Davis  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29*6bea8766SBrooks Davis  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30*6bea8766SBrooks Davis  * POSSIBILITY OF SUCH DAMAGE.
31*6bea8766SBrooks Davis  */
32*6bea8766SBrooks Davis /*-
33*6bea8766SBrooks Davis  * Copyright (c) 1992, 1993
34*6bea8766SBrooks Davis  *	The Regents of the University of California.  All rights reserved.
35*6bea8766SBrooks Davis  *
36*6bea8766SBrooks Davis  * Redistribution and use in source and binary forms, with or without
37*6bea8766SBrooks Davis  * modification, are permitted provided that the following conditions
38*6bea8766SBrooks Davis  * are met:
39*6bea8766SBrooks Davis  * 1. Redistributions of source code must retain the above copyright
40*6bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer.
41*6bea8766SBrooks Davis  * 2. Redistributions in binary form must reproduce the above copyright
42*6bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer in the
43*6bea8766SBrooks Davis  *    documentation and/or other materials provided with the distribution.
44*6bea8766SBrooks Davis  * 3. Neither the name of the University nor the names of its contributors
45*6bea8766SBrooks Davis  *    may be used to endorse or promote products derived from this software
46*6bea8766SBrooks Davis  *    without specific prior written permission.
47*6bea8766SBrooks Davis  *
48*6bea8766SBrooks Davis  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
49*6bea8766SBrooks Davis  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
50*6bea8766SBrooks Davis  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
51*6bea8766SBrooks Davis  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
52*6bea8766SBrooks Davis  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
53*6bea8766SBrooks Davis  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
54*6bea8766SBrooks Davis  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
55*6bea8766SBrooks Davis  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
56*6bea8766SBrooks Davis  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57*6bea8766SBrooks Davis  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58*6bea8766SBrooks Davis  * SUCH DAMAGE.
59*6bea8766SBrooks Davis  */
60*6bea8766SBrooks Davis 
61*6bea8766SBrooks Davis #ifndef _LIBNETBSD_STDLIB_H_
62*6bea8766SBrooks Davis #define _LIBNETBSD_STDLIB_H_
63*6bea8766SBrooks Davis 
64*6bea8766SBrooks Davis #include_next <stdlib.h>
65*6bea8766SBrooks Davis 
66*6bea8766SBrooks Davis long long strsuftoll(const char *, const char *, long long, long long);
67*6bea8766SBrooks Davis long long strsuftollx(const char *, const char *,
68*6bea8766SBrooks Davis     long long, long long, char *, size_t);
69*6bea8766SBrooks Davis 
70*6bea8766SBrooks Davis #endif /* _LIBNETBSD_STDLIB_H_ */
71