Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
luozhenger
rt-thread
提交
b3d87274
R
rt-thread
项目概览
luozhenger
/
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,发现更多精彩内容 >>
提交
b3d87274
编写于
10月 31, 2017
作者:
B
bernard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libc] Fix the typedef in minilibc.
上级
47acab44
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
19 deletion
+22
-19
components/libc/compilers/minilibc/stdint.h
components/libc/compilers/minilibc/stdint.h
+8
-8
components/libc/compilers/minilibc/sys/time.h
components/libc/compilers/minilibc/sys/time.h
+1
-0
components/libc/compilers/minilibc/sys/types.h
components/libc/compilers/minilibc/sys/types.h
+9
-11
include/libc/libc_fdset.h
include/libc/libc_fdset.h
+4
-0
未找到文件。
components/libc/compilers/minilibc/stdint.h
浏览文件 @
b3d87274
#ifndef __STDINT_H__
#define __STDINT_H__
#include <rtthread.h>
typedef
rt_int8_t
int8
_t
;
typedef
rt_uint8_t
uint8_t
;
typedef
rt_int16_t
int16
_t
;
typedef
rt_uint16_t
uint16_t
;
typedef
rt_int32_t
int32_t
;
typedef
rt_uint32_t
uint32_t
;
typedef
signed
char
int8_t
;
typedef
signed
short
int16_t
;
typedef
signed
int
int32
_t
;
typedef
unsigned
char
uint8
_t
;
typedef
unsigned
short
uint16_t
;
typedef
unsigned
int
u
int32_t
;
typedef
long
long
int64_t
;
typedef
unsigned
long
long
uint64_t
;
typedef
signed
long
intptr_t
;
...
...
components/libc/compilers/minilibc/sys/time.h
浏览文件 @
b3d87274
...
...
@@ -2,6 +2,7 @@
#define _SYS_TIME_H_
#include <sys/types.h>
typedef
long
time_t
;
/*
* Structure returned by gettimeofday(2) system call,
...
...
components/libc/compilers/minilibc/sys/types.h
浏览文件 @
b3d87274
#ifndef __TYPES_H__
#define __TYPES_H__
#include <rtthread.h>
typedef
long
off_t
;
typedef
unsigned
long
size_t
;
typedef
signed
long
ssize_t
;
/* Used for a count of bytes or an error indication. */
typedef
long
off_t
;
typedef
__SIZE_TYPE__
size_t
;
typedef
signed
long
ssize_t
;
/* Used for a count of bytes or an error indication. */
typedef
unsigned
char
u_char
;
typedef
unsigned
short
u_short
;
typedef
unsigned
int
u_int
;
typedef
unsigned
long
u_long
;
typedef
rt_uint8_t
u_char
;
typedef
rt_uint16_t
u_short
;
typedef
rt_ubase_t
u_int
;
typedef
rt_uint32_t
u_long
;
typedef
rt_time_t
time_t
;
typedef
int
mode_t
;
typedef
unsigned
long
clockid_t
;
typedef
int
pid_t
;
#ifndef NULL
#define NULL
RT_NULL
#define NULL
(0)
#endif
#define __u_char_defined
#endif
include/libc/libc_fdset.h
浏览文件 @
b3d87274
...
...
@@ -40,6 +40,10 @@
#define FD_SETSIZE DFS_FD_MAX
#endif
# ifndef FD_SETSIZE
# define FD_SETSIZE 32
# endif
# define NBBY 8
/* number of bits in a byte */
typedef
long
fd_mask
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录