Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2345VOR
rt-thread
提交
a5f7635f
R
rt-thread
项目概览
2345VOR
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a5f7635f
编写于
5月 22, 2021
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove libc_errno.h & libc_limits.h
上级
126af8e4
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
27 addition
and
57 deletion
+27
-57
components/dfs/include/dfs_fs.h
components/dfs/include/dfs_fs.h
+1
-1
components/libc/compilers/common/none-gcc/sys/errno.h
components/libc/compilers/common/none-gcc/sys/errno.h
+7
-14
components/libc/compilers/common/time.c
components/libc/compilers/common/time.c
+1
-0
components/libc/getline/posix_getline.c
components/libc/getline/posix_getline.c
+3
-3
components/libc/pthreads/posix_types.h
components/libc/pthreads/posix_types.h
+1
-1
components/libc/termios/posix_termios.c
components/libc/termios/posix_termios.c
+1
-1
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
+1
-1
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
+1
-1
components/net/lwip-2.0.2/src/lwipopts.h
components/net/lwip-2.0.2/src/lwipopts.h
+2
-0
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
+1
-1
components/net/lwip-2.1.2/src/include/lwip/errno.h
components/net/lwip-2.1.2/src/include/lwip/errno.h
+1
-1
components/net/lwip-2.1.2/src/lwipopts.h
components/net/lwip-2.1.2/src/lwipopts.h
+1
-0
components/net/sal_socket/socket/net_sockets.c
components/net/sal_socket/socket/net_sockets.c
+1
-1
examples/libc/ex3.c
examples/libc/ex3.c
+1
-1
examples/libc/ex6.c
examples/libc/ex6.c
+1
-1
examples/libc/ex7.c
examples/libc/ex7.c
+1
-1
examples/libc/file.c
examples/libc/file.c
+1
-1
examples/libc/memory.c
examples/libc/memory.c
+1
-1
include/libc/libc_limits.h
include/libc/libc_limits.h
+0
-25
include/rtlibc.h
include/rtlibc.h
+0
-2
未找到文件。
components/dfs/include/dfs_fs.h
浏览文件 @
a5f7635f
...
...
@@ -15,7 +15,7 @@
#ifdef RT_USING_LIBC
#include <sys/types.h>
#endif
#include <sys/errno.h>
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
include/libc/libc_
errno.h
→
components/libc/compilers/common/none-gcc/sys/
errno.h
浏览文件 @
a5f7635f
...
...
@@ -5,18 +5,10 @@
*
* Change Logs:
* Date Author Notes
* 20
16-11-12 Bernard The first version
* 20
21-05-22 Meco Man The first version.
*/
#ifndef LIBC_ERRNO_H__
#define LIBC_ERRNO_H__
#include <rtconfig.h>
#if defined(RT_USING_NEWLIB) || defined(_WIN32) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
/* use errno.h file in toolchains */
#include <errno.h>
#endif
#ifndef _SYS_ERRNO_H
#define _SYS_ERRNO_H
#if defined(__CC_ARM)
/*
...
...
@@ -29,6 +21,7 @@ defined in armcc/errno.h
#define EINVAL 5
#define ENOMEM 6
*/
#define ERROR_BASE_NO 7
#elif defined(__IAR_SYSTEMS_ICC__)
...
...
@@ -41,11 +34,12 @@ defined in armcc/errno.h
#define ERROR_BASE_NO 36
#else
#define ERROR_BASE_NO 0
#endif
#if !defined(RT_USING_NEWLIB) && !defined(_WIN32) && !(defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
#if !defined(_WIN32)
#include <errno.h>
#define EPERM (ERROR_BASE_NO + 1)
#define ENOENT (ERROR_BASE_NO + 2)
...
...
@@ -200,7 +194,6 @@ defined in armcc/errno.h
#define ENOTRECOVERABLE (ERROR_BASE_NO + 131)
#define ERFKILL (ERROR_BASE_NO + 132)
#define EHWPOISON (ERROR_BASE_NO + 133)
#endif
#endif
components/libc/compilers/common/time.c
浏览文件 @
a5f7635f
...
...
@@ -21,6 +21,7 @@
*/
#include "sys/time.h"
#include <sys/errno.h>
#include <rtthread.h>
#ifdef RT_USING_DEVICE
...
...
components/libc/getline/posix_getline.c
浏览文件 @
a5f7635f
...
...
@@ -11,8 +11,8 @@
#include "posix_getline.h"
#include <stdlib.h>
#include <
errno
.h>
#include <
rtlibc
.h>
#include <
limits
.h>
#include <
sys/errno
.h>
ssize_t
getdelim
(
char
**
lineptr
,
size_t
*
n
,
int
delim
,
FILE
*
stream
)
{
char
*
cur_pos
,
*
new_lineptr
;
...
...
@@ -43,7 +43,7 @@ ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream) {
break
;
if
((
*
lineptr
+
*
n
-
cur_pos
)
<
2
)
{
if
(
SSIZE
_MAX
/
2
<
*
n
)
{
if
(
LONG
_MAX
/
2
<
*
n
)
{
#ifdef EOVERFLOW
errno
=
EOVERFLOW
;
#else
...
...
components/libc/pthreads/posix_types.h
浏览文件 @
a5f7635f
...
...
@@ -20,7 +20,7 @@
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <errno.h>
#include <
sys/
errno.h>
#include <fcntl.h>
#endif
...
...
components/libc/termios/posix_termios.c
浏览文件 @
a5f7635f
...
...
@@ -11,7 +11,7 @@
#include <string.h>
#include <rtthread.h>
#include <dfs_posix.h>
#include <sys/errno.h>
#include <termios.h>
int
tcgetattr
(
int
fd
,
struct
termios
*
tio
)
...
...
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
浏览文件 @
a5f7635f
...
...
@@ -105,7 +105,7 @@ void sys_arch_assert(const char* file, int line);
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
#include
"string.h"
#include
<string.h>
#define SYS_ARCH_DECL_PROTECT(level)
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
...
...
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
浏览文件 @
a5f7635f
...
...
@@ -84,7 +84,7 @@ void sys_arch_assert(const char* file, int line);
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
#include
"string.h"
#include
<string.h>
#define SYS_ARCH_DECL_PROTECT(level)
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
...
...
components/net/lwip-2.0.2/src/lwipopts.h
浏览文件 @
a5f7635f
...
...
@@ -5,6 +5,8 @@
#define ERRNO 1
#define LWIP_ERRNO_STDINCLUDE
#define LWIP_IPV4 1
#ifdef RT_USING_LWIP_IPV6
...
...
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
浏览文件 @
a5f7635f
...
...
@@ -46,7 +46,7 @@
#define X32_F "lx"
#ifdef RT_USING_LIBC
#include <errno.h>
#include <
sys/
errno.h>
#ifndef ENSRNOTFOUND
#define ENSRNOTFOUND 163
/* Domain name not found */
#endif
...
...
components/net/lwip-2.1.2/src/include/lwip/errno.h
浏览文件 @
a5f7635f
...
...
@@ -181,7 +181,7 @@ extern int errno;
/* Define LWIP_ERRNO_STDINCLUDE if you want to include <errno.h> here */
#ifdef LWIP_ERRNO_STDINCLUDE
#include <errno.h>
#include <
sys/
errno.h>
#else
/* LWIP_ERRNO_STDINCLUDE */
/* Define LWIP_ERRNO_INCLUDE to an equivalent of <errno.h> to include the error defines here */
#ifdef LWIP_ERRNO_INCLUDE
...
...
components/net/lwip-2.1.2/src/lwipopts.h
浏览文件 @
a5f7635f
...
...
@@ -5,6 +5,7 @@
#define ERRNO 1
#define LWIP_ERRNO_STDINCLUDE
#define LWIP_SOCKET_SELECT 1
#define LWIP_SOCKET_POLL 1
...
...
components/net/sal_socket/socket/net_sockets.c
浏览文件 @
a5f7635f
...
...
@@ -13,7 +13,7 @@
#include <dfs_file.h>
#include <dfs_poll.h>
#include <dfs_net.h>
#include <sys/errno.h>
#include <sys/socket.h>
int
accept
(
int
s
,
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
)
...
...
examples/libc/ex3.c
浏览文件 @
a5f7635f
...
...
@@ -9,7 +9,7 @@
/* Multi-thread searching.
Illustrates: thread cancellation, cleanup handlers. */
#include <errno.h>
#include <
sys/
errno.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
...
...
examples/libc/ex6.c
浏览文件 @
a5f7635f
...
...
@@ -6,7 +6,7 @@
* Change Logs:
* Date Author Notes
*/
#include <errno.h>
#include <
sys/
errno.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
...
...
examples/libc/ex7.c
浏览文件 @
a5f7635f
...
...
@@ -11,7 +11,7 @@
* Test case that illustrates a timed wait on a condition variable.
*/
#include <errno.h>
#include <
sys/
errno.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
...
...
examples/libc/file.c
浏览文件 @
a5f7635f
...
...
@@ -11,7 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <finsh.h>
#include <errno.h>
#include <
sys/
errno.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
...
...
examples/libc/memory.c
浏览文件 @
a5f7635f
...
...
@@ -11,7 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <finsh.h>
#include <errno.h>
#include <
sys/
errno.h>
static
int
errors
=
0
;
static
void
merror
(
const
char
*
msg
)
...
...
include/libc/libc_limits.h
已删除
100644 → 0
浏览文件 @
126af8e4
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-09-05 Meco Man the first version
*/
#ifndef LIBC_LIMITS_H__
#define LIBC_LIMITS_H__
#include <limits.h>
#include <rtconfig.h>
#ifdef RT_USING_POSIX
#ifndef SSIZE_MAX
# define SSIZE_MAX LONG_MAX
#endif
#endif
#endif
include/rtlibc.h
浏览文件 @
a5f7635f
...
...
@@ -13,14 +13,12 @@
/* definitions for libc if toolchain has no these definitions */
#include "libc/libc_stat.h"
#include "libc/libc_errno.h"
#include "libc/libc_fcntl.h"
#include "libc/libc_ioctl.h"
#include "libc/libc_dirent.h"
#include "libc/libc_signal.h"
#include "libc/libc_fdset.h"
#include "libc/libc_limits.h"
#include "libc/libc_stdio.h"
#ifndef RT_USING_LIBC
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录