summaryrefslogtreecommitdiff
path: root/components/libc/compilers
AgeCommit message (Collapse)Author
2025-12-28[clock_time] Fix rt_timespec_to_tick availability for POSIX semaphorescopilot/refactor-hwtimer-ktime-cputimecopilot-swe-agent[bot]
- Moved rt_timespec_to_tick outside of RT_USING_CLOCK_TIME guard - Function now available with just RT_USING_POSIX_CLOCK defined - Fixes undefined reference error when building with POSIX semaphores - Maintains backward compatibility with configurations that don't use clock_time yet Co-authored-by: BernardXiong <[email protected]>
2025-12-04[clock_time] Remove compatibility layers and refactor to direct implementationcopilot-swe-agent[bot]
- Removed cputime_compat.c and ktime_compat.c - Created clock_time_cputime.c for CPU time APIs (clock_cpu_*, rt_cputime_*) - Created clock_time_boottime.c for boottime APIs (rt_boottime_*) - Created stub cputime.h header for BSP compatibility - Removed all compatibility type definitions from clock_time.h - Removed compatibility Kconfig options - Updated SConscript to build new files - Replaced all rt_ktime_hrtimer_* calls with rt_clock_hrtimer_* in ctime.c - Replaced all rt_ktime_* functions with rt_clock_* equivalents - Simplified nanosleep() to use rt_clock_ndelay() directly Co-authored-by: BernardXiong <[email protected]>
2025-12-04[clock_time] Remove old subsystems and update to use only clock_timecopilot-swe-agent[bot]
- Deleted ktime, cputime, and hwtimer directories completely - Removed old header files (ktime.h, cputime.h, cputimer.h, hwtimer.h) - Updated ctime.c to only use RT_USING_CLOCK_TIME (removed RT_USING_KTIME conditionals) - Updated main drivers Kconfig to remove old subsystem entries - Added all legacy API declarations to clock_time.h when compatibility is enabled - Added legacy type definitions (rt_clock_cputime_ops, rt_cputimer) to clock_time.h - Removed ktime.h include from ktime_compat.c (types now in clock_time.h) - All POSIX time APIs (clock_gettime, clock_settime, timer_create, etc.) continue to work Co-authored-by: BernardXiong <[email protected]>
2025-12-04[clock_time] Fix data type compatibility and add libc integrationcopilot-swe-agent[bot]
- Changed hrtimer cnt types from rt_uint64_t to unsigned long for ktime compatibility - Added RT_USING_CLOCK_TIME support to libc/ctime.c - Added proper type definitions for ktime compatibility layer - Fixed all type casts and function signatures Co-authored-by: BernardXiong <[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-13compute ns with rt_int64_t instead of int64_t in ctime.cYonggang Luo
2025-07-14修复DFS_USING_POSIX启用时 修正IARVersion导入路径蒙蒙plus
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-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-17Modify the position of libc_rent definitionrcitachi
2024-11-01[libc] modify function names to resolve naming conflictsrcitachi
2024-09-03[libc] 修复 ctime()死机问题yandld
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-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-04-22[components][drivers]improve ktimer sleep (#8838)zms123456
improve ktimer sleep
2024-04-06[iar] fix legacy macros will be added if cannot get the IAR versionMeco Man
2024-03-30[fixup] aarch64 UMP compiler error (#8677)Shell
Signed-off-by: Shell <[email protected]>
2024-03-28sync smart & dfs (#8672)Shell
Signed-off-by: xqyjlj <[email protected]> Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
2024-02-23🎯 Sync smart & scheduler codes (#8537)Shell
Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
2024-01-02fix some -Wmissing-prototypes warningsMeco Man
2023-12-28[libc] fix undefined warning of rt_memsetMeco Man
2023-12-25[libc][picolibc] fix llvm compling warningMeco Man
/home/runner/work/rt-thread/rt-thread/components/libc/compilers/picolibc/syscall.c:24:16: warning: returning 'volatile int *' from a function with result type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] return &__pico_errno; ^~~~~~~~~~~~~ /home/runner/work/rt-thread/rt-thread/components/libc/compilers/picolibc/syscall.c:30:16: warning: returning 'volatile int *' from a function with result type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] return &__pico_errno; ^~~~~~~~~~~~~ /home/runner/work/rt-thread/rt-thread/components/libc/compilers/picolibc/syscall.c:33:12: warning: incompatible pointer types returning 'rt_err_t *' (aka 'long *') from a function with result type 'int *' [-Wincompatible-pointer-types] return &tid->error;
2023-11-30[nano] rt-thread susport nano optionMeco Man
2023-11-21[libc] add RT_USING_INTERNAL_LIBC_ONLY macroMeco Man
This option is for RT-Thread Nano version. If select this option, it will not compile components/libc folder and only use tool chain internal libc. Normally, the tool chain internal is only cover ISO standard (e.g. armcc), but some tool chains' internal libc will cover more than ISO standard (e.g. newlib).
2023-11-16[fix] sal build error.guozhanxin
2023-11-16[libc] update ctime.c compatible with old driversguozhanxin
2023-11-08[libc][picolibc] improve gcc picolibc supportXiang.Lin
2023-11-01[libc] add comments to the cstdlib.c (#8209)shu-qian
Co-authored-by: sq <[email protected]>
2023-10-31[libc] [ctime] fix rt_timespec_to_tick fun internal data overflow (#8198)kk
2023-10-26[ctime] fixup of data racing (#8187)Shell
Signed-off-by: Shell <[email protected]>
2023-10-25🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)xqyjlj
Signed-off-by: Shell <[email protected]> Co-authored-by: Shell <[email protected]>
2023-10-24[libc][time]修复MDK编译环境下difftime()函数多重定义的问题 ↵梁生
(#8174)
2023-09-19[picolibc] fix the errno declaration conflictMeco Man
/home/runner/work/rt-thread/rt-thread/components/libc/compilers/picolibc/syscall.c:13:5: error: conflicting types for 'pico_get_errno' int pico_get_errno(void) ^ /opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin/../lib/clang-runtimes/arm-none-eabi/armv7em_hard_fpv4_sp_d16/include/sys/errno.h:59:6: note: previous declaration is here int *__PICOLIBC_ERRNO_FUNCTION(void);
2023-09-20Adapt rt_channel, increase the generality of some rt_channel functionality ↵zmq810150896
on dfs v2, and standardize signalfd (#8047)
2023-08-28[ctime] 避免时区为负数时引入的隐式转换问题TangZhenye
2023-08-23cleanup: fix building warningsgeniusgogo
2023-08-17[libc][posix/io/stdio] rename libc.c as posix/stdio.cMeco Man
2023-08-13[libc][time] pre-support fully version timezone and daylight saving timeMeco Man
2023-08-13[libc][timezone] implement lightweith timezone configurationMeco Man
2023-08-08[libc][time] silence the incorrect type warningMeco Man
2023-08-01[components/ctime] fix the free of rt_work (#7882)Shell
Signed-off-by: Shell <[email protected]>
2023-07-22[smart] fix possible memory leak (#7832)Shell
Signed-off-by: Shell <[email protected]>
2023-07-21[libc][time] cleanup codeMeco Man
2023-07-20✨ feat(ktime): add RT_USING_KTIME to kconfig buildxqyjlj