Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
cfe37314
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
接近 2 年 前同步成功
通知
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看板
提交
cfe37314
编写于
2月 15, 2011
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
finish moving 32-bit-specific junk out of source files.
上级
a5bf06c0
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
34 addition
and
21 deletion
+34
-21
arch/i386/syscall.h
arch/i386/syscall.h
+23
-0
src/dirent/__getdents.c
src/dirent/__getdents.c
+1
-1
src/stat/fstat.c
src/stat/fstat.c
+1
-1
src/stat/fstatat.c
src/stat/fstatat.c
+1
-1
src/stat/fstatvfs.c
src/stat/fstatvfs.c
+1
-1
src/stat/lstat.c
src/stat/lstat.c
+1
-1
src/stat/stat.c
src/stat/stat.c
+1
-1
src/stat/statvfs.c
src/stat/statvfs.c
+1
-1
src/unistd/ftruncate.c
src/unistd/ftruncate.c
+1
-6
src/unistd/pread.c
src/unistd/pread.c
+1
-1
src/unistd/pwrite.c
src/unistd/pwrite.c
+1
-1
src/unistd/truncate.c
src/unistd/truncate.c
+1
-6
未找到文件。
arch/i386/syscall.h
浏览文件 @
cfe37314
...
...
@@ -480,6 +480,29 @@ static inline long syscall6(long n, long a1, long a2, long a3, long a4, long a5,
#define __NR_setfsgid __NR_setfsgid32
/* fixup legacy 32-bit-vs-lfs64 junk */
#undef __NR_getdents
#undef __NR_ftruncate
#undef __NR_truncate
#undef __NR_stat
#undef __NR_fstat
#undef __NR_lstat
#undef __NR_statfs
#undef __NR_fstatfs
#define __NR_getdents __NR_getdents64
#define __NR_ftruncate __NR_ftruncate64
#define __NR_truncate __NR_truncate64
#define __NR_stat __NR_stat64
#define __NR_fstat __NR_fstat64
#define __NR_lstat __NR_lstat64
#define __NR_statfs __NR_statfs64
#define __NR_fstatfs __NR_fstatfs64
#define __NR_fstatat __NR_fstatat64
#define __NR_pread __NR_pread64
#define __NR_pwrite __NR_pwrite64
#undef O_LARGEFILE
#define O_LARGEFILE 0100000
...
...
src/dirent/__getdents.c
浏览文件 @
cfe37314
...
...
@@ -4,7 +4,7 @@
int
__getdents
(
int
fd
,
struct
dirent
*
buf
,
size_t
len
)
{
return
syscall3
(
__NR_getdents
64
,
fd
,
(
long
)
buf
,
len
);
return
syscall3
(
__NR_getdents
,
fd
,
(
long
)
buf
,
len
);
}
weak_alias
(
__getdents
,
getdents
);
...
...
src/stat/fstat.c
浏览文件 @
cfe37314
...
...
@@ -4,7 +4,7 @@
int
fstat
(
int
fd
,
struct
stat
*
buf
)
{
return
syscall2
(
__NR_fstat
64
,
fd
,
(
long
)
buf
);
return
syscall2
(
__NR_fstat
,
fd
,
(
long
)
buf
);
}
LFS64
(
fstat
);
src/stat/fstatat.c
浏览文件 @
cfe37314
...
...
@@ -4,7 +4,7 @@
int
fstatat
(
int
fd
,
const
char
*
path
,
struct
stat
*
buf
,
int
flag
)
{
return
syscall4
(
__NR_fstatat
64
,
fd
,
(
long
)
path
,
(
long
)
buf
,
flag
);
return
syscall4
(
__NR_fstatat
,
fd
,
(
long
)
path
,
(
long
)
buf
,
flag
);
}
LFS64
(
fstatat
);
src/stat/fstatvfs.c
浏览文件 @
cfe37314
...
...
@@ -4,7 +4,7 @@
int
fstatvfs
(
int
fd
,
struct
statvfs
*
buf
)
{
return
syscall2
(
__NR_fstatfs
64
,
fd
,
(
long
)
buf
);
return
syscall2
(
__NR_fstatfs
,
fd
,
(
long
)
buf
);
}
weak_alias
(
fstatvfs
,
fstatfs
);
...
...
src/stat/lstat.c
浏览文件 @
cfe37314
...
...
@@ -4,7 +4,7 @@
int
lstat
(
const
char
*
path
,
struct
stat
*
buf
)
{
return
syscall2
(
__NR_lstat
64
,
(
long
)
path
,
(
long
)
buf
);
return
syscall2
(
__NR_lstat
,
(
long
)
path
,
(
long
)
buf
);
}
LFS64
(
lstat
);
src/stat/stat.c
浏览文件 @
cfe37314
...
...
@@ -4,7 +4,7 @@
int
stat
(
const
char
*
path
,
struct
stat
*
buf
)
{
return
syscall2
(
__NR_stat
64
,
(
long
)
path
,
(
long
)
buf
);
return
syscall2
(
__NR_stat
,
(
long
)
path
,
(
long
)
buf
);
}
LFS64
(
stat
);
src/stat/statvfs.c
浏览文件 @
cfe37314
...
...
@@ -4,7 +4,7 @@
int
statvfs
(
const
char
*
path
,
struct
statvfs
*
buf
)
{
return
syscall2
(
__NR_statfs
64
,
(
long
)
path
,
(
long
)
buf
);
return
syscall2
(
__NR_statfs
,
(
long
)
path
,
(
long
)
buf
);
}
weak_alias
(
statvfs
,
statfs
);
...
...
src/unistd/ftruncate.c
浏览文件 @
cfe37314
...
...
@@ -4,12 +4,7 @@
int
ftruncate
(
int
fd
,
off_t
length
)
{
if
(
sizeof
(
long
)
==
8
)
return
syscall2
(
__NR_ftruncate
,
fd
,
length
);
else
{
union
{
long
long
ll
;
long
l
[
2
];
}
u
=
{
length
};
return
syscall3
(
__NR_ftruncate64
,
fd
,
u
.
l
[
0
],
u
.
l
[
1
]);
}
return
syscall3
(
__NR_ftruncate
,
fd
,
SYSCALL_LL
(
length
));
}
LFS64
(
ftruncate
);
src/unistd/pread.c
浏览文件 @
cfe37314
...
...
@@ -6,7 +6,7 @@ ssize_t pread(int fd, void *buf, size_t size, off_t ofs)
{
ssize_t
r
;
CANCELPT_BEGIN
;
r
=
syscall5
(
__NR_pread
64
,
fd
,
(
long
)
buf
,
size
,
SYSCALL_LL
(
ofs
));
r
=
syscall5
(
__NR_pread
,
fd
,
(
long
)
buf
,
size
,
SYSCALL_LL
(
ofs
));
CANCELPT_END
;
return
r
;
}
...
...
src/unistd/pwrite.c
浏览文件 @
cfe37314
...
...
@@ -6,7 +6,7 @@ ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs)
{
ssize_t
r
;
CANCELPT_BEGIN
;
r
=
syscall5
(
__NR_pwrite
64
,
fd
,
(
long
)
buf
,
size
,
SYSCALL_LL
(
ofs
));
r
=
syscall5
(
__NR_pwrite
,
fd
,
(
long
)
buf
,
size
,
SYSCALL_LL
(
ofs
));
CANCELPT_END
;
return
r
;
}
...
...
src/unistd/truncate.c
浏览文件 @
cfe37314
...
...
@@ -4,12 +4,7 @@
int
truncate
(
const
char
*
path
,
off_t
length
)
{
if
(
sizeof
(
long
)
==
8
)
return
syscall2
(
__NR_truncate
,
(
long
)
path
,
length
);
else
{
union
{
long
long
ll
;
long
l
[
2
];
}
u
=
{
length
};
return
syscall3
(
__NR_truncate64
,
(
long
)
path
,
u
.
l
[
0
],
u
.
l
[
1
]);
}
return
syscall3
(
__NR_truncate
,
(
long
)
path
,
SYSCALL_LL
(
length
));
}
LFS64
(
truncate
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录