]>
Commit | Line | Data |
---|---|---|
3d9156a7 A |
1 | /* |
2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * This file contains Original Code and/or Modifications of Original Code | |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. Please obtain a copy of the License at | |
10 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
11 | * file. | |
12 | * | |
13 | * The Original Code and all software distributed under the License are | |
14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
18 | * Please see the License for the specific language governing rights and | |
19 | * limitations under the License. | |
20 | * | |
21 | * @APPLE_LICENSE_HEADER_END@ | |
22 | */ | |
23 | ||
24 | #ifndef _XLOCALE__STDLIB_H_ | |
25 | #define _XLOCALE__STDLIB_H_ | |
26 | ||
e07eda1a A |
27 | #include <sys/cdefs.h> |
28 | #include <sys/_types/_size_t.h> | |
29 | #include <sys/_types/_wchar_t.h> | |
30 | #include <_xlocale.h> | |
31 | ||
3d9156a7 A |
32 | __BEGIN_DECLS |
33 | double atof_l(const char *, locale_t); | |
34 | int atoi_l(const char *, locale_t); | |
35 | long atol_l(const char *, locale_t); | |
36 | #if !__DARWIN_NO_LONG_LONG | |
37 | long long | |
38 | atoll_l(const char *, locale_t); | |
39 | #endif /* !__DARWIN_NO_LONG_LONG */ | |
40 | int mblen_l(const char *, size_t, locale_t); | |
41 | size_t mbstowcs_l(wchar_t * __restrict , const char * __restrict, size_t, | |
42 | locale_t); | |
43 | int mbtowc_l(wchar_t * __restrict, const char * __restrict, size_t, | |
44 | locale_t); | |
224c7076 A |
45 | double strtod_l(const char *, char **, locale_t) __DARWIN_ALIAS(strtod_l); |
46 | float strtof_l(const char *, char **, locale_t) __DARWIN_ALIAS(strtof_l); | |
3d9156a7 A |
47 | long strtol_l(const char *, char **, int, locale_t); |
48 | long double | |
ad3c9f2a | 49 | strtold_l(const char *, char **, locale_t); |
3d9156a7 A |
50 | long long |
51 | strtoll_l(const char *, char **, int, locale_t); | |
52 | #if !__DARWIN_NO_LONG_LONG | |
53 | long long | |
54 | strtoq_l(const char *, char **, int, locale_t); | |
55 | #endif /* !__DARWIN_NO_LONG_LONG */ | |
56 | unsigned long | |
57 | strtoul_l(const char *, char **, int, locale_t); | |
58 | unsigned long long | |
59 | strtoull_l(const char *, char **, int, locale_t); | |
60 | #if !__DARWIN_NO_LONG_LONG | |
61 | unsigned long long | |
62 | strtouq_l(const char *, char **, int, locale_t); | |
63 | #endif /* !__DARWIN_NO_LONG_LONG */ | |
64 | size_t wcstombs_l(char * __restrict, const wchar_t * __restrict, size_t, | |
65 | locale_t); | |
66 | int wctomb_l(char *, wchar_t, locale_t); | |
224c7076 A |
67 | |
68 | /* Poison the following routines if -fshort-wchar is set */ | |
69 | #if !defined(__cplusplus) && defined(__WCHAR_MAX__) && __WCHAR_MAX__ <= 0xffffU | |
70 | #pragma GCC poison mbstowcs_l mbtowc_l wcstombs_l wctomb_l | |
71 | #endif | |
3d9156a7 A |
72 | __END_DECLS |
73 | ||
74 | #endif /* _XLOCALE__STDLIB_H_ */ |