xref: /freebsd/lib/libnetbsd/stdlib.h (revision b61a573019428cbdc38ed03be9ecd2482011ea66)
16bea8766SBrooks Davis /* $FreeBSD$ */
26bea8766SBrooks Davis 
36bea8766SBrooks Davis /*-
4*b61a5730SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
55e53a4f9SPedro F. Giffuni  *
66bea8766SBrooks Davis  * Copyright (c) 2012 SRI International
76bea8766SBrooks Davis  * Copyright (c) 2001-2002,2004 The NetBSD Foundation, Inc.
86bea8766SBrooks Davis  * All rights reserved.
96bea8766SBrooks Davis  *
106bea8766SBrooks Davis  * This code is derived from software contributed to The NetBSD Foundation
116bea8766SBrooks Davis  * by Luke Mewburn.
126bea8766SBrooks Davis  *
136bea8766SBrooks Davis  * Redistribution and use in source and binary forms, with or without
146bea8766SBrooks Davis  * modification, are permitted provided that the following conditions
156bea8766SBrooks Davis  * are met:
166bea8766SBrooks Davis  * 1. Redistributions of source code must retain the above copyright
176bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer.
186bea8766SBrooks Davis  * 2. Redistributions in binary form must reproduce the above copyright
196bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer in the
206bea8766SBrooks Davis  *    documentation and/or other materials provided with the distribution.
216bea8766SBrooks Davis  *
226bea8766SBrooks Davis  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
236bea8766SBrooks Davis  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
246bea8766SBrooks Davis  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
256bea8766SBrooks Davis  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
266bea8766SBrooks Davis  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
276bea8766SBrooks Davis  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
286bea8766SBrooks Davis  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
296bea8766SBrooks Davis  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
306bea8766SBrooks Davis  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
316bea8766SBrooks Davis  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
326bea8766SBrooks Davis  * POSSIBILITY OF SUCH DAMAGE.
336bea8766SBrooks Davis  */
346bea8766SBrooks Davis /*-
356bea8766SBrooks Davis  * Copyright (c) 1992, 1993
366bea8766SBrooks Davis  *	The Regents of the University of California.  All rights reserved.
376bea8766SBrooks Davis  *
386bea8766SBrooks Davis  * Redistribution and use in source and binary forms, with or without
396bea8766SBrooks Davis  * modification, are permitted provided that the following conditions
406bea8766SBrooks Davis  * are met:
416bea8766SBrooks Davis  * 1. Redistributions of source code must retain the above copyright
426bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer.
436bea8766SBrooks Davis  * 2. Redistributions in binary form must reproduce the above copyright
446bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer in the
456bea8766SBrooks Davis  *    documentation and/or other materials provided with the distribution.
466bea8766SBrooks Davis  * 3. Neither the name of the University nor the names of its contributors
476bea8766SBrooks Davis  *    may be used to endorse or promote products derived from this software
486bea8766SBrooks Davis  *    without specific prior written permission.
496bea8766SBrooks Davis  *
506bea8766SBrooks Davis  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
516bea8766SBrooks Davis  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
526bea8766SBrooks Davis  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
536bea8766SBrooks Davis  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
546bea8766SBrooks Davis  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
556bea8766SBrooks Davis  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
566bea8766SBrooks Davis  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
576bea8766SBrooks Davis  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
586bea8766SBrooks Davis  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
596bea8766SBrooks Davis  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
606bea8766SBrooks Davis  * SUCH DAMAGE.
616bea8766SBrooks Davis  */
626bea8766SBrooks Davis 
636bea8766SBrooks Davis #ifndef _LIBNETBSD_STDLIB_H_
646bea8766SBrooks Davis #define _LIBNETBSD_STDLIB_H_
656bea8766SBrooks Davis 
666bea8766SBrooks Davis #include_next <stdlib.h>
676bea8766SBrooks Davis 
686bea8766SBrooks Davis long long strsuftoll(const char *, const char *, long long, long long);
696bea8766SBrooks Davis long long strsuftollx(const char *, const char *,
706bea8766SBrooks Davis     long long, long long, char *, size_t);
716bea8766SBrooks Davis 
726bea8766SBrooks Davis #endif /* _LIBNETBSD_STDLIB_H_ */
73