machdep_ldisd.c (6a66acb565dde6d5b0ee52eef2a631fbb09df153) machdep_ldisd.c (3c87aa1d3dc1d8dad3efad322852a8e1e76dee55)
1/*-
2 * Copyright (c) 2003 David Schultz <das@FreeBSD.ORG>
3 * All rights reserved.
4 *
1/*-
2 * Copyright (c) 2003 David Schultz <das@FreeBSD.ORG>
3 * All rights reserved.
4 *
5 * Copyright (c) 2011 The FreeBSD Foundation
6 * All rights reserved.
7 * Portions of this software were developed by David Chisnall
8 * under sponsorship from the FreeBSD Foundation.
9 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.

--- 16 unchanged lines hidden (view full) ---

29 * package into libc for architectures where a long double
30 * is the same as a double, such as the Alpha.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD$");
35
36#include "gdtoaimp.h"
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.

--- 16 unchanged lines hidden (view full) ---

34 * package into libc for architectures where a long double
35 * is the same as a double, such as the Alpha.
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD$");
40
41#include "gdtoaimp.h"
42#undef strtold_l
37
38long double
43
44long double
39strtold(const char * __restrict s, char ** __restrict sp)
45strtold_l(const char * __restrict s, char ** __restrict sp, locale_t locale)
40{
41
46{
47
42 return strtod(s, sp);
48 return strtod_l(s, sp, locale);
43}
49}