Commit Graph

478 Commits

Author SHA1 Message Date
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
Meco Man ac500f35d6 change RT_USING_PTHREADS to RT_USING_POSIX 2021-02-12 12:08:14 +08:00
Meco Man e33e7822d7 add <sys/types.h> 2021-02-12 02:58:44 +08:00
Meco Man fa8e8ed31f add RTM_EXPORT label for unistd.c 2021-02-12 02:21:30 +08:00
Meco Man e3a32e807c update 2021-02-12 02:20:22 +08:00
Meco Man 789f1a8753 move all functions located in <pthread_sleep.c> to this file 2021-02-12 02:12:33 +08:00
Meco Man 417f8b9bed update 2021-02-12 01:46:16 +08:00
Meco Man 107c27f38d update 2021-02-12 01:40:45 +08:00
Meco Man 291fe36139 [pthread][libc] move 'clock_time' to libc 2021-02-12 01:30:41 +08:00
Bernard Xiong a4dd106d49
Merge pull request #4316 from mysterywolf/gettimeofday
[libc][time] 修复多处bug;增加time相关函数
2021-02-11 23:37:25 +08:00
Meco Man ce4fabe158 add errno 2021-02-11 20:48:30 +08:00
Meco Man dbe1a9c2dc 移除无用的代码 2021-02-11 16:29:14 +08:00
Meco Man dd147925e5 fix time() return value 2021-02-11 13:41:24 +08:00
Meco Man e904f9bf27 update common 2021-02-11 03:03:59 +08:00
Meco Man b4c8cb1445 remove declare 2021-02-11 03:02:32 +08:00
Meco Man a400991ee9 remove _gettimeofday_r() and _times_r() 2021-02-11 02:58:19 +08:00
Meco Man e3fee1ca77 2 spaces -> 4 spaces 2021-02-11 02:46:23 +08:00
Meco Man d67d4d3fd0 add difftime() 2021-02-11 02:34:38 +08:00
Meco Man 51cb109cf8 fix bug #3183 - align days[] and months[] to 4 bytes 2021-02-11 02:33:45 +08:00
Meco Man 5e5ceabfdc add ctime_r() and re-implement ctime() 2021-02-11 02:32:47 +08:00
Meco Man 072dbe57c6 format & add clear tm_isdst 2021-02-11 02:31:53 +08:00
Meco Man 66e2a9424b update 2021-02-10 21:01:16 +08:00
Meco Man 39ff4b5a97 修改时区计算公式的错误 2021-02-08 11:37:24 +08:00
Meco Man 2645aec2e3 删除没有用的预编译,在新版的IAR中此已经不需要了
对time函数增加RT_WEAK
2021-02-08 11:30:49 +08:00
Meco Man 3e9c77efd5 优化IAR 2021-02-08 10:55:08 +08:00
Meco Man 9b428e519f avoid warning 2021-02-08 10:42:50 +08:00
Meco Man d0c2631b12 revert time() 2021-02-08 10:33:12 +08:00
Meco Man 6c7dd30532 add function settimeofday & stime 2021-02-08 00:56:31 +08:00
Meco Man 4c6962436a update 2021-02-07 22:33:37 +08:00
Meco Man d92f8a53da update 2021-02-07 22:25:30 +08:00
Meco Man 0d30632de6 fix #3976 2021-02-07 22:09:22 +08:00
Meco Man c2fca3dffe 修复RTC驱动以及libc time.c库若干问题 2021-02-05 13:13:22 +08:00
yangjie eeaf1fcc50 resolve Conflicts
bsp/nrf52832/board/Sconscript
	bsp/nrf52832/startups/Sconscript
	bsp/raspberry-pi/raspi4-32/driver/SConscript
2020-12-28 12:02:31 +08:00
yangjie ef62febf1f [SConscript]update group name 2020-12-19 16:49:11 +08:00
mysterywolf ab75425540 update 2020-12-17 11:32:10 +08:00
mysterywolf e5b10628ee update 2020-12-16 16:05:43 +08:00
mysterywolf 9d004a2892 实现 usleep 2020-12-16 15:34:41 +08:00
mysterywolf 702103a203 prepare for usleep 2020-12-16 15:25:08 +08:00
Bernard Xiong 95130a9000
Merge pull request #4117 from mysterywolf/time1
[bug][keil][libc]修复开启pthread功能后keil报错的问题
2020-12-16 10:13:45 +08:00
mysterywolf 1ad70b20ad [keil][libc]防止开启pthread功能后 keil报错 2020-12-04 20:16:56 +08:00
Bernard Xiong d7c367d38b
Merge pull request #4070 from mysterywolf/getline
[bug] [libc] 增加#include <rtconfig.h> 防止开启termios功能后报错
2020-12-03 08:40:07 +08:00
yangjie11 ba83ddc3c4 [SConscript] change libcpu to LIBARCH,and correcte letter case 2020-11-30 15:52:43 +08:00
chenjh cb54cda19e [bug] [libc] 修复posix_sem_find中iter->sem的数据类型转换问题 2020-11-24 11:18:54 +08:00
Meco Man 54143409ca
增加#include <rtconfig.h> 防止开启termios功能后报错 2020-11-23 01:14:44 +08:00
yangjie11 91261e25b9 [SConscript]rename group name 2020-11-20 13:38:11 +08:00
mysterywolf d5f8830177 add newlib/dlib readme 2020-11-10 13:06:16 +08:00
mysterywolf 794f969d36 [libc][armlibc] add readme 2020-11-10 12:55:21 +08:00
Bernard Xiong 4515c21d29
Merge pull request #3942 from mysterywolf/unsitd
[fixed] 在keil环境下 compilers\armlibc\sys\unistd.h 与 libc_fcntl.h的宏定义发生了…
2020-10-11 09:39:13 +08:00
Bernard Xiong a5cd7e7abd
Merge pull request #3944 from mysterywolf/libc
[fix bug] #3902
2020-10-11 09:37:38 +08:00
mysterywolf 96acad78ba 将posix_getline.h termios.h 头文件包含从<>改为""以防止路径出现分歧 2020-10-03 00:31:49 +08:00
mysterywolf c7aa6f0619 [fix bug] #3902 2020-10-02 12:00:52 +08:00
Meco Man 60b1b87903
[fixed] 在keil环境下 compilers\armlibc\sys\unistd.h 与 libc_fcntl.h的宏定义发生了重复定义的冲突 2020-10-02 11:22:17 +08:00
mysterywolf b3ab8a99e1 Signed-off-by: mysterywolf 2020-09-09 08:59:39 +08:00
mysterywolf 28e0c99d00 Signed-off-by: mysterywolf 2020-09-09 00:53:53 +08:00
mysterywolf 4305a678a3 修改common文件夹的sconscript 并 取消并恢复上一个commit的提交内容 2020-09-08 16:29:47 +08:00
mysterywolf ff097f0467 增加 __GNUC__宏定义 和sconscript的平台识别以避免重复定义 2020-09-08 13:16:49 +08:00
mysterywolf 0607ff84ab 解决minilibc time.c和newlibc仅定义RT_LIBC_USING_TIME时冲突的问题 2020-09-08 11:12:56 +08:00
mysterywolf f021cb982a 修改common下的sconscript脚本文件,增加unistd.c排除条件 2020-09-08 10:52:02 +08:00
mysterywolf 5eccf51b61 Signed-off-by: mysterywolf 2020-09-08 10:29:17 +08:00
mysterywolf 237a71de27 修复common文件夹,该文件夹为armlibc/newlib/dlib的共同文件的文件夹 2020-09-08 10:26:03 +08:00
mysterywolf 05190990b4 增加posix_getline.c/.h版权信息 2020-09-05 22:09:22 +08:00
mysterywolf 443978eb78 增加RT_USING_POSIX_GETLINE用于单独控制是否启用getline函数,并修改Kconfig增加对应选项 2020-09-05 19:47:34 +08:00
mysterywolf f13014526c [bug fix]对各个libc库的termios.h增加宏定义,以防止在termios函数没有定义时,将posix_termios.h头文件引入导致报错 2020-09-05 17:52:32 +08:00
mysterywolf 6eb62a3f9d 将unistd.c不再放在common中,分散到各个库中 2020-09-05 17:50:54 +08:00
mysterywolf 8a08be6b9e [fix bugs]修改armlibc/sys/types.h 该文件中不能用rt_数据类型,否则会引起编译器递归编译 2020-09-05 17:41:54 +08:00
mysterywolf d5d8b345f4 修改libc_signal.h 该文件中不能用rt_数据类型,否则会引起编译器递归编译 2020-09-05 16:59:53 +08:00
mysterywolf 74ab1551fd add posix 2008 limit.h 2020-09-05 16:14:21 +08:00
mysterywolf a41ebbb697 add posix functions getline/getdelim 2020-09-05 15:42:03 +08:00
mysterywolf 5721fa8990 Signed-off-by: mysterywolf 2020-09-02 10:33:37 +08:00
mysterywolf a162640f89 Signed-off-by: mysterywolf 2020-09-02 10:25:52 +08:00
mysterywolf 837604553b 增加unistd.c文件 2020-09-02 10:22:47 +08:00
mysterywolf 9b470d448d 取消isatty函数在本文件中的实现,转移到其他文件中 2020-09-02 10:18:52 +08:00
Meco 576475f14f change format 2020-08-05 09:28:10 +08:00
Meco f7ba4a6341 增加条件编译,防止RT_USING_DFS没有定义时 _sys_flen()出现编译警告:stat变量定义但没有被调用 的问题 2020-08-05 02:47:27 +08:00
Bernard Xiong be43008c56 [libc] remove pthread.h in newlib/syscalls.c 2020-06-06 13:23:56 +08:00
Bernard Xiong fe2e9e924e [libc] fix 64bit issue for pthreads 2020-06-06 13:21:32 +08:00
Bernard Xiong a4f1905b6d [libc] Fix pthreads compiling issue with new newlib version 2020-06-06 13:20:58 +08:00
Cliff Chen 42f9de1b42 [dlmodule] Fix crash when dlmodule exit
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2020-05-15 17:53:55 +08:00
bigmagic 3d29ac8953 remove redefinition 'mode_t' 2020-04-11 22:35:02 +08:00
roger a3d6d47225 祛除了不必要的格式修改 2020-03-31 09:35:13 +08:00
roger 63a82cac47 在posix_termios.c中引用termios.h 2020-03-30 15:59:44 +08:00
roger 8601850a21 first commit 2020-03-30 15:21:58 +08:00
djndl1 48b9ab570f make clock_time.h available to C++ 2020-03-03 01:34:18 +08:00
tonyzheng-rockchip 1f5118f7dd Add priority & stack_size param parsing for dlmodule 2020-01-03 14:31:38 +08:00
tonyzheng-rockchip 04c20bc8ed Revert "Add priority & stack_size parameters for dlmodule custom"
This reverts commit f38b5a9f9f.
2020-01-03 09:18:51 +08:00
tonyzheng-rockchip f38b5a9f9f Add priority & stack_size parameters for dlmodule custom 2020-01-02 08:54:48 +08:00
tonyzheng-rockchip d910372010 Fix dlmodule must depends on file system issue
解决dlmodule只能依赖于文件系统的问题;
    增加dlmodule扩展接口,以适应更多需求;
2019-12-27 14:27:31 +08:00
Bernard Xiong b5e4aa58e0 [Kernel] Fix the signal compiling issue when using minilibc 2019-12-18 23:06:36 +08:00
qinpan1003 b838280d24 fix bug for pthread_create memory leak 2019-10-10 22:42:14 +08:00
zhangjun f7e7170536 [components][libc][compilers][newlib]添加flock接口 2019-09-26 14:34:59 +08:00
zhangjun 8ed3daed5f [components][libc][compilers][newlib]添加getuid和umask函数 2019-09-26 11:27:37 +08:00
liruncong 408bb22af6 [components/libc/compilers]撤销由VS编辑器在键入}后自动引起的缩进 2019-09-15 11:47:11 +08:00
liruncong d76d30cf50 [components/libc/compilers]c++文件引用libc.h支持 2019-09-14 22:52:06 +08:00
zhangjun 3f39059217 [components][libc][compilers][common]移除time.c中未使用的变量timezone 2019-09-11 18:51:10 +08:00
zhangjun a186ada6da [components][libc][compilers]移动time相关头文件到common目录 2019-09-10 09:59:11 +08:00
yangjie 27222e9cd8 [compilers][libc] 在 minilibc 的 math.h 中增加 float_t 与 double_t 的定义 2019-09-07 18:06:03 +08:00
zhangjun dabe951415 [components][libc][common]修改__IAR_SYSTEMS_ICC__宏定义的作用范围 2019-09-02 14:52:32 +08:00
zhangjun 6910a9e97b 修复IAR8.1之后出现的__localtime32等重定义错误 2019-08-27 15:03:01 +08:00
zhangjun 9714b520c4 [components][libc]修改Kconfig选项名 2019-08-22 15:59:51 +08:00
zhangjun 3ede7630c0 [components][libc][compilers][common]拆分armcc和iar的time相关函数到common目录,同时修复原来在使用LIBC时time相关函数的BUG(armcc下使用gmtime、localtime、mktime会导致崩溃) 2019-08-22 15:34:50 +08:00
Bernard Xiong 2844e3d974 [dlib] Add more header files for IAR/dlib 2019-07-08 13:34:57 +08:00