提交 9f3b2a12 编写于 作者: W w00349915 提交者: public tcshversion

TicketNo:AR000E0QAB

Description:delete uselocale newlocale
Team: OTHERS
Feature or Bugfix:Feature
Binary Source:No
PrivateCode(Yes/No):No

Change-Id: I9df3e002dbf487d46ccf6984d6d2ca082a0005b7
Reviewed-on: http://mgit-tm.rnd.huawei.com/10659515Tested-by: Npublic jenkins <public_jenkins@notesmail.huawei.com>
Reviewed-by: Nzhengzhou 00427224 <zhengzhou8@huawei.com>
Reviewed-by: Nwuyunjie 00349915 <wuyunjie@huawei.com>
Reviewed-by: Nshenwei 00579521 <denny.shenwei@huawei.com>
Reviewed-by: Nzhaopeng 00380337 <zhaopeng22@huawei.com>
上级 c727d7c2
......@@ -2,7 +2,6 @@
#include <string.h>
#include <pthread.h>
#include "locale_impl.h"
#include <unsupported_api.h>
static pthread_once_t default_locale_once;
static struct __locale_struct default_locale, default_ctype_locale;
......@@ -24,7 +23,6 @@ locale_t __newlocale(int mask, const char *name, locale_t loc)
{
struct __locale_struct tmp;
unsupported_api(__FUNCTION__);
for (int i=0; i<LC_ALL; i++) {
tmp.cat[i] = (!(mask & (1<<i)) && loc) ? loc->cat[i] :
__get_locale(i, (mask & (1<<i)) ? name : "");
......
#include <unsupported_api.h>
#include "locale_impl.h"
#include "pthread_impl.h"
#include "libc.h"
locale_t __uselocale(locale_t new)
{
unsupported_api(__FUNCTION__);
pthread_t self = __pthread_self();
locale_t old = self->locale;
locale_t global = &libc.global_locale;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册