Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
561c6731
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
561c6731
编写于
2月 24, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch lseek to COMPAT_SYSCALL_DEFINE
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
aee41fe2
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
15 addition
and
41 deletion
+15
-41
arch/arm64/include/asm/unistd32.h
arch/arm64/include/asm/unistd32.h
+1
-1
arch/arm64/kernel/sys32.S
arch/arm64/kernel/sys32.S
+0
-5
arch/parisc/kernel/sys_parisc32.c
arch/parisc/kernel/sys_parisc32.c
+0
-10
arch/parisc/kernel/syscall_table.S
arch/parisc/kernel/syscall_table.S
+1
-1
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/systbl.h
+1
-1
arch/powerpc/kernel/sys_ppc32.c
arch/powerpc/kernel/sys_ppc32.c
+0
-6
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/compat_wrapper.S
+0
-6
arch/s390/kernel/syscalls.S
arch/s390/kernel/syscalls.S
+1
-1
arch/sparc/kernel/sys32.S
arch/sparc/kernel/sys32.S
+0
-1
arch/sparc/kernel/systbls_64.S
arch/sparc/kernel/systbls_64.S
+1
-1
arch/x86/ia32/sys_ia32.c
arch/x86/ia32/sys_ia32.c
+0
-5
arch/x86/include/asm/sys_ia32.h
arch/x86/include/asm/sys_ia32.h
+0
-1
arch/x86/syscalls/syscall_32.tbl
arch/x86/syscalls/syscall_32.tbl
+1
-1
fs/read_write.c
fs/read_write.c
+8
-1
include/linux/compat.h
include/linux/compat.h
+1
-0
未找到文件。
arch/arm64/include/asm/unistd32.h
浏览文件 @
561c6731
...
...
@@ -40,7 +40,7 @@ __SYSCALL(15, sys_chmod)
__SYSCALL
(
16
,
sys_lchown16
)
__SYSCALL
(
17
,
sys_ni_syscall
)
/* 17 was sys_break */
__SYSCALL
(
18
,
sys_ni_syscall
)
/* 18 was sys_stat */
__SYSCALL
(
19
,
compat_sys_lseek
_wrapper
)
__SYSCALL
(
19
,
compat_sys_lseek
)
__SYSCALL
(
20
,
sys_getpid
)
__SYSCALL
(
21
,
compat_sys_mount
)
__SYSCALL
(
22
,
sys_ni_syscall
)
/* 22 was sys_umount */
...
...
arch/arm64/kernel/sys32.S
浏览文件 @
561c6731
...
...
@@ -58,11 +58,6 @@ ENDPROC(compat_sys_fstatfs64_wrapper)
*
in
registers
or
that
take
32
-
bit
parameters
which
require
sign
*
extension
.
*/
compat_sys_lseek_wrapper
:
sxtw
x1
,
w1
b
sys_lseek
ENDPROC
(
compat_sys_lseek_wrapper
)
compat_sys_pread64_wrapper
:
orr
x3
,
x4
,
x5
,
lsl
#
32
b
sys_pread64
...
...
arch/parisc/kernel/sys_parisc32.c
浏览文件 @
561c6731
...
...
@@ -79,16 +79,6 @@ asmlinkage long sys32_sendfile64(u32 out_fd, u32 in_fd,
(
loff_t
__user
*
)
offset
,
count
);
}
/* lseek() needs a wrapper because 'offset' can be negative, but the top
* half of the argument has been zeroed by syscall.S.
*/
asmlinkage
int
sys32_lseek
(
unsigned
int
fd
,
int
offset
,
unsigned
int
origin
)
{
return
sys_lseek
(
fd
,
offset
,
origin
);
}
asmlinkage
long
sys32_semctl
(
int
semid
,
int
semnum
,
int
cmd
,
union
semun
arg
)
{
union
semun
u
;
...
...
arch/parisc/kernel/syscall_table.S
浏览文件 @
561c6731
...
...
@@ -76,7 +76,7 @@
ENTRY_SAME
(
socket
)
/
*
struct
stat
is
MAYBE
identical
wide
and
narrow
??
*/
ENTRY_COMP
(
newstat
)
ENTRY_
DIFF
(
lseek
)
ENTRY_
COMP
(
lseek
)
ENTRY_SAME
(
getpid
)
/*
20
*/
/
*
the
'void * data'
parameter
may
need
re
-
packing
in
wide
*/
ENTRY_COMP
(
mount
)
...
...
arch/powerpc/include/asm/systbl.h
浏览文件 @
561c6731
...
...
@@ -22,7 +22,7 @@ SYSCALL_SPU(chmod)
SYSCALL_SPU
(
lchown
)
SYSCALL
(
ni_syscall
)
OLDSYS
(
stat
)
SYSX_SPU
(
sys_lseek
,
ppc32_lseek
,
sys_
lseek
)
COMPAT_SYS_SPU
(
lseek
)
SYSCALL_SPU
(
getpid
)
COMPAT_SYS
(
mount
)
SYSX
(
sys_ni_syscall
,
sys_oldumount
,
sys_oldumount
)
...
...
arch/powerpc/kernel/sys_ppc32.c
浏览文件 @
561c6731
...
...
@@ -146,12 +146,6 @@ asmlinkage long compat_sys_sendfile64_wrapper(u32 out_fd, u32 in_fd,
(
off_t
__user
*
)
offset
,
count
);
}
off_t
ppc32_lseek
(
unsigned
int
fd
,
u32
offset
,
unsigned
int
origin
)
{
/* sign extend n */
return
sys_lseek
(
fd
,
(
int
)
offset
,
origin
);
}
long
compat_sys_truncate
(
const
char
__user
*
path
,
u32
length
)
{
/* sign extend length */
...
...
arch/s390/kernel/compat_wrapper.S
浏览文件 @
561c6731
...
...
@@ -67,12 +67,6 @@ ENTRY(sys32_lchown16_wrapper)
llgfr
%
r4
,%
r4
#
__kernel_old_uid_emu31_t
jg
sys32_lchown16
#
branch
to
system
call
ENTRY
(
sys32_lseek_wrapper
)
llgfr
%
r2
,%
r2
#
unsigned
int
lgfr
%
r3
,%
r3
#
off_t
llgfr
%
r4
,%
r4
#
unsigned
int
jg
sys_lseek
#
branch
to
system
call
#
sys32_getpid_wrapper
#
void
ENTRY
(
sys32_mount_wrapper
)
...
...
arch/s390/kernel/syscalls.S
浏览文件 @
561c6731
...
...
@@ -27,7 +27,7 @@ SYSCALL(sys_chmod,sys_chmod,sys32_chmod_wrapper) /* 15 */
SYSCALL
(
sys_lchown16
,
sys_ni_syscall
,
sys32_lchown16_wrapper
)
/
*
old
lchown16
syscall
*/
NI_SYSCALL
/
*
old
break
syscall
holder
*/
NI_SYSCALL
/
*
old
stat
syscall
holder
*/
SYSCALL
(
sys_lseek
,
sys_lseek
,
sys32_lseek_wrapper
)
SYSCALL
(
sys_lseek
,
sys_lseek
,
compat_sys_lseek
)
SYSCALL
(
sys_getpid
,
sys_getpid
,
sys_getpid
)
/
*
20
*/
SYSCALL
(
sys_mount
,
sys_mount
,
sys32_mount_wrapper
)
SYSCALL
(
sys_oldumount
,
sys_oldumount
,
sys32_oldumount_wrapper
)
...
...
arch/sparc/kernel/sys32.S
浏览文件 @
561c6731
...
...
@@ -47,7 +47,6 @@ SIGN1(sys32_mq_open, compat_sys_mq_open, %o1)
SIGN1
(
sys32_select
,
compat_sys_select
,
%
o0
)
SIGN3
(
sys32_futex
,
compat_sys_futex
,
%
o1
,
%
o2
,
%
o5
)
SIGN2
(
sys32_sendfile
,
compat_sys_sendfile
,
%
o0
,
%
o1
)
SIGN1
(
sys32_lseek
,
sys_lseek
,
%
o1
)
SIGN1
(
sys32_recvfrom
,
compat_sys_recvfrom
,
%
o0
)
SIGN1
(
sys32_recvmsg
,
compat_sys_recvmsg
,
%
o0
)
SIGN1
(
sys32_sendmsg
,
compat_sys_sendmsg
,
%
o0
)
...
...
arch/sparc/kernel/systbls_64.S
浏览文件 @
561c6731
...
...
@@ -21,7 +21,7 @@ sys_call_table32:
/*
0
*/
.
word
sys_restart_syscall
,
sparc_exit
,
sys_fork
,
sys_read
,
sys_write
/*
5
*/
.
word
compat_sys_open
,
sys_close
,
compat_sys_wait4
,
sys_creat
,
sys_link
/*
10
*/
.
word
sys_unlink
,
sunos_execv
,
sys_chdir
,
sys_chown16
,
sys_mknod
/*
15
*/
.
word
sys_chmod
,
sys_lchown16
,
sys_brk
,
sys_nis_syscall
,
sys32
_lseek
/*
15
*/
.
word
sys_chmod
,
sys_lchown16
,
sys_brk
,
sys_nis_syscall
,
compat_sys
_lseek
/*
20
*/
.
word
sys_getpid
,
sys_capget
,
sys_capset
,
sys_setuid16
,
sys_getuid16
/*
25
*/
.
word
sys32_vmsplice
,
compat_sys_ptrace
,
sys_alarm
,
compat_sys_sigaltstack
,
sys_pause
/*
30
*/
.
word
compat_sys_utime
,
sys_lchown
,
sys_fchown
,
sys_access
,
sys_nice
...
...
arch/x86/ia32/sys_ia32.c
浏览文件 @
561c6731
...
...
@@ -218,11 +218,6 @@ asmlinkage long sys32_sendfile(int out_fd, int in_fd,
* Some system calls that need sign extended arguments. This could be
* done by a generic wrapper.
*/
long
sys32_lseek
(
unsigned
int
fd
,
int
offset
,
unsigned
int
whence
)
{
return
sys_lseek
(
fd
,
offset
,
whence
);
}
long
sys32_kill
(
int
pid
,
int
sig
)
{
return
sys_kill
(
pid
,
sig
);
...
...
arch/x86/include/asm/sys_ia32.h
浏览文件 @
561c6731
...
...
@@ -43,7 +43,6 @@ asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32);
asmlinkage
long
sys32_personality
(
unsigned
long
);
asmlinkage
long
sys32_sendfile
(
int
,
int
,
compat_off_t
__user
*
,
s32
);
long
sys32_lseek
(
unsigned
int
,
int
,
unsigned
int
);
long
sys32_kill
(
int
,
int
);
long
sys32_fadvise64_64
(
int
,
__u32
,
__u32
,
__u32
,
__u32
,
int
);
long
sys32_vm86_warning
(
void
);
...
...
arch/x86/syscalls/syscall_32.tbl
浏览文件 @
561c6731
...
...
@@ -25,7 +25,7 @@
16 i386 lchown sys_lchown16
17 i386 break
18 i386 oldstat sys_stat
19 i386 lseek sys_lseek
sys32
_lseek
19 i386 lseek sys_lseek
compat_sys
_lseek
20 i386 getpid sys_getpid
21 i386 mount sys_mount compat_sys_mount
22 i386 umount sys_oldumount
...
...
fs/read_write.c
浏览文件 @
561c6731
...
...
@@ -15,6 +15,7 @@
#include <linux/syscalls.h>
#include <linux/pagemap.h>
#include <linux/splice.h>
#include <linux/compat.h>
#include "read_write.h"
#include <asm/uaccess.h>
...
...
@@ -247,6 +248,13 @@ SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence)
return
retval
;
}
#ifdef CONFIG_COMPAT
COMPAT_SYSCALL_DEFINE3
(
lseek
,
unsigned
int
,
fd
,
compat_off_t
,
offset
,
unsigned
int
,
whence
)
{
return
sys_lseek
(
fd
,
offset
,
whence
);
}
#endif
#ifdef __ARCH_WANT_SYS_LLSEEK
SYSCALL_DEFINE5
(
llseek
,
unsigned
int
,
fd
,
unsigned
long
,
offset_high
,
unsigned
long
,
offset_low
,
loff_t
__user
*
,
result
,
...
...
@@ -278,7 +286,6 @@ SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high,
}
#endif
/*
* rw_verify_area doesn't like huge counts. We limit
* them to something that fits in "int" so that others
...
...
include/linux/compat.h
浏览文件 @
561c6731
...
...
@@ -359,6 +359,7 @@ asmlinkage ssize_t compat_sys_preadv(unsigned long fd,
asmlinkage
ssize_t
compat_sys_pwritev
(
unsigned
long
fd
,
const
struct
compat_iovec
__user
*
vec
,
unsigned
long
vlen
,
u32
pos_low
,
u32
pos_high
);
asmlinkage
long
comat_sys_lseek
(
unsigned
int
,
compat_off_t
,
unsigned
int
);
asmlinkage
long
compat_sys_execve
(
const
char
__user
*
filename
,
const
compat_uptr_t
__user
*
argv
,
const
compat_uptr_t
__user
*
envp
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录