Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
ce395960
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce395960
编写于
10月 13, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
constify copy_siginfo_to_user{,32}()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
078d8e62
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
14 addition
and
14 deletion
+14
-14
arch/arm64/kernel/signal32.c
arch/arm64/kernel/signal32.c
+1
-1
arch/ia64/kernel/signal.c
arch/ia64/kernel/signal.c
+1
-1
arch/mips/kernel/signal32.c
arch/mips/kernel/signal32.c
+1
-1
arch/parisc/kernel/signal32.c
arch/parisc/kernel/signal32.c
+1
-1
arch/parisc/kernel/signal32.h
arch/parisc/kernel/signal32.h
+1
-1
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_32.c
+1
-1
arch/s390/kernel/compat_signal.c
arch/s390/kernel/compat_signal.c
+1
-1
arch/sparc/kernel/signal32.c
arch/sparc/kernel/signal32.c
+1
-1
arch/tile/kernel/compat_signal.c
arch/tile/kernel/compat_signal.c
+1
-1
arch/x86/ia32/ia32_signal.c
arch/x86/ia32/ia32_signal.c
+1
-1
fs/binfmt_elf.c
fs/binfmt_elf.c
+1
-1
include/asm-generic/siginfo.h
include/asm-generic/siginfo.h
+1
-1
include/linux/compat.h
include/linux/compat.h
+1
-1
kernel/signal.c
kernel/signal.c
+1
-1
未找到文件。
arch/arm64/kernel/signal32.c
浏览文件 @
ce395960
...
...
@@ -150,7 +150,7 @@ static inline int get_sigset_t(sigset_t *set,
return
0
;
}
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
siginfo_t
*
from
)
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
const
siginfo_t
*
from
)
{
int
err
;
...
...
arch/ia64/kernel/signal.c
浏览文件 @
ce395960
...
...
@@ -105,7 +105,7 @@ restore_sigcontext (struct sigcontext __user *sc, struct sigscratch *scr)
}
int
copy_siginfo_to_user
(
siginfo_t
__user
*
to
,
siginfo_t
*
from
)
copy_siginfo_to_user
(
siginfo_t
__user
*
to
,
const
siginfo_t
*
from
)
{
if
(
!
access_ok
(
VERIFY_WRITE
,
to
,
sizeof
(
siginfo_t
)))
return
-
EFAULT
;
...
...
arch/mips/kernel/signal32.c
浏览文件 @
ce395960
...
...
@@ -314,7 +314,7 @@ SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *,
return
ret
;
}
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
siginfo_t
*
from
)
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
const
siginfo_t
*
from
)
{
int
err
;
...
...
arch/parisc/kernel/signal32.c
浏览文件 @
ce395960
...
...
@@ -319,7 +319,7 @@ copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from)
}
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
siginfo_t
*
from
)
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
const
siginfo_t
*
from
)
{
compat_uptr_t
addr
;
compat_int_t
val
;
...
...
arch/parisc/kernel/signal32.h
浏览文件 @
ce395960
...
...
@@ -34,7 +34,7 @@ struct compat_ucontext {
/* ELF32 signal handling */
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
siginfo_t
*
from
);
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
const
siginfo_t
*
from
);
int
copy_siginfo_from_user32
(
siginfo_t
*
to
,
compat_siginfo_t
__user
*
from
);
/* In a deft move of uber-hackery, we decide to carry the top half of all
...
...
arch/powerpc/kernel/signal_32.c
浏览文件 @
ce395960
...
...
@@ -891,7 +891,7 @@ static long restore_tm_user_regs(struct pt_regs *regs,
#endif
#ifdef CONFIG_PPC64
int
copy_siginfo_to_user32
(
struct
compat_siginfo
__user
*
d
,
siginfo_t
*
s
)
int
copy_siginfo_to_user32
(
struct
compat_siginfo
__user
*
d
,
const
siginfo_t
*
s
)
{
int
err
;
...
...
arch/s390/kernel/compat_signal.c
浏览文件 @
ce395960
...
...
@@ -49,7 +49,7 @@ typedef struct
__u32
gprs_high
[
NUM_GPRS
];
}
rt_sigframe32
;
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
siginfo_t
*
from
)
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
const
siginfo_t
*
from
)
{
int
err
;
...
...
arch/sparc/kernel/signal32.c
浏览文件 @
ce395960
...
...
@@ -68,7 +68,7 @@ struct rt_signal_frame32 {
/* __siginfo_rwin_t * */
u32
rwin_save
;
}
__attribute__
((
aligned
(
8
)));
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
siginfo_t
*
from
)
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
const
siginfo_t
*
from
)
{
int
err
;
...
...
arch/tile/kernel/compat_signal.c
浏览文件 @
ce395960
...
...
@@ -49,7 +49,7 @@ struct compat_rt_sigframe {
struct
compat_ucontext
uc
;
};
int
copy_siginfo_to_user32
(
struct
compat_siginfo
__user
*
to
,
siginfo_t
*
from
)
int
copy_siginfo_to_user32
(
struct
compat_siginfo
__user
*
to
,
const
siginfo_t
*
from
)
{
int
err
;
...
...
arch/x86/ia32/ia32_signal.c
浏览文件 @
ce395960
...
...
@@ -34,7 +34,7 @@
#include <asm/sys_ia32.h>
#include <asm/smap.h>
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
siginfo_t
*
from
)
int
copy_siginfo_to_user32
(
compat_siginfo_t
__user
*
to
,
const
siginfo_t
*
from
)
{
int
err
=
0
;
bool
ia32
=
test_thread_flag
(
TIF_IA32
);
...
...
fs/binfmt_elf.c
浏览文件 @
ce395960
...
...
@@ -1374,7 +1374,7 @@ static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm)
}
static
void
fill_siginfo_note
(
struct
memelfnote
*
note
,
user_siginfo_t
*
csigdata
,
siginfo_t
*
siginfo
)
const
siginfo_t
*
siginfo
)
{
mm_segment_t
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
...
...
include/asm-generic/siginfo.h
浏览文件 @
ce395960
...
...
@@ -32,6 +32,6 @@ static inline void copy_siginfo(struct siginfo *to, struct siginfo *from)
#endif
extern
int
copy_siginfo_to_user
(
struct
siginfo
__user
*
to
,
struct
siginfo
*
from
);
extern
int
copy_siginfo_to_user
(
struct
siginfo
__user
*
to
,
const
struct
siginfo
*
from
);
#endif
include/linux/compat.h
浏览文件 @
ce395960
...
...
@@ -362,7 +362,7 @@ long compat_get_bitmap(unsigned long *mask, const compat_ulong_t __user *umask,
long
compat_put_bitmap
(
compat_ulong_t
__user
*
umask
,
unsigned
long
*
mask
,
unsigned
long
bitmap_size
);
int
copy_siginfo_from_user32
(
siginfo_t
*
to
,
struct
compat_siginfo
__user
*
from
);
int
copy_siginfo_to_user32
(
struct
compat_siginfo
__user
*
to
,
siginfo_t
*
from
);
int
copy_siginfo_to_user32
(
struct
compat_siginfo
__user
*
to
,
const
siginfo_t
*
from
);
int
get_compat_sigevent
(
struct
sigevent
*
event
,
const
struct
compat_sigevent
__user
*
u_event
);
long
compat_sys_rt_tgsigqueueinfo
(
compat_pid_t
tgid
,
compat_pid_t
pid
,
int
sig
,
...
...
kernel/signal.c
浏览文件 @
ce395960
...
...
@@ -2723,7 +2723,7 @@ COMPAT_SYSCALL_DEFINE2(rt_sigpending, compat_sigset_t __user *, uset,
#ifndef HAVE_ARCH_COPY_SIGINFO_TO_USER
int
copy_siginfo_to_user
(
siginfo_t
__user
*
to
,
siginfo_t
*
from
)
int
copy_siginfo_to_user
(
siginfo_t
__user
*
to
,
const
siginfo_t
*
from
)
{
int
err
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录