10d5acd74SJohn Marino /*- 20d5acd74SJohn Marino * Copyright (c) 2011, 2012 The FreeBSD Foundation 30d5acd74SJohn Marino * All rights reserved. 40d5acd74SJohn Marino * 50d5acd74SJohn Marino * Redistribution and use in source and binary forms, with or without 60d5acd74SJohn Marino * modification, are permitted provided that the following conditions 70d5acd74SJohn Marino * are met: 80d5acd74SJohn Marino * 1. Redistributions of source code must retain the above copyright 90d5acd74SJohn Marino * notice, this list of conditions and the following disclaimer. 100d5acd74SJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 110d5acd74SJohn Marino * notice, this list of conditions and the following disclaimer in the 120d5acd74SJohn Marino * documentation and/or other materials provided with the distribution. 130d5acd74SJohn Marino * 140d5acd74SJohn Marino * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 150d5acd74SJohn Marino * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 160d5acd74SJohn Marino * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 170d5acd74SJohn Marino * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 180d5acd74SJohn Marino * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 190d5acd74SJohn Marino * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 200d5acd74SJohn Marino * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 210d5acd74SJohn Marino * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 220d5acd74SJohn Marino * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 230d5acd74SJohn Marino * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 240d5acd74SJohn Marino * SUCH DAMAGE. 250d5acd74SJohn Marino * 260d5acd74SJohn Marino * $FreeBSD: head/include/xlocale/_string.h 231673 2012-02-14 12:03:23Z theraven $ 270d5acd74SJohn Marino */ 280d5acd74SJohn Marino 290d5acd74SJohn Marino #ifndef _LOCALE_T_DEFINED 300d5acd74SJohn Marino #define _LOCALE_T_DEFINED 310d5acd74SJohn Marino typedef struct _xlocale *locale_t; 320d5acd74SJohn Marino #endif 330d5acd74SJohn Marino 340d5acd74SJohn Marino /* 350d5acd74SJohn Marino * This file is included from both string.h and xlocale.h. We need to expose 360d5acd74SJohn Marino * the declarations unconditionally if we are included from xlocale.h, but only 370d5acd74SJohn Marino * if we are in POSIX2008 mode if included from string.h. 380d5acd74SJohn Marino */ 390d5acd74SJohn Marino 400d5acd74SJohn Marino #ifndef _XLOCALE_STRING1_H 410d5acd74SJohn Marino #define _XLOCALE_STRING1_H 420d5acd74SJohn Marino 430d5acd74SJohn Marino /* 440d5acd74SJohn Marino * POSIX2008 functions 450d5acd74SJohn Marino */ 460d5acd74SJohn Marino int strcoll_l(const char *, const char *, locale_t); 47*78c205c5SSascha Wildner char *strerror_l(int, locale_t); 48d33005aaSSascha Wildner size_t strxfrm_l(char * __restrict, const char * __restrict, size_t, 49d33005aaSSascha Wildner locale_t); 500d5acd74SJohn Marino #endif /* _XLOCALE_STRING1_H */ 510d5acd74SJohn Marino 520d5acd74SJohn Marino /* 530d5acd74SJohn Marino * xlocale extensions 540d5acd74SJohn Marino */ 550d5acd74SJohn Marino #ifdef _XLOCALE_H_ 560d5acd74SJohn Marino #ifndef _XLOCALE_STRING2_H 570d5acd74SJohn Marino #define _XLOCALE_STRING2_H 580d5acd74SJohn Marino char *strcasestr_l(const char *, const char *, locale_t); 590d5acd74SJohn Marino 600d5acd74SJohn Marino #endif /* _XLOCALE_STRING2_H */ 610d5acd74SJohn Marino #endif /* _XLOCALE_H_ */ 62