• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: osal liteos cpp build adapt
15  * Author:
16  * Create:
17  */
18 #include <pthread.h>
19 #include "stdint.h"
20 #include "chip_definitions.h"
21 
22 #if CHIP_BRANDY && defined(SUPPORT_CXX)
pthread_rwlock_unlock(pthread_rwlock_t * rw)23 int pthread_rwlock_unlock(pthread_rwlock_t *rw)
24 {
25     return 0;
26 }
27 
pthread_rwlock_wrlock(pthread_rwlock_t * rw)28 int pthread_rwlock_wrlock(pthread_rwlock_t *rw)
29 {
30     return 0;
31 }
32 
pthread_rwlock_rdlock(pthread_rwlock_t * rw)33 int pthread_rwlock_rdlock(pthread_rwlock_t *rw)
34 {
35     return 0;
36 }
37 
newlocale(int mask,const char * name,locale_t loc)38 locale_t newlocale(int mask, const char *name, locale_t loc)
39 {
40     return 0;
41 }
42 
freelocale(locale_t l)43 void freelocale(locale_t l)
44 {
45     return;
46 }
47 
uselocale(locale_t new)48 locale_t uselocale(locale_t new)
49 {
50     return 0;
51 }
52 
wcstof(const wchar_t * restrict s,wchar_t ** restrict p)53 float wcstof(const wchar_t *restrict s, wchar_t **restrict p)
54 {
55     return 0;
56 }
57 
wcstod(const wchar_t * restrict s,wchar_t ** restrict p)58 double wcstod(const wchar_t *restrict s, wchar_t **restrict p)
59 {
60     return 0;
61 }
62 
wcstold(const wchar_t * restrict s,wchar_t ** restrict p)63 long double wcstold(const wchar_t *restrict s, wchar_t **restrict p)
64 {
65     return 0;
66 }
67 
localeconv(void)68 struct lconv *localeconv(void)
69 {
70     return 0;
71 }
72 #endif