1244557Sbrooks/* $FreeBSD: releng/10.3/lib/libnetbsd/stdlib.h 244557 2012-12-21 20:37:38Z brooks $ */ 2244557Sbrooks 3244557Sbrooks/*- 4244557Sbrooks * Copyright (c) 2012 SRI International 5244557Sbrooks * Copyright (c) 2001-2002,2004 The NetBSD Foundation, Inc. 6244557Sbrooks * All rights reserved. 7244557Sbrooks * 8244557Sbrooks * This code is derived from software contributed to The NetBSD Foundation 9244557Sbrooks * by Luke Mewburn. 10244557Sbrooks * 11244557Sbrooks * Redistribution and use in source and binary forms, with or without 12244557Sbrooks * modification, are permitted provided that the following conditions 13244557Sbrooks * are met: 14244557Sbrooks * 1. Redistributions of source code must retain the above copyright 15244557Sbrooks * notice, this list of conditions and the following disclaimer. 16244557Sbrooks * 2. Redistributions in binary form must reproduce the above copyright 17244557Sbrooks * notice, this list of conditions and the following disclaimer in the 18244557Sbrooks * documentation and/or other materials provided with the distribution. 19244557Sbrooks * 20244557Sbrooks * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 21244557Sbrooks * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22244557Sbrooks * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23244557Sbrooks * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24244557Sbrooks * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25244557Sbrooks * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26244557Sbrooks * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27244557Sbrooks * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28244557Sbrooks * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29244557Sbrooks * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30244557Sbrooks * POSSIBILITY OF SUCH DAMAGE. 31244557Sbrooks */ 32244557Sbrooks/*- 33244557Sbrooks * Copyright (c) 1992, 1993 34244557Sbrooks * The Regents of the University of California. All rights reserved. 35244557Sbrooks * 36244557Sbrooks * Redistribution and use in source and binary forms, with or without 37244557Sbrooks * modification, are permitted provided that the following conditions 38244557Sbrooks * are met: 39244557Sbrooks * 1. Redistributions of source code must retain the above copyright 40244557Sbrooks * notice, this list of conditions and the following disclaimer. 41244557Sbrooks * 2. Redistributions in binary form must reproduce the above copyright 42244557Sbrooks * notice, this list of conditions and the following disclaimer in the 43244557Sbrooks * documentation and/or other materials provided with the distribution. 44244557Sbrooks * 3. Neither the name of the University nor the names of its contributors 45244557Sbrooks * may be used to endorse or promote products derived from this software 46244557Sbrooks * without specific prior written permission. 47244557Sbrooks * 48244557Sbrooks * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 49244557Sbrooks * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 50244557Sbrooks * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 51244557Sbrooks * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 52244557Sbrooks * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 53244557Sbrooks * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 54244557Sbrooks * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 55244557Sbrooks * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 56244557Sbrooks * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 57244557Sbrooks * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58244557Sbrooks * SUCH DAMAGE. 59244557Sbrooks */ 60244557Sbrooks 61244557Sbrooks#ifndef _LIBNETBSD_STDLIB_H_ 62244557Sbrooks#define _LIBNETBSD_STDLIB_H_ 63244557Sbrooks 64244557Sbrooks#include_next <stdlib.h> 65244557Sbrooks 66244557Sbrookslong long strsuftoll(const char *, const char *, long long, long long); 67244557Sbrookslong long strsuftollx(const char *, const char *, 68244557Sbrooks long long, long long, char *, size_t); 69244557Sbrooks 70244557Sbrooks#endif /* _LIBNETBSD_STDLIB_H_ */ 71