1f14a9b1pfg/*-
2f14a9b1pfg * Copyright (c) 2011, 2012 The FreeBSD Foundation
3f14a9b1pfg * All rights reserved.
4f14a9b1pfg *
5f14a9b1pfg * Redistribution and use in source and binary forms, with or without
6f14a9b1pfg * modification, are permitted provided that the following conditions
7f14a9b1pfg * are met:
8f14a9b1pfg * 1. Redistributions of source code must retain the above copyright
9f14a9b1pfg *    notice, this list of conditions and the following disclaimer.
10f14a9b1pfg * 2. Redistributions in binary form must reproduce the above copyright
11f14a9b1pfg *    notice, this list of conditions and the following disclaimer in the
12f14a9b1pfg *    documentation and/or other materials provided with the distribution.
13f14a9b1pfg *
14f14a9b1pfg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15f14a9b1pfg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16f14a9b1pfg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17f14a9b1pfg * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18f14a9b1pfg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19f14a9b1pfg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20f14a9b1pfg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21f14a9b1pfg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22f14a9b1pfg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23f14a9b1pfg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24f14a9b1pfg * SUCH DAMAGE.
25f14a9b1pfg *
26f14a9b1pfg * $FreeBSD$
27f14a9b1pfg */
28f14a9b1pfg
29f14a9b1pfg#ifndef _LOCALE_T_DEFINED
30f14a9b1pfg#define _LOCALE_T_DEFINED
31f14a9b1pfgtypedef struct	_xlocale *locale_t;
32f14a9b1pfg#endif
33f14a9b1pfg
34f14a9b1pfg/*
35f14a9b1pfg * This file is included from both strings.h and xlocale.h.  We need to expose
36f14a9b1pfg * the declarations unconditionally if we are included from xlocale.h, but only
37f14a9b1pfg * if we are in POSIX2008 mode if included from string.h.
38f14a9b1pfg */
39f14a9b1pfg
40f14a9b1pfg#ifndef _XLOCALE_STRINGS1_H
41f14a9b1pfg#define _XLOCALE_STRINGS1_H
42f14a9b1pfg
43f14a9b1pfg/*
44f14a9b1pfg * POSIX2008 functions
45f14a9b1pfg */
46f14a9b1pfgint	 strcasecmp_l(const char *, const char *, locale_t);
47f14a9b1pfgint	 strncasecmp_l(const char *, const char *, size_t, locale_t);
48f14a9b1pfg#endif /* _XLOCALE_STRINGS1_H */
49