summaryrefslogtreecommitdiff
path: root/components/libc
AgeCommit message (Collapse)Author
2026-09-10补充 components\utilities\libadt中Kconfig的help内容#10960copilot/update-kconfig-help-descriptionsHuang Ziyang
2026-01-13Resolve merge conflicts with master branchcopilot-swe-agent[bot]
Co-authored-by: Rbb666 <[email protected]>
2025-11-17Add comprehensive help for POSIX layer Kconfig filescopilot-swe-agent[bot]
Co-authored-by: Rbb666 <[email protected]>
2025-11-16Reorganize Group names in build system for clarity and IDE integration #10923Copilot
2025-11-07[libc][syscall] add detailed function comments for memory managementChengyangMa
2025-11-07[libc][syscalls] 新手PR任务_增加文件操作相关函数的文档注释Liu Changjie
2025-10-16utest: Improve the strings displayed in the menuChen Wang
Use "Test" instead of "Unit Testcases" to make string shorter. Use uppercase to make it look more eye-catching. Signed-off-by: Chen Wang <[email protected]>
2025-10-15utest: move cpp from examples to components/libc/cplusplusChen Wang
Also update the case names to compatible with naming rules. Signed-off-by: Chen Wang <[email protected]>
2025-10-13compute ns with rt_int64_t instead of int64_t in ctime.cYonggang Luo
2025-10-13fix(stdio): ensure compatibility with newlib <3.4.0 by handling removed ↵loremmoqi
__sdidinit (#10791)
2025-09-24RT_TIMER_CTRL_SET_TIME only accept rt_tick_t, pass rt_tick_t instead ↵Yonggang Luo
int/rt_int32_t
2025-09-24Trim trailing spaces of components/libc/posix/io/poll/poll.cYonggang Luo
Signed-off-by: Yonggang Luo <[email protected]>
2025-07-25[pthreads] Fix pthread_cond_timedwait lacks timeout wakeupChenRuiwei
2025-07-24[components/libc] add comments for some pthread functions. #10423Codeman-1999
2025-07-14修复DFS_USING_POSIX启用时 修正IARVersion导入路径蒙蒙plus
2025-03-11fix dangling pointer in component pthread and dfs_elm (#9976)lingfengPeng
* [components/libc/posix][pthreads]fix the risk of dangling pointer * [components][dfs][dfs_elm]:fix risk of dangling pointer, unmount the temp driver then free the temp FATFS in dfs_elm_mkfs.
2025-02-22components: libc: fix pointer-to-integer cast warnings and address truncationkenneth.liu
[Problem Description] 1. When enabling RT_USING_MODULE=y, compilation warnings occur: dlelf.c:386:27: warning: cast from pointer to integer of different size dlelf.c:398:25: warning: cast from pointer to integer of different size dlelf.c:408:24: warning: cast from pointer to integer of different size 2. On RV64 architectures (e.g. Sophgo SG2042 with RISC-V Sv39 and 40-bit physical addressing), dlsym may fail when accessing addresses beyond 32-bit range. [Root Cause] In dlmodule_load_relocated_object() and dlmodule_symbol_find(), pointer is cast to rt_uint32_t which truncates: | rt_ubase_t rodata_addr = (rt_uint32_t)ptr; This causes: - Warnings on 64-bit systems (pointer width > 32-bit) - Actual address truncation on RV64 when physical address exceeds 32-bit [Solution] Replace rt_uint32_t with architecture-adaptive rt_ubase_t: | rt_ubase_t rodata_addr = (rt_ubase_t)ptr; The rt_ubase_t is defined in include/rttypes.h as: | #ifdef ARCH_CPU_64BIT | typedef rt_uint64_t rt_ubase_t; | #else | typedef rt_uint32_t rt_ubase_t; | #endif This ensures correct width casting for both 32/64-bit architectures. Signed-off-by: Liu Gui <[email protected]>
2025-02-20components: libc: fix array overflow in rt_object name assignmentkenneth.liu
[Problem Description] When assigning name to rt_object, strncpy() uses size equal to RT_NAME_MAX, which causes missing null-terminator and overflows into adjacent 'type' field. This corruption leads to unexpected system behavior. [Problem Analysis] The rt_object structure defines: | char name[RT_NAME_MAX] | -> buffer | rt_uint8_t type | -> adjacent field Original code calculates size as: size = end - first + 1; if (size > RT_NAME_MAX) size = RT_NAME_MAX; When size equals RT_NAME_MAX, strncpy() will copy exactly RT_NAME_MAX bytes without adding terminating '\0', causing two issues: 1. name buffer is not null-terminated 2. The implicit null-byte writes beyond name[] into type field [Solution] Change boundary check from: if (size > RT_NAME_MAX) size = RT_NAME_MAX; to: if (size >= RT_NAME_MAX) size = RT_NAME_MAX - 1; This ensures: 1. Always leaves space for null-terminator 2. Prevents overflow into type field 3. Maintains maximum valid name length (RT_NAME_MAX-1 + '\0') Signed-off-by: Liu Gui <[email protected]>
2024-12-27[include] RT_USING_MUSLLIBC结构体报错的bug (#9834)godmial
解决了gd32470z-lckfb libc_dirent结构体报错的bug
2024-12-24[libc] uncomment wcwidth for win32Meco Man
2024-12-21[klibc] format codeMeco Man
2024-12-18[components][libc/io]add comments for timer fd APIs.ligr
2024-12-06[components] When rtc is not enabled, use other clock sources instead (#9747)wycwyhwyq
When rtc is not enabled, use other clock sources instead Signed-off-by: wycwyhwyq <[email protected]>
2024-11-21[components/libc/posix]add comments for thread local storage APIs.ligr
2024-11-21[components/libc/posix]fix the problem that it doesn't check if barrier ↵ligr
still in use and dosen't destory the mutex either.
2024-11-21[components/libc/posix]fix the errors that assigning an integer to a pointer ↵ligr
and always return EINVAL.
2024-11-21[components/libc/posix]add comments for barrier APIs.ligr
2024-11-19[components/libc/posix]add comments for rwlock APIs.ligr
2024-11-19[components/libc/posix]add comments for condition variable APIs.ligr
2024-11-18[components/libc/posix]add comments for mutex APIs.ligr
2024-11-17Modify the position of libc_rent definitionrcitachi
2024-11-16[components/libc/posix][pthreads]add comments for thread APIs of pthread.ligr
2024-11-13[libc] add comments for libdl APIs.ligr
2024-11-01[libc] modify function names to resolve naming conflictsrcitachi
2024-09-03[libc] 修复 ctime()死机问题yandld
2024-08-25修复TLS内存申请没有初始化问题zx568073531
2024-08-25修复TLS申请内存后没有初始化问题SeliverWang
2024-08-12Add RT_USING_RTC conditional compilation protection in ctimer.cZ8MAN8
Analysis: There is still an omission in the preprocessing control of _control_rtc in 24b0a81 ("Add RT_USING_RTC conditional compilation protection in ctimer.c") Solution: Add RT_USING_RTC preprocessing control to missing _control_rtc Signed-off-by: Shicheng Chu <[email protected]>
2024-08-11Add RT_USING_RTC conditional compilation protection in ctimer.cZ8MAN8
Analysis: RT_USING_RTC preprocessing is used in 47cd52d ("修复不 使能 RT_USING_DEVICE 时编译报错") to control the reference of rtdevice.h, as well as the implementation and call of _control_rtc, but there are some omissions. Solution: Add RT_USING_RTC preprocessing control to missing _control_rtc Signed-off-by: Shicheng Chu <[email protected]> Reviewed-by: Chen Wang <[email protected]>
2024-08-04修复不使能 RT_USING_DEVICE 时编译报错 (#9145)马龙伟
* 修复不使能 RT_USING_DEVICE 时编译报错 * 删除 ctime.c 中多余引用
2024-06-26fix Compilation error in "driver.c", "completion_up.c", "syslog.c" and ↵Rui
"dlmodule.c". (#9093)
2024-06-23[components][ktime]support period ktime timeout and multiple ktimer_hrtimer ↵zms123456
(#8972) * support period time * enable multiple ktimer * mv set delay_cnt to hrtimer_start * add ktime debug info * change current_irq_begin to local var * fix bug: setting current timer and setting timeout in driver aren't atomicly * create->init * refactoring ktime
2024-06-20除了bsp之外的Kconfig使用rsource替代sourcelatercomer
2024-06-16[bsp/phytium]c++支持,gpio,qspi驱动修改 (#9059)zhangyan
* GPIO驱动与QSPI驱动适配 * C++支持 * update --------- Co-authored-by: 张衍 <[email protected]>
2024-05-11修复C++11 ↵atwww
thread_local对象析构函数与实际内存释放动作顺序相反问题
2024-05-01[kernel] add rt_thread_close()Shell
* [thread] Add rt_thread_close() This patch introduces a new function `rt_thread_close()` to enhances the usability and maintainability by providing a dedicated mechanism for closing threads. - A new function `rt_thread_close()` is added to the API, providing a standardized approach for closing threads. - The `rt_thread_close()` function removes a thread from the thread queue, updates its status to indicate closure, and performs the thread timer detaching which is a embedded timer in thread object. - Additionally, the `rt_thread_detach()` function is modified to utilize `rt_thread_close()` internally, streamlining the thread detachment process. Signed-off-by: Shell <[email protected]>
2024-04-30Add comments for all functions in components/libc/posix/ipc/mqueue.cTroy
2024-04-26Add comments for all functions in components/libc/posix/io/termios/termios.cTroy
2024-04-24Add some comments in components/libc/posix/ipc/semaphore.c (#8848)Troy
2024-04-22[components][drivers]improve ktimer sleep (#8838)zms123456
improve ktimer sleep