summaryrefslogtreecommitdiff
path: root/components/libc
AgeCommit message (Collapse)Author
2022-08-16[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORMMeco Man
2022-08-16该问题在Keil-MDK中没有一个太好的解决方案。本PR为权衡利 ↵Meco Man
弊之后得到的一套解决方案。Keil曾经提供了底层桩函数_sys_ensure,但是目前已经被废弃。因此唯一的解决方案就是每写完一句,就调用fsync去同步一次。 该问题在mbedos社区也进行过讨论,他们也面临和我们相同的两个问题: 1. Keil-MDK无有效的fflush解决方案,mbedos依然在使用淘汰的_sys_ensure桩函数。 2. Keil-MDK没有fileno函数,我方少部分软件包因此而无法使用Keil平台编译。 参考:https://github.com/ARMmbed/mbed-os/issues/1601 issue: https://github.com/RT-Thread/rt-thread/issues/4928 经过进一步测试发现,Keil-MDK中的fflush函数已经退化成服务于STDOUT的函数,Keil-MDK内部有一个buffer可以存放fputc(stdout) 发过来的数据,如果调用fflush,这些数据是可以flush出去的。但是如果是真正的文件数据,fflush函数并没有提供任何桩函数接口可以让文件flush数据出去。
2022-08-08[exit] 修复_exit函数条件分支未覆盖所有情况的问题 (#6239)Man, Jianting (Meco)
attach #6229
2022-08-07[fix] the risk for function exit() when open pthread support. (#6229)xiangxistu
* [fix] the risk for function exit() when open pthread support. * [update] modify annotation from "user data" to "pthread_data".
2022-07-27使用 AStyle.exe 统一代码格式Aligagago
2022-07-20[libc] 修复difftime函数在IAR下的编译错误Meco Man
2022-07-07[fix] memory leak when the value of posix semaphore is zero.liuxianliang
2022-07-01Revert "解决将RT_NULL当做数字0使用的问题"Meco Man
This reverts commit 6a05ddf63d1202456a37e970e5a9ab58370ed093.
2022-07-01解决将RT_NULL当做数字0使用的问题Meco Man
2022-07-01[fix] use atomic operation to protect pthread conditional variable. (#6113)xiangxistu
* [fix] use atomic operation to protect pthread conditional variable.
2022-07-01[iar] 修复编译错误 (#6126)Man, Jianting (Meco)
2022-06-23[libc][newlib] format (#6104)Man, Jianting (Meco)
2022-06-22fix the error return (#6097)Man, Jianting (Meco)
2022-06-19[libc] implement extension standard C functions (#6044)Man, Jianting (Meco)
* implement extension standard C functions
2022-06-09[scons][iar] 将IAR的PLATFORM字段由iar调整为iccarmMeco Man
将路径更新为IAR最新版本的路径
2022-06-09[Scons][iar][iccarm] ↵Meco Man
IAR统一使用iccarm作为判断条件而不是是用IDE的名字来进行判断 因为不确定后续IAR是否会像Keil一样内含有不同的编译工具链 此外,将判断条件改为列表方式,这样更方便后续增加其他可能的IAR编译链
2022-06-09[Scons] ↵Meco Man
将GCC判断条件改为列表方式,方便后续增加新的编译工具链
2022-06-08[libc][time] solve the problem which the os tick can be calculated wrongly ↵chunyexixiaoyu
because the local variable was not initialized.
2022-06-08Fix compiler warnings (#6023)Tangyuxin
2022-06-05[libc][time] Fix clock_gettime for CLOCK_CPUTIME_ID (#6029)gbcwbz
2022-06-04[libc] remove strdup from rtthread.h (#6026)Man, Jianting (Meco)
add __STDC_LIMIT_MACROS macro in Keil add RT_USING_LIBC in simulator add _DLIB_ADD_EXTRA_SYMBOLS=0 in IAR
2022-05-25[libc] revert back difftimeMeco Man
2022-05-19[rtdef][libc] solve the conflicts between libc data types and rtdef data ↵Man, Jianting (Meco)
types (#5961)
2022-05-18[fix] return "EINVAL" if "count" is zero.liuxianliang
2022-05-18[modify] the recycle logic about resource of pthread.liuxianliang
2022-05-16[sal] add draft for docking winsockMeco Man
2022-05-16[simulator] avoid conflicts between winsock.h and sys/time.hMeco Man
2022-05-09[fix] fix dlmodule compile 'SEEK_END' undeclared eror (#5909)陈迎春
2022-04-29[kernel] remove the register keyword (#5888)Man, Jianting (Meco)
2022-04-24[fcntl] create new fcntl.h file for vs (#5860)Man, Jianting (Meco)
* [fcntl] create new fcntl.h file for vs
2022-04-22[iar] add CLOCKS_PER_SECMeco Man
https://www.iar.com/knowledge/learn/programming/using-c-standard-library-time-and-clock-functions/
2022-04-22[libc][time] 修复IAR版本判断逻辑错误Meco Man
2022-04-22[libc] 优化armcc armclang处理 (#5858)Man, Jianting (Meco)
2022-04-21[fix] building error.guozhanxin
2022-04-20uniform code writing-disable interruptthewon86
2022-04-20[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM (#5802)Man, Jianting (Meco)
* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
2022-04-19[libc][time] Fix bug (#5831)Tangyuxin
2022-04-19[kernel] enable RT_DEBUG_DEVICE by default and move weak rt_hw_dealy_us in ↵Meco Man
kservice.c
2022-04-19[libc][io] Remove definitions that are not in usetyx
2022-04-15[libc] fix that some function cannot be found in unistd.hMeco Man
2022-04-09[libc] fix the sys/select.h problem (#5790)Man, Jianting (Meco)
2022-04-09[kconfig] add 64bit default value for stack size. set tick HZ as 1000 by ↵Man, Jianting (Meco)
default (#5778) * [kconfig] add 64bit default value for stack size. set tick HZ as 1000 by default * 用RT_KSERVICE_USING_STDLIB_MEMXXX代替RT_KSERVICE_USING_STDLIB_MEMCP/MEMSET 将RT_KSERVICE_USING_STDLIB设置为默认开启 * 优化rt_kprintf支持longlong的能力,默认在64位CPU为开启状态 RT_PRINTF_LONGLONG命名不规范,更改为RT_KPRINTF_USING_LONGLONG * fix commit error * fix error * 优化 system 函数 * RT_KSERVICE_USING_STDLIB_MEMXXX->RT_KSERVICE_USING_STDLIB_MEMORY
2022-04-08[libc] improve sconscript (#5789)Man, Jianting (Meco)
2022-04-07improve libc time and MSVC simulator (#5775)Man, Jianting (Meco)
- [libc] 解决由于类unix操作系统发展历史原因fcntl.h定义的标志位在不同编译器中定义不同的问题 - [simulator] 部分宏定义转为全局宏定义以确保vs内置文件可以正确配置 - [simulator] 取消自欺欺人式的警告消除处理方式 - [libc][time] 优化time相关结构体在不同编译器下的包含
2022-04-06[compilers] Fix c/c++ compilation warnings and errorstyx
2022-03-30[poll][select] 修复select死循环的问题 (#5740)Man, Jianting (Meco)
2022-03-29[posix] add RT_USING_POSIX_SOCKET (#5731)Man, Jianting (Meco)
2022-03-25[components][kconfig] 整理Kconfig目录名称和结构 (#5698)Man, Jianting (Meco)
2022-03-21[ulog][rtc][time][bug] solve the interference when enable the ulog timestamp ↵Man, Jianting (Meco)
(#5687) * [ulog] 解决ulog开启时间戳后与libc time以及rtc驱动相关函数干涉的问题 * ulog:当发生递归输出时,后续递归想要输出的内容可能会因为防范递归的判断而无法输出 因此修改输出规则,在发生递归时,采用简单的,无格式的方式直接输出。这样既保证不会发生递归输出,也可以保证递归输出的部分可以正常输出。 * [ulog] size_t->rt_size_t NULL->RT_NULL
2022-03-21[libc] fix a typo (#5689)Man, Jianting (Meco)