diff options
| author | Man, Jianting (Meco) <[email protected]> | 2022-01-08 10:29:41 -0500 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2022-01-09 00:20:32 +0800 |
| commit | bb1084556ff9395e6e5d908edfef9cab6f6fa4dc (patch) | |
| tree | 97e0844decee5d889c1b10d88d16db36bba44245 /components/libc/posix | |
| parent | 353f717037b57f663ddce9447fd05700f3087a66 (diff) | |
[console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题
* [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题
* format codes
* [libc] 整理格式
* refresh projects
Diffstat (limited to 'components/libc/posix')
| -rw-r--r-- | components/libc/posix/delay/delay.c | 1 | ||||
| -rw-r--r-- | components/libc/posix/delay/delay.h | 1 | ||||
| -rw-r--r-- | components/libc/posix/io/libc.c | 1 | ||||
| -rw-r--r-- | components/libc/posix/io/libc.h | 1 | ||||
| -rw-r--r-- | components/libc/posix/io/poll/poll.c | 1 | ||||
| -rw-r--r-- | components/libc/posix/io/poll/poll.h | 1 | ||||
| -rw-r--r-- | components/libc/posix/io/select.c | 1 | ||||
| -rw-r--r-- | components/libc/posix/io/termios/termios.c | 1 | ||||
| -rw-r--r-- | components/libc/posix/io/termios/termios.h | 1 | ||||
| -rw-r--r-- | components/libc/posix/ipc/system-v/sys/ipc.h | 1 | ||||
| -rw-r--r-- | components/libc/posix/ipc/system-v/sys/msg.h | 1 | ||||
| -rw-r--r-- | components/libc/posix/ipc/system-v/sys/sem.h | 1 | ||||
| -rw-r--r-- | components/libc/posix/ipc/system-v/sys/shm.h | 1 |
13 files changed, 13 insertions, 0 deletions
diff --git a/components/libc/posix/delay/delay.c b/components/libc/posix/delay/delay.c index c8564dc54e..753ca48526 100644 --- a/components/libc/posix/delay/delay.c +++ b/components/libc/posix/delay/delay.c @@ -7,6 +7,7 @@ * Date Author Notes * 2021-05-07 Meco Man first Version */ + #include <sys/types.h> #include <rtthread.h> #include <rthw.h> diff --git a/components/libc/posix/delay/delay.h b/components/libc/posix/delay/delay.h index f32708af55..19492bdb45 100644 --- a/components/libc/posix/delay/delay.h +++ b/components/libc/posix/delay/delay.h @@ -7,6 +7,7 @@ * Date Author Notes * 2021-05-07 Meco Man first Version */ + #ifndef __DELAY_H__ #define __DELAY_H__ diff --git a/components/libc/posix/io/libc.c b/components/libc/posix/io/libc.c index d8780b1b31..e57749f1da 100644 --- a/components/libc/posix/io/libc.c +++ b/components/libc/posix/io/libc.c @@ -7,6 +7,7 @@ * Date Author Notes * 2017/10/15 bernard the first version */ + #include <rtthread.h> #include <stdio.h> #include <stdlib.h> diff --git a/components/libc/posix/io/libc.h b/components/libc/posix/io/libc.h index 983a927dc3..6b5dfd1fcc 100644 --- a/components/libc/posix/io/libc.h +++ b/components/libc/posix/io/libc.h @@ -7,6 +7,7 @@ * Date Author Notes * 2017/10/15 bernard the first version */ + #ifndef __RTT_LIBC_H__ #define __RTT_LIBC_H__ diff --git a/components/libc/posix/io/poll/poll.c b/components/libc/posix/io/poll/poll.c index a1500ba109..3c5940b8d3 100644 --- a/components/libc/posix/io/poll/poll.c +++ b/components/libc/posix/io/poll/poll.c @@ -8,6 +8,7 @@ * 2016-12-28 Bernard first version * 2018-03-09 Bernard Add protection for pt->triggered. */ + #include <stdint.h> #include <rthw.h> #include <rtthread.h> diff --git a/components/libc/posix/io/poll/poll.h b/components/libc/posix/io/poll/poll.h index aea73d6eaf..0fccd48b0d 100644 --- a/components/libc/posix/io/poll/poll.h +++ b/components/libc/posix/io/poll/poll.h @@ -7,6 +7,7 @@ * Date Author Notes * 2021-09-11 Meco Man First version */ + #ifndef __POLL_H__ #define __POLL_H__ diff --git a/components/libc/posix/io/select.c b/components/libc/posix/io/select.c index 55d320e921..bac63258a5 100644 --- a/components/libc/posix/io/select.c +++ b/components/libc/posix/io/select.c @@ -7,6 +7,7 @@ * Date Author Notes * 2016-12-28 Bernard first version */ + #include <rtthread.h> #include <poll.h> #include <sys/select.h> diff --git a/components/libc/posix/io/termios/termios.c b/components/libc/posix/io/termios/termios.c index d7d869d67f..44e0e80853 100644 --- a/components/libc/posix/io/termios/termios.c +++ b/components/libc/posix/io/termios/termios.c @@ -7,6 +7,7 @@ * Date Author Notes * 2017/08/30 Bernard The first version */ + #include <stdlib.h> #include <string.h> #include <dfs_posix.h> diff --git a/components/libc/posix/io/termios/termios.h b/components/libc/posix/io/termios/termios.h index b647fa0728..27f2db85b0 100644 --- a/components/libc/posix/io/termios/termios.h +++ b/components/libc/posix/io/termios/termios.h @@ -7,6 +7,7 @@ * Date Author Notes * 2017/08/30 Bernard The first version */ + #ifndef __TERMIOS_H__ #define __TERMIOS_H__ diff --git a/components/libc/posix/ipc/system-v/sys/ipc.h b/components/libc/posix/ipc/system-v/sys/ipc.h index 03b5458d51..f4ac50a1e9 100644 --- a/components/libc/posix/ipc/system-v/sys/ipc.h +++ b/components/libc/posix/ipc/system-v/sys/ipc.h @@ -7,6 +7,7 @@ * Date Author Notes * 2021-12-07 Meco Man First version */ + #ifndef __SYS_IPC_H__ #define __SYS_IPC_H__ diff --git a/components/libc/posix/ipc/system-v/sys/msg.h b/components/libc/posix/ipc/system-v/sys/msg.h index c030c9e8cb..1489586a32 100644 --- a/components/libc/posix/ipc/system-v/sys/msg.h +++ b/components/libc/posix/ipc/system-v/sys/msg.h @@ -7,6 +7,7 @@ * Date Author Notes * 2021-12-07 Meco Man First version */ + #ifndef __SYS_MSG_H__ #define __SYS_MSG_H__ diff --git a/components/libc/posix/ipc/system-v/sys/sem.h b/components/libc/posix/ipc/system-v/sys/sem.h index fdb70496d8..4a32c91204 100644 --- a/components/libc/posix/ipc/system-v/sys/sem.h +++ b/components/libc/posix/ipc/system-v/sys/sem.h @@ -7,6 +7,7 @@ * Date Author Notes * 2021-12-07 Meco Man First version */ + #ifndef __SYS_SEM_H__ #define __SYS_SEM_H__ diff --git a/components/libc/posix/ipc/system-v/sys/shm.h b/components/libc/posix/ipc/system-v/sys/shm.h index 762d68891a..5b536067fc 100644 --- a/components/libc/posix/ipc/system-v/sys/shm.h +++ b/components/libc/posix/ipc/system-v/sys/shm.h @@ -7,6 +7,7 @@ * Date Author Notes * 2021-12-07 Meco Man First version */ + #ifndef __SYS_SHM_H__ #define __SYS_SHM_H__ |
