Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
d9265653
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
1 年多 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d9265653
编写于
5月 26, 2013
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'nsz/review'
上级
5e642b5a
31ff7977
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
30 addition
and
48 deletion
+30
-48
arch/arm/bits/ioctl.h
arch/arm/bits/ioctl.h
+3
-3
arch/i386/bits/ioctl.h
arch/i386/bits/ioctl.h
+3
-3
arch/microblaze/bits/ioctl.h
arch/microblaze/bits/ioctl.h
+3
-3
arch/mips/bits/ioctl.h
arch/mips/bits/ioctl.h
+4
-4
arch/powerpc/bits/ioctl.h
arch/powerpc/bits/ioctl.h
+3
-22
arch/x86_64/bits/alltypes.h.sh
arch/x86_64/bits/alltypes.h.sh
+4
-4
arch/x86_64/bits/ioctl.h
arch/x86_64/bits/ioctl.h
+3
-3
include/sys/time.h
include/sys/time.h
+5
-5
src/linux/settimeofday.c
src/linux/settimeofday.c
+2
-1
未找到文件。
arch/arm/bits/ioctl.h
浏览文件 @
d9265653
...
...
@@ -4,9 +4,9 @@
#define _IOC_READ 2U
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
#define _IOW(a,b,c) _IOC(
1
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
2
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
3
,(a),(b),sizeof(c))
#define _IOW(a,b,c) _IOC(
_IOC_WRITE
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
_IOC_READ
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
_IOC_READ|_IOC_WRITE
,(a),(b),sizeof(c))
#define TCGETS 0x5401
#define TCSETS 0x5402
...
...
arch/i386/bits/ioctl.h
浏览文件 @
d9265653
...
...
@@ -4,9 +4,9 @@
#define _IOC_READ 2U
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
#define _IOW(a,b,c) _IOC(
1
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
2
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
3
,(a),(b),sizeof(c))
#define _IOW(a,b,c) _IOC(
_IOC_WRITE
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
_IOC_READ
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
_IOC_READ|_IOC_WRITE
,(a),(b),sizeof(c))
#define TCGETS 0x5401
#define TCSETS 0x5402
...
...
arch/microblaze/bits/ioctl.h
浏览文件 @
d9265653
...
...
@@ -4,9 +4,9 @@
#define _IOC_READ 2U
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
#define _IOW(a,b,c) _IOC(
1
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
2
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
3
,(a),(b),sizeof(c))
#define _IOW(a,b,c) _IOC(
_IOC_WRITE
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
_IOC_READ
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
_IOC_READ|_IOC_WRITE
,(a),(b),sizeof(c))
#define TCGETS 0x5401
#define TCSETS 0x5402
...
...
arch/mips/bits/ioctl.h
浏览文件 @
d9265653
...
...
@@ -3,10 +3,10 @@
#define _IOC_READ 2U
#define _IOC_WRITE 4U
#define _IO(a,b) _IOC(
1U
,(a),(b),0)
#define _IOW(a,b,c) _IOC(
4U
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
2U
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
6U
,(a),(b),sizeof(c))
#define _IO(a,b) _IOC(
_IOC_NONE
,(a),(b),0)
#define _IOW(a,b,c) _IOC(
_IOC_WRITE
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
_IOC_READ
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
_IOC_READ|_IOC_WRITE
,(a),(b),sizeof(c))
#define TCGETA 0x5401
#define TCSETA 0x5402
...
...
arch/powerpc/bits/ioctl.h
浏览文件 @
d9265653
//#define _IOC(a,b,c,d) ( ((a)<<29) | ((b)<<8) | (c) | ((d)<<16) )
//
#define _IOC_SIZEBITS 13
#define _IOC_DIRBITS 3
#define _IOC_NRBITS 8
#define _IOC_TYPEBITS 8
#define _IOC_NRSHIFT 0
#define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS)
#define _IOC_SIZESHIFT (_IOC_TYPESHIFT+_IOC_TYPEBITS)
#define _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS)
#define _IOC(dir,type,nr,size) \
(((dir) << _IOC_DIRSHIFT) | \
((type) << _IOC_TYPESHIFT) | \
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))
#define _IOC(a,b,c,d) ( ((a)<<29) | ((b)<<8) | (c) | ((d)<<16) )
#define _IOC_NONE 1U
#define _IOC_WRITE 4U
#define _IOC_READ 2U
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
#define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(_IOC_READ
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(_IOC_READ
|
_IOC_WRITE,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(_IOC_READ
|
_IOC_WRITE,(a),(b),sizeof(c))
#define FIONCLEX _IO('f', 2)
#define FIOCLEX _IO('f', 1)
...
...
arch/x86_64/bits/alltypes.h.sh
浏览文件 @
d9265653
...
...
@@ -94,12 +94,12 @@ TYPEDEF long off_t;
TYPEDEF unsigned int mode_t;
TYPEDEF unsigned long nlink_t;
TYPEDEF unsigned long
long
ino_t;
TYPEDEF unsigned long ino_t;
TYPEDEF unsigned long dev_t;
TYPEDEF long blksize_t;
TYPEDEF long
long
blkcnt_t;
TYPEDEF unsigned long
long
fsblkcnt_t;
TYPEDEF unsigned long
long
fsfilcnt_t;
TYPEDEF long blkcnt_t;
TYPEDEF unsigned long fsblkcnt_t;
TYPEDEF unsigned long fsfilcnt_t;
TYPEDEF void * timer_t;
TYPEDEF int clockid_t;
...
...
arch/x86_64/bits/ioctl.h
浏览文件 @
d9265653
...
...
@@ -4,9 +4,9 @@
#define _IOC_READ 2U
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
#define _IOW(a,b,c) _IOC(
1
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
2
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
3
,(a),(b),sizeof(c))
#define _IOW(a,b,c) _IOC(
_IOC_WRITE
,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(
_IOC_READ
,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(
_IOC_READ|_IOC_WRITE
,(a),(b),sizeof(c))
#define TCGETS 0x5401
#define TCSETS 0x5402
...
...
include/sys/time.h
浏览文件 @
d9265653
...
...
@@ -30,15 +30,15 @@ int utimes (const char *, const struct timeval [2]);
#endif
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
int
futimes
(
int
,
const
struct
timeval
[
2
]);
int
futimesat
(
int
,
const
char
*
,
const
struct
timeval
[
2
]);
int
lutimes
(
const
char
*
,
const
struct
timeval
[
2
]);
int
settimeofday
(
const
struct
timeval
*
,
void
*
);
int
adjtime
(
const
struct
timeval
*
,
struct
timeval
*
);
struct
timezone
{
int
tz_minuteswest
;
int
tz_dsttime
;
};
int
futimes
(
int
,
const
struct
timeval
[
2
]);
int
futimesat
(
int
,
const
char
*
,
const
struct
timeval
[
2
]);
int
lutimes
(
const
char
*
,
const
struct
timeval
[
2
]);
int
settimeofday
(
const
struct
timeval
*
,
const
struct
timezone
*
);
int
adjtime
(
const
struct
timeval
*
,
struct
timeval
*
);
#define timerisset(t) ((t)->tv_sec || (t)->tv_usec)
#define timerclear(t) ((t)->tv_sec = (t)->tv_usec = 0)
#define timercmp(s,t,op) ((s)->tv_sec == (t)->tv_sec ? \
...
...
src/linux/settimeofday.c
浏览文件 @
d9265653
#define _BSD_SOURCE
#include <sys/time.h>
#include "syscall.h"
int
settimeofday
(
const
struct
timeval
*
tv
,
void
*
tz
)
int
settimeofday
(
const
struct
timeval
*
tv
,
const
struct
timezone
*
tz
)
{
return
syscall
(
SYS_settimeofday
,
tv
,
0
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录