Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
63cafcea
Commit
63cafcea
authored
Aug 18, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: add sendfile64 support and restore ioperm syscall
parent
265b6629
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
5 deletions
+34
-5
arch/ppc64/kernel/misc.S
arch/ppc64/kernel/misc.S
+7
-5
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+26
-0
include/asm-ppc64/unistd.h
include/asm-ppc64/unistd.h
+1
-0
No files found.
arch/ppc64/kernel/misc.S
View file @
63cafcea
...
...
@@ -605,7 +605,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_ni_syscall
/*
old
profil
syscall
holder
*/
.
llong
.
sys32_statfs
.
llong
.
sys32_fstatfs
/*
100
*/
.
llong
.
sys_
ni_syscall
/*
old
ioperm
syscall
holder
*/
.
llong
.
sys_
ioperm
.
llong
.
sys32_socketcall
.
llong
.
sys32_syslog
.
llong
.
sys32_setitimer
...
...
@@ -730,8 +730,9 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys32_sched_getaffinity
.
llong
.
sys_ni_syscall
/*
reserved
for
security
*/
.
llong
.
sys_ni_syscall
/*
225
-
reserved
for
tux
*/
.
llong
.
sys32_sendfile64
.
rept
NR_syscalls
-
22
5
.
rept
NR_syscalls
-
22
6
.
llong
.
sys_ni_syscall
.
endr
#endif
...
...
@@ -839,7 +840,7 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_ni_syscall
/*
old
profil
syscall
holder
*/
.
llong
.
sys_statfs
.
llong
.
sys_fstatfs
/*
100
*/
.
llong
.
sys_
ni_syscall
/*
old
ioperm
syscall
holder
*/
.
llong
.
sys_
ioperm
.
llong
.
sys_socketcall
.
llong
.
sys_syslog
.
llong
.
sys_setitimer
...
...
@@ -964,7 +965,8 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_sched_getaffinity
.
llong
.
sys_ni_syscall
/*
reserved
for
security
*/
.
llong
.
sys_ni_syscall
/*
reserved
for
tux
*/
.
llong
.
sys_ni_syscall
/*
reserved
for
sendfile64
*/
.
rept
NR_syscalls
-
22
5
.
llong
.
sys_ni_syscall
.
rept
NR_syscalls
-
22
6
.
llong
.
sys_ni_syscall
.
endr
arch/ppc64/kernel/sys_ppc32.c
View file @
63cafcea
...
...
@@ -2785,6 +2785,27 @@ asmlinkage long sys32_sendfile(u32 out_fd, u32 in_fd, __kernel_off_t32* offset,
return
ret
;
}
extern
asmlinkage
ssize_t
sys_sendfile64
(
int
out_fd
,
int
in_fd
,
loff_t
*
offset
,
size_t
count
);
asmlinkage
int
sys32_sendfile64
(
int
out_fd
,
int
in_fd
,
__kernel_loff_t32
*
offset
,
s32
count
)
{
mm_segment_t
old_fs
=
get_fs
();
int
ret
;
loff_t
lof
;
if
(
offset
&&
get_user
(
lof
,
offset
))
return
-
EFAULT
;
set_fs
(
KERNEL_DS
);
ret
=
sys_sendfile64
(
out_fd
,
in_fd
,
offset
?
&
lof
:
NULL
,
count
);
set_fs
(
old_fs
);
if
(
offset
&&
put_user
(
lof
,
offset
))
return
-
EFAULT
;
return
ret
;
}
extern
asmlinkage
int
sys_setsockopt
(
int
fd
,
int
level
,
int
optname
,
char
*
optval
,
int
optlen
);
asmlinkage
long
sys32_setsockopt
(
int
fd
,
int
level
,
int
optname
,
char
*
optval
,
int
optlen
)
...
...
@@ -4249,6 +4270,11 @@ asmlinkage int sys32_sched_getaffinity(__kernel_pid_t32 pid, unsigned int len,
return
ret
;
}
extern
unsigned
long
sys_mmap
(
unsigned
long
addr
,
size_t
len
,
unsigned
long
prot
,
unsigned
long
flags
,
unsigned
long
fd
,
off_t
offset
);
unsigned
long
sys32_mmap2
(
unsigned
long
addr
,
size_t
len
,
unsigned
long
prot
,
unsigned
long
flags
,
unsigned
long
fd
,
unsigned
long
pgoff
)
...
...
include/asm-ppc64/unistd.h
View file @
63cafcea
...
...
@@ -235,6 +235,7 @@
#define __NR_sched_getaffinity 223
#define __NR_security 224
#define __NR_tuxcall 225
#define __NR_sendfile64 226
#define __NR(n) #n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment