]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Locale/setlocale1.c
Update or add comments to files and functions for use by Doxygen.
[mirror_edk2.git] / StdLib / LibC / Locale / setlocale1.c
CommitLineData
59d13433 1/** @file\r
2 Single-byte character version of the setlocale function.\r
3\r
4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials are licensed and made available under\r
6 the terms and conditions of the BSD License that accompanies this distribution.\r
7 The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
2aa62f2b 12\r
2aa62f2b 13 * Copyright (c)1999 Citrus Project,\r
14 * All rights reserved.\r
15 *\r
16 * Redistribution and use in source and binary forms, with or without\r
17 * modification, are permitted provided that the following conditions\r
18 * are met:\r
19 * 1. Redistributions of source code must retain the above copyright\r
20 * notice, this list of conditions and the following disclaimer.\r
21 * 2. Redistributions in binary form must reproduce the above copyright\r
22 * notice, this list of conditions and the following disclaimer in the\r
23 * documentation and/or other materials provided with the distribution.\r
24 *\r
25 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
35 * SUCH DAMAGE.\r
59d13433 36\r
37 * NetBSD: setlocale1.c,v 1.2 2003/03/11 17:23:07 tshiozak Exp\r
38**/\r
2aa62f2b 39#include <LibConfig.h>\r
40#include <sys/EfiCdefs.h>\r
2aa62f2b 41\r
42#include "namespace.h"\r
43#define __SETLOCALE_SOURCE__\r
44#include <locale.h>\r
45#include "rune.h"\r
46\r
47__warn_references(setlocale,\r
48 "warning: reference to compatibility setlocale(); include <locale.h> for correct reference")\r
49\r
50/*\r
51 * Preparation for the future import of multibyte locale.\r
52 * This function will ensure binary compatibility for old executables.\r
53 */\r
54char *\r
55setlocale(int category, const char *locale)\r
56{\r
57 /* locale may be NULL */\r
58\r
59 __mb_len_max_runtime = 1;\r
60 return __setlocale(category, locale);\r
61}\r