Commit Graph

706 Commits

Author SHA1 Message Date
zhkag 33f550cb65
[Kernel] message 可以返回消息的实际大小 (#7709) 2023-06-21 18:22:42 +08:00
yangfasheng b4e59bac4e
dfs v2 修改 fd_new 的 startfd 起始值为 0 ;修复 futex_wait 超时时间换算异常; (#7705)
Signed-off-by: yangfasheng <yangfasheng@live.com>
2023-06-20 23:09:58 +08:00
heyuanjie87 0503d1e27f [libc/termios]修改oflags定义与musl一致 2023-06-19 00:38:36 -04:00
Meco Man 4f5ba63c7c [cpp] attach CXXFLAGS to reduce the resource consumptions 2023-06-14 08:49:33 -04:00
yangjie11 c4df1d6a19 [cpp] support rt-thread CPP wrapper sub-switch macros 2023-06-14 08:49:33 -04:00
yangjie11 d256d742d1 [components][time.h]Fixed undefined macro TIMER_ABSTIME 2023-06-14 06:31:10 -04:00
Mingjie Shen c7ad493b9a [libc][ctime] move null pointer check before dereference
This null check was redundant because the pointer timep was
dereferenced in any case.
2023-06-13 18:29:22 -04:00
Bernard Xiong 99e80f8d33
[dfs] Add DFS v2.0 (#7606) 2023-06-10 21:35:25 +08:00
Huang Xilong c33a21509a
[comment][libc] add some comments for functions in posix_signal (#7647) 2023-06-10 00:41:21 -04:00
zhkag 22972409d4 [simulator] 修复 linux simulator 编译运行失败 2023-06-07 08:52:28 -04:00
goldengrandpa e88a19467e
[ctime]解决clock_gettime计算出来的nsec超过1sec的问题 2023-05-31 22:52:33 -04:00
guo 7a4f9d0ada
[libc] picolibc support heap. (#7571) 2023-05-27 00:26:34 +08:00
XzcUbuntu b27f910cad [libc][posix][signal] 增加posix_signal.c部分函数注释 2023-05-25 02:09:42 -04:00
zhkag 662aa1b7e2
[libc error] 编译错误PATH_MAX 未定义,移除 mq 中的 PATH_MAX 判断 (#7550) 2023-05-22 22:03:23 -04:00
Arro d8a42139bf
[components]对POSIX函数中mqueue.c的mq_unlink函数注释 (#7543) 2023-05-22 01:47:01 -04:00
Mengxi-Xu 1e5dc5509e
[libc][cpp] 增加 cxx_crt_init.c 函数注释 (#7535) 2023-05-20 01:27:55 -04:00
guozhanxin ca873fae30 [add] llvm-arm workflows 2023-05-17 12:09:10 -04:00
guozhanxin 82ccbc40db support llvm-arm 16.0 2023-05-17 12:09:10 -04:00
DylanLiuH2O 92a253c88f
[components][libc][posix] fix RT_NAME_MAX misspelled as NAME_MAX (#7489) 2023-05-14 11:15:36 +08:00
Rain Park c4002dea9f
[doxygen][libc] Add some comments for posix pthread functions (#7467)
Signed-off-by: Rain Park <1162678210@qq.com>
2023-05-10 14:01:33 +08:00
zhkag 3419e591da [libc] redirecting header sys/ioctl to bits/ioctl 2023-05-05 19:29:38 -04:00
zhkag a6a9b0dfcb
[components][posix] 完善 posix 接口消息队列 (#7395) 2023-05-05 18:14:07 +08:00
Man, Jianting (Meco) d580042145
[libc] support external third pary libc software package (#7425) 2023-04-30 12:19:57 +08:00
zouziyu2002 ce4674defa
[HUST CSE] add forced type conversion when using 'realloc','malloc','calloc' for better readability 2023-04-28 15:55:28 +01:00
xqyjlj fd1413d29b
🎈 perf(components/libc/compilers/common/ctime.c): if define cputime, then CLOCK_REALTIME use cputime (#7343) 2023-04-22 09:09:40 +08:00
xqyjlj 970c7c6f7a
🐞 fix(components/drivers): fix cpu timer in multithreading (#7222)
* 🐞 fix(components/drivers): fix cpu timer in multithreading

* 🎈 perf(components): change double to uint64_t

* 🎈 perf(components): add UL suffix
2023-04-13 16:00:19 +08:00
Bernard Xiong 9600b75b55
[DFS] prepare for dfs_v2.0 (#7200)
* [DFS] prepare for dfs_v2. dfs_fd -> dfs_file; dfs_fnode -> dfs_vnode.

* [BSP] fix code analysis warning

* [smart] fix the pointer overflow.

* code format

* [smart] fix the lwp->lwp_obj checking.
2023-04-08 22:25:51 +08:00
Shicheng Chu 93f3cb30e4
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131) 2023-04-04 09:06:27 -04:00
Lei Peng 517b5eb016 [libc][ctime] stime clear tv.tv_usec as zero
when using stime set rtc time, tv.tv_usec not 0,but always is 0xdeadbeef, make set time error
2023-03-30 23:57:19 -04:00
xqyjlj cd1e0a7901 feat(components): add statfs, statfs64, fstatfs, fstatfs64 support 2023-03-31 10:56:37 +08:00
xqyjlj 157dc0959c feat(components): add uname support 2023-03-31 10:56:37 +08:00
chinky b9f5bf7d91 [libc]优化usleep函数 2023-03-30 00:41:13 -04:00
wangfuan 19f311b498 [libc][delay] fix wrong usleep function 2023-03-27 13:06:12 -04:00
geniusgogo ab7ab19be5
fixed ctime timer_delete timerid parameter check. (#6977)
* fixed ctime timer_delete timerid parameter check.
2023-02-27 09:59:45 +08:00
wangxiaoyao 1c2daeafdc [fix] typo 2023-02-21 08:48:49 +08:00
wangxiaoyao f84d89b0ca [libc] including musl signal.h with _POSIX_SOURCE 2023-02-21 08:48:49 +08:00
zhkag 0f85648cfb
Improve timer accuracy and realize (#6926)
* add cputimer frame

* add cputime sleep

* ctime use cputime

* Processing cputime has no timeout function

* Migration cputime Code

* formatting file

* 整理代码

* add document copyright information

* 改 cputime_timer 为 cputimer

* 简化 _cputimer_list 初始化

* rt_cputimer_create -> rt_cputimer_init

* Remove RT_USING_CPUTIME and code cleanup.

* Remove RT_USING_CPUTIME in cputimer.c
* Set set_next_timeout as static function.

---------

Co-authored-by: Bernard Xiong <bernard.xiong@gmail.com>
2023-02-15 20:46:22 +08:00
guozhanxin 03bcd0701c [ci] fix build error. 2023-02-13 10:56:17 +08:00
zhkag 657cbfdac7 修复编译警告 2023-02-09 15:21:17 +08:00
zhkag f4e9ec82bb 修复纳秒微妙混用转换错误 2023-02-07 15:48:47 +08:00
zhkag bdd6811230 移除无用代码 2023-02-07 13:49:03 +08:00
zhkag edd9c6721f add timer lock 2023-02-07 13:49:03 +08:00
zhkag 7a1ad00aac update timer 2023-02-07 13:49:03 +08:00
xieyangrun 21472e3ff0 fix cputime and ctime. 2023-01-10 10:03:35 +08:00
Meco Man 9bc68d26a4 format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
zhkag 7f9ccd3c80 格式化代码 2023-01-09 09:32:07 +08:00
zhkag e6ce21e4b5 更新 mq_setattr 2023-01-09 09:32:07 +08:00
zhkag dcaa0c166d 【更新】 消息队列存在时,使用 O_CREAT 不应创建新的消息队列 2023-01-09 09:32:07 +08:00
zhkag 1730874cd8 简单赋值防止数据被优化 2023-01-09 09:32:07 +08:00
zhkag a15a5b19a4 修复 mq_timedreceive 中 mq_timedreceive 为空时断言 2023-01-09 09:32:07 +08:00