1238438Sdteske/*- 2238438Sdteske * Copyright (c) 2003 David Schultz <das@FreeBSD.ORG> 3249746Sdteske * All rights reserved. 4252980Sdteske * 5238438Sdteske * Copyright (c) 2011 The FreeBSD Foundation 6238438Sdteske * All rights reserved. 7238438Sdteske * Portions of this software were developed by David Chisnall 8238438Sdteske * under sponsorship from the FreeBSD Foundation. 9238438Sdteske * 10238438Sdteske * Redistribution and use in source and binary forms, with or without 11238438Sdteske * modification, are permitted provided that the following conditions 12238438Sdteske * are met: 13238438Sdteske * 1. Redistributions of source code must retain the above copyright 14238438Sdteske * notice, this list of conditions and the following disclaimer. 15238438Sdteske * 2. Redistributions in binary form must reproduce the above copyright 16252987Sdteske * notice, this list of conditions and the following disclaimer in the 17238438Sdteske * documentation and/or other materials provided with the distribution. 18238438Sdteske * 19238438Sdteske * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 20252987Sdteske * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21238438Sdteske * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22238438Sdteske * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 23238438Sdteske * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24238438Sdteske * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25238438Sdteske * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26238438Sdteske * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27238438Sdteske * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28238438Sdteske * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29238438Sdteske * SUCH DAMAGE. 30238438Sdteske */ 31240684Sdteske 32240684Sdteske/* 33244675Sdteske * Machine-dependent glue to integrate David Gay's gdtoa 34240684Sdteske * package into libc for architectures where a long double 35240684Sdteske * is the same as a double, such as the Alpha. 36240684Sdteske */ 37238438Sdteske 38240684Sdteske#include <sys/cdefs.h> 39238438Sdteske__FBSDID("$FreeBSD$"); 40238438Sdteske 41260678Sdteske#include "gdtoaimp.h" 42260678Sdteske#undef strtold_l 43238438Sdteske 44238438Sdteskelong double 45238438Sdteskestrtold_l(const char * __restrict s, char ** __restrict sp, locale_t locale) 46238438Sdteske{ 47238438Sdteske 48238438Sdteske return strtod_l(s, sp, locale); 49238438Sdteske} 50238438Sdteske