Xiang Xiao
f911d3a1c3
stdio: Implement [clearerr|putc|fflush]_unlocked
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-10-29 17:09:18 +02:00
guoshichao
5bd8e56cbe
libs/libc/wchar: add fputws implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
d67090c47e
libs/libc/wchar: add putwc implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
f8b5f613e2
libs/libc/wchar: add fputwc implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
anjiahao
d5981375a6
Support gcc FORTIFY_SOURCE features for nuttx libc
...
This function will use gcc's function
__builtin_dynamic_object_size and __builtin_object_size
Its function is to obtain the size of the object through compilation,
so as to judge whether there are out-of-bounds operations in commonly used functions.
It should be noted that the option -O2 and above is required to enable this function
Signed-off-by: anjiahao <1090959677@qq.com>
2023-06-22 20:38:45 +08:00
Xiang Xiao
11e1a8b28b
arch: Define WCHAR_[MIN|MAX] in arch/include/limits.h
...
follow up the below change:
commit 635752389226ad005f52524a933acf864c1a1f8d
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Mon Nov 1 12:40:51 2021 +0800
arch: Add _wchar_t typedef like other basic types
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-03 22:25:49 +03:00
Xiang Xiao
7f3c540570
include/wchar.h: Remove NULL macro from it
...
since the same macro is defined in sys/types.h and
the comment out macro definition in stdint.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-03 22:25:49 +03:00
Xiang Xiao
cdc781bdfd
libc: Implement local_t related functions
...
since local_t isn't really implemented on NuttX,
we can simply redirect to the non-locale version.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-30 09:43:26 -03:00
Alin Jerpelea
9b9be7e1f0
include: Author: Gregory Nutt: update licenses to Apache 2.0
...
Update files from Gregory Nutt to Apache 2.0 license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-04 03:33:58 -08:00
Xiang Xiao
6f3cef856d
libc: Add the remaining wscanf series declaration
...
The function isn't implemented like other wide printf/scanf
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I0b26bb5174d1a9295fe2454d0e33f8227b8cbf8a
2020-06-08 11:42:56 +01:00
Xiang Xiao
7cbcbcde51
libc: Implement wcsrtombs, wcsnrtombs and mbsnrtowcs
...
and update the related stuff in libs/libc/libc.csv
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id695a7f07bf18a7b4e526297f9131c75ddb79d30
2020-06-02 07:13:37 -06:00
Xiang Xiao
a2d924eea4
syscall: Fix typo error in cvs and header file
...
and reoder the entry in cvs file
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-07 10:31:05 -06:00
Xiang Xiao
894ca622e6
nclude/sys/types: Move wint_t and wctype_t from wchar.h to types.h. This change is compatible as before since wchar.h include types.h indirectly. This fixes a compilation error with newlib's math.h: 'unknown type name wint_t'
2018-08-27 06:26:37 -06:00
Gregory Nutt
ccabac3eb6
More fixes for compilation with current SDCC compiler
2017-09-30 15:28:04 -06:00
Gregory Nutt
28e9fe32b6
include/: Remove dangling space at the end of lines.
2017-06-28 13:30:08 -06:00
Alan Carvalho de Assis
d43380d543
Add wcstoull function
2017-03-08 13:28:50 -06:00
Alan Carvalho de Assis
d9bfcfc330
Add mbsnrtowcs wcsnrtombs just returning sucess
2017-03-08 13:24:03 -06:00
Alan Carvalho de Assis
2d1ace3ee5
Add wcstof function
2017-03-08 12:47:23 -06:00
Alan Carvalho de Assis
6e0afb2905
C library: Ad wcstol() and wcstold().
2017-03-08 12:42:20 -06:00
Alan Carvalho de Assis
3ccef07863
C library: Add wcstoll function
2017-03-08 12:26:35 -06:00
Gregory Nutt
54fd0f0a04
Fix a few more compile issues with the new wide character support
2016-10-19 08:18:46 -06:00
Alan Carvalho de Assis
b852bb3403
Add iswctype, towlower, towupper and wcsftime functions
2016-10-19 07:49:33 -06:00
Gregory Nutt
c73d3e9c5f
Remove comments that no longer apply. clocale should not do anyting if CONFIG_LIBC_LOCALE is not defined.
2016-10-19 07:06:43 -06:00
Gregory Nutt
890a9eb45d
Fix a few wide character build issues
2016-10-18 19:11:09 -06:00
Gregory Nutt
63f88fc55f
Add some comments
2015-02-19 11:47:34 -06:00
Gregory Nutt
b478c11b85
Back out definition of mbstate_t. That is a mistake
2015-02-19 09:56:53 -06:00
Gregory Nutt
8bd9203d49
Add mbstate_t to wchar.h and cwchar
2015-02-19 09:21:35 -06:00
Gregory Nutt
04471aa5cb
Add include/wchar.h
2014-10-27 08:28:38 -06:00