Commit Graph

478 Commits

Author SHA1 Message Date
Meco Man 1a55702ccb 修复DST_NONE 等宏定义位置放错导致报错的问题 2021-05-02 09:38:41 +08:00
Meco Man 3f74758f31 将<sys/time>改为"sys/time.h" 2021-05-02 09:29:46 +08:00
Meco Man 8ec1a63b23 增加tz_dsttime类型定义 2021-05-02 09:24:41 +08:00
Meco Man 47de526525 精简settimeofday代码;
在Linux中settimeofday以及gettimeofday函数的时区功能已经被废弃,因此增加注释予以提示。
gettimeofday实现了tz_minuteswest功能,tz_dsttime功能未实现,按废弃处理;
settimeofday时区功能废弃。
2021-05-01 16:22:27 +08:00
Meco Man 6fa385b987 [time] 补充注释 2021-05-01 14:23:50 +08:00
Meco Man f4015029d2 gettimeofday()函数支持时区;规范set_timeval/get_timeval函数返回值 2021-05-01 14:18:46 +08:00
Bernard Xiong be3b5a950f
Merge pull request #4653 from mysterywolf/fixed-timezone
[libc][time]增加手动设置固定时区的功能
2021-05-01 10:58:24 +08:00
Bernard Xiong beb2f046c4
Merge pull request #4649 from mysterywolf/libc2
[libc][time] remove _TIMESPEC_DEFINED in common/sys/time.h and complete time.c
2021-05-01 10:58:10 +08:00
Meco Man a611a66864 精简代码 2021-05-01 06:08:14 +08:00
Meco Man 65984a7116 add comment 2021-05-01 06:06:03 +08:00
Meco Man 0aa3b80fc3 在time.c中增加RT_LIBC_FIXED_TIMEZONE默认值,防止有些工程没有配置RT_LIBC_FIXED_TIMEZONE 2021-05-01 06:03:46 +08:00
Meco Man a7a3ca9f02 增加手动设置时区的功能 2021-05-01 05:52:55 +08:00
Bernard Xiong 072899e137
Merge pull request #4636 from chunyexixiaoyu/dev
dlmodule can support riscv architecture
2021-04-29 14:36:45 +08:00
Meco Jianting Man 1627597fcc
remove _TIMESPEC_DEFINED 2021-04-29 04:42:11 +08:00
Meco Jianting Man 82f2d8e53d
time.c 删除函数名与括号之间的空格 2021-04-29 00:21:10 +08:00
Meco Man 850e1aeb52 [libc][time] 细微调整time.c 2021-04-28 13:03:43 +08:00
chunyexixiaoyu 2afca00787 [ADD]riscv.c dlmodule can support riscv architecture
[CHG]dlelf.c support distinguishing 32-bit ELF format and 64-bit ELF format
2021-04-27 21:24:42 +08:00
Meco Man cb7fa8fcea implement pid_t gettid(void) 2021-04-26 14:34:26 +08:00
Meco Man 19347ed454 [libc][unistd] 完善isatty() 2021-04-26 14:31:31 +08:00
Meco Man ae66d82624 update sconscript 2021-04-25 21:32:08 +08:00
Meco Man f9ba41f4c2 更改libc目录为common 以及 none-gcc 2021-04-25 21:10:31 +08:00
Meco Man c871726e89 update readme 2021-04-21 02:16:29 +08:00
Meco Man 40c09fc1e0 重新分类为common文件夹下属all文件夹和excgcc文件夹 2021-04-21 00:56:36 +08:00
Meco Man 926cd86589 remove dlib and armlibc sys folder 2021-04-18 01:36:35 +08:00
Meco Man bc25c8a6e8 update sconscript 2021-04-18 00:55:32 +08:00
Meco Man 9d401ea8b0 重新整理libc重复共用文件,创建common_for_all 和 common_for_keiliar 2021-04-18 00:51:07 +08:00
Meco Man 46d51a99f1 优化get_timeval set_timeval 条件编译代码结构 2021-04-15 16:34:09 +08:00
Meco Man b74022e2c4 mktime support fixed timezone 2021-04-15 14:31:23 +08:00
Meco Man 8e2a456d7a implement set_timeval 2021-04-15 14:01:55 +08:00
Meco Man 4accfc410c 修改get_timeval的错误返回形式 2021-04-15 00:57:01 +08:00
armink 76be91c7de [libc/time] Add microseconds time get feature in gettimeofday. 2021-04-14 20:10:47 +08:00
Meco Man b4040df9dc [libc][time][bug] LOG_W will cause a recursive printing if ulog timestamp function is turned on 2021-04-11 13:31:11 +08:00
jeshrz 7c999e1950 enhance robustness for pthread 2021-03-31 09:22:47 +08:00
Meco Man a584b8ba6b [libc][time] add debug tag 2021-03-28 10:33:13 +08:00
Meco Man 0ec2a5f782 [libc][time] add LOG_W to give a warning when RTC device is not used 2021-03-26 17:36:43 +08:00
Bernard Xiong 5c50a8794f
Merge pull request #4458 from mysterywolf/time
[libc][time] 修复没有末尾\0的bug
2021-03-23 20:10:37 +08:00
Bernard Xiong 677f9c5aa6
Merge pull request #4470 from mysterywolf/ioctl
[libc][ioctl] 将sys/ioctl.h移至common文件夹
2021-03-19 22:52:40 +08:00
Meco Man 9d17aa7ce5 [libc][ioctl] 将sys/ioctl.h移至common文件夹 2021-03-17 02:37:42 +08:00
tangyuxin 1b68098f08 [libc] Fix Win32 compilation errors 2021-03-16 14:07:36 +08:00
Bernard Xiong b12615f344
Merge pull request #4427 from mysterywolf/components
[components] auto & manual formatted
2021-03-16 13:53:54 +08:00
Meco Man cc1277d491 [libc][time] 修复没有末尾\0的bug 2021-03-15 11:29:42 +08:00
Meco Jianting Man bc606f9a78
Delete rmtx.c 2021-03-11 15:42:22 +08:00
Bernard Xiong d9b8984398
Merge pull request #4433 from mysterywolf/clang
[libc][time][bug] 修复ARM6报错的问题
2021-03-09 21:00:15 +08:00
Meco Man 09c5420d21 [libc][time][bug] 修复ARM6报错的问题 2021-03-09 17:51:35 +08:00
Meco Man 9952042b0c remove inherent mutex protect 2021-03-09 11:33:22 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
Meco Man ff9210a84d revise comment 2021-03-05 23:13:57 +08:00
Meco Man 3253312758 remove difftime() 2021-03-05 23:09:00 +08:00
Bernard Xiong 0a54f4c3dd
Merge pull request #4388 from mysterywolf/getline
[libc][getline] 删除不必要的声明信息
2021-03-01 15:18:52 +08:00
Meco Man 70f5c10262 remove comments 2021-02-28 11:12:18 +08:00
Meco Man ac275965f2 [libc][newlib] 对syscall中malloc相关桩函数做出编译调整 2021-02-28 11:09:48 +08:00
Bernard Xiong 2bf53d315d
Merge pull request #4369 from mysterywolf/removeminilibc
[libc]移除minilibc 并将其职能并入newlibc中
2021-02-27 09:12:45 +08:00
Meco Man 952e35d9d3 update Kconfig 2021-02-26 06:34:52 +08:00
Meco Man 88abde1578 [libc] beatify getline 2021-02-26 06:17:22 +08:00
Bernard Xiong fae0fa8eea
Merge pull request #4383 from mysterywolf/istty
[libc]fix bug of _isatty_r()
2021-02-26 00:48:58 +08:00
Meco Man 1ce2065660 [libc][armlibc] add multithreaded protection 2021-02-25 09:14:19 +08:00
Meco Man 20b95b8af5 [libc]fix bug of _isatty_r() 2021-02-24 22:09:00 +08:00
Bernard Xiong b7a71b8552
Merge pull request #4371 from mysterywolf/fixold
[libc] 去除RT_USING_NOLIBC 历史遗留
2021-02-24 16:45:29 +08:00
Bernard Xiong 86aec6371a
Merge pull request #4381 from mysterywolf/exit
[kernel]  rt_thread_control() 关闭线程后增加rt_schedule调度
2021-02-24 16:43:00 +08:00
Meco Man 2b98ac215a [kernel] rearrange rt_thread_control() - schedule the thread when close it 2021-02-24 16:29:43 +08:00
Meco Man bf7a3af6fd update readme 2021-02-23 11:28:25 +08:00
Meco Man 6ee0d45644 update 2021-02-23 11:16:41 +08:00
Meco Man 9220447060 update 2021-02-23 10:28:13 +08:00
Meco Man 497e7b45d4 remove minilibc 2021-02-23 03:28:19 +08:00
Meco Man b2d3317c6a remove minilibc 2021-02-23 03:21:16 +08:00
Meco Man 19c8cab8bd update 2021-02-22 17:02:45 +08:00
Meco Man 69dc37e1aa update 2021-02-22 16:53:54 +08:00
Meco Man 46b5eb378f remove _getpid_r() 2021-02-22 16:30:10 +08:00
Meco Man 19ef112016 improve and beautify syscalls 2021-02-21 18:20:45 +08:00
Meco Man 3ebb48fae1 add comment 2021-02-21 18:05:47 +08:00
Meco Man c13c00e45c update 2021-02-21 18:01:29 +08:00
Meco Man d06420e1d7 implement getuid and getpid 2021-02-21 17:25:36 +08:00
Bernard Xiong 4094b0e398
Merge pull request #4358 from mysterywolf/master
[libc] 优化abort函数
2021-02-20 12:15:49 +08:00
Bernard Xiong b204651517
Merge pull request #4333 from mysterywolf/pthread
[pthread][libc][time] 修改pthread与libc的时间函数若干问题
2021-02-20 12:12:56 +08:00
Meco Man ae2d414ca1 add system() for IAR 2021-02-20 11:57:41 +08:00
Meco Man 0ce0e2c234 update 2021-02-20 11:35:41 +08:00
Meco Man eaa3454bbe 优化abort函数 2021-02-20 11:31:58 +08:00
Bernard Xiong 7ed6644db9
Merge pull request #4344 from mysterywolf/exit_1
[libc][common] 精简exit和abort函数
2021-02-18 00:06:18 +08:00
Meco Man 263d856fa4 update 2021-02-17 23:50:12 +08:00
Meco Man 3392d7fe50 [libc][newlib]重定义CLOCKS_PER_SEC宏 2021-02-17 03:21:20 +08:00
Meco Man 933c54c668 update 2021-02-17 00:27:24 +08:00
Meco Man 9f5878b2fb update 2021-02-17 00:18:49 +08:00
Meco Man e927a53b41 精简exit abort system函数 2021-02-17 00:02:28 +08:00
Bernard Xiong 06f47dafd2
Merge pull request #4339 from mysterywolf/exit
[libc][keil]实现_sys_tmpnam()函数
2021-02-15 23:43:32 +08:00
Bernard Xiong 91d29c33db
Merge pull request #4340 from mysterywolf/RT_TICK_PER_SECOND
[libc][keil] 在sconscript中定义CLOCKS_PER_SEC宏
2021-02-15 23:30:10 +08:00
Bernard Xiong d1cb9c5d97
Merge pull request #4341 from mysterywolf/unlink
[libc][iar][gcc] 优化remove函数
2021-02-15 09:28:48 +08:00
Meco Man c842f2a067 change header 2021-02-15 08:05:49 +08:00
Meco Man 540bacad9c update 2021-02-15 08:03:52 +08:00
Meco Man abcb050603 [libc][iar][gcc] 优化remove函数 2021-02-15 07:53:58 +08:00
Meco Man 4615a7d96c remove gcc 2021-02-15 07:35:14 +08:00
Meco Man 33769db3cf [libc][gcc][keil] 在sconscript中定义RT_TICK_PER_SECOND宏 2021-02-15 07:17:16 +08:00
Meco Man c4d11f52dd update 2021-02-14 18:47:48 +08:00
Meco Man bb35f07bf2 implement _sys_tmpnam() 2021-02-14 18:46:55 +08:00
Meco Man 652d98bca6 update dlibc syscalls.c 2021-02-13 15:16:53 +08:00
Meco Man 2530a5a272 [dlib]remove syscalls.h and add syscalls.c to implement exit() and abort() 2021-02-13 15:14:07 +08:00
Meco Man f1fa47611f update 2021-02-13 13:30:40 +08:00
Meco Man 23d4c200c9 add noreturn 2021-02-13 13:23:18 +08:00
Meco Man b89b3958bc [libc][exit][abort] 重新实现exit和abort函数 2021-02-13 13:16:17 +08:00
Meco Man 598aa86f75 move clock_time_to_tick to time.c 2021-02-12 20:36:17 +08:00
Meco Man 5fc59f88c1 update 2021-02-12 12:14:45 +08:00