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
8e310f61
Commit
8e310f61
authored
Mar 11, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sys_sendfile64 to sparc syscall tables.
parent
b9192c7f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
5 deletions
+26
-5
arch/sparc/kernel/systbls.S
arch/sparc/kernel/systbls.S
+1
-1
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+21
-0
arch/sparc64/kernel/systbls.S
arch/sparc64/kernel/systbls.S
+2
-2
include/asm-sparc/unistd.h
include/asm-sparc/unistd.h
+1
-1
include/asm-sparc64/unistd.h
include/asm-sparc64/unistd.h
+1
-1
No files found.
arch/sparc/kernel/systbls.S
View file @
8e310f61
...
...
@@ -46,7 +46,7 @@ sys_call_table:
/*
125
*/
.
long
sys_nis_syscall
,
sys_setreuid16
,
sys_setregid16
,
sys_rename
,
sys_truncate
/*
130
*/
.
long
sys_ftruncate
,
sys_flock
,
sys_lstat64
,
sys_nis_syscall
,
sys_nis_syscall
/*
135
*/
.
long
sys_nis_syscall
,
sys_mkdir
,
sys_rmdir
,
sys_utimes
,
sys_stat64
/*
140
*/
.
long
sys_
nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_gettid
,
sys_getrlimit
/*
140
*/
.
long
sys_
sendfile64
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_gettid
,
sys_getrlimit
/*
145
*/
.
long
sys_setrlimit
,
sys_pivot_root
,
sys_prctl
,
sys_pciconfig_read
,
sys_pciconfig_write
/*
150
*/
.
long
sys_nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_poll
,
sys_getdents64
/*
155
*/
.
long
sys_fcntl64
,
sys_nis_syscall
,
sys_statfs
,
sys_fstatfs
,
sys_oldumount
...
...
arch/sparc64/kernel/sys_sparc32.c
View file @
8e310f61
...
...
@@ -3965,6 +3965,27 @@ asmlinkage int sys32_sendfile(int out_fd, int in_fd, __kernel_off_t32 *offset, s
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_sendfile
(
out_fd
,
in_fd
,
offset
?
&
lof
:
NULL
,
count
);
set_fs
(
old_fs
);
if
(
offset
&&
put_user
(
lof
,
offset
))
return
-
EFAULT
;
return
ret
;
}
/* Handle adjtimex compatability. */
struct
timex32
{
...
...
arch/sparc64/kernel/systbls.S
View file @
8e310f61
...
...
@@ -47,7 +47,7 @@ sys_call_table32:
.
word
sys_nis_syscall
,
sys32_setreuid16
,
sys32_setregid16
,
sys_rename
,
sys_truncate
/*
130
*/
.
word
sys_ftruncate
,
sys_flock
,
sys_lstat64
,
sys_nis_syscall
,
sys_nis_syscall
.
word
sys_nis_syscall
,
sys_mkdir
,
sys_rmdir
,
sys32_utimes
,
sys_stat64
/*
140
*/
.
word
sys
_nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_gettid
,
sys32_getrlimit
/*
140
*/
.
word
sys
32_sendfile64
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_gettid
,
sys32_getrlimit
.
word
sys32_setrlimit
,
sys_pivot_root
,
sys32_prctl
,
sys32_pciconfig_read
,
sys32_pciconfig_write
/*
150
*/
.
word
sys_nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_poll
,
sys_getdents64
.
word
sys32_fcntl64
,
sys_nis_syscall
,
sys32_statfs
,
sys32_fstatfs
,
sys_oldumount
...
...
@@ -106,7 +106,7 @@ sys_call_table:
.
word
sys_recvfrom
,
sys_setreuid
,
sys_setregid
,
sys_rename
,
sys_truncate
/*
130
*/
.
word
sys_ftruncate
,
sys_flock
,
sys_nis_syscall
,
sys_sendto
,
sys_shutdown
.
word
sys_socketpair
,
sys_mkdir
,
sys_rmdir
,
sys_utimes
,
sys_nis_syscall
/*
140
*/
.
word
sys_
nis_syscall
,
sys_getpeername
,
sys_nis_syscall
,
sys_gettid
,
sys_getrlimit
/*
140
*/
.
word
sys_
sendfile64
,
sys_getpeername
,
sys_nis_syscall
,
sys_gettid
,
sys_getrlimit
.
word
sys_setrlimit
,
sys_pivot_root
,
sys_prctl
,
sys_pciconfig_read
,
sys_pciconfig_write
/*
150
*/
.
word
sys_getsockname
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_poll
,
sys_getdents64
.
word
sys_nis_syscall
,
sys_nis_syscall
,
sys_statfs
,
sys_fstatfs
,
sys_oldumount
...
...
include/asm-sparc/unistd.h
View file @
8e310f61
...
...
@@ -155,7 +155,7 @@
#define __NR_rmdir 137
/* Common */
#define __NR_utimes 138
/* SunOS Specific */
#define __NR_stat64 139
/* Linux sparc32 Specific */
/* #define __NR_adjtime 140 SunOS Specific
*/
#define __NR_sendfile64 140
/* adjtime under SunOS
*/
#define __NR_getpeername 141
/* Common */
/* #define __NR_gethostid 142 SunOS Specific */
#define __NR_gettid 143
/* ENOSYS under SunOS */
...
...
include/asm-sparc64/unistd.h
View file @
8e310f61
...
...
@@ -155,7 +155,7 @@
#define __NR_rmdir 137
/* Common */
#define __NR_utimes 138
/* SunOS Specific */
/* #define __NR_stat64 139 Linux sparc32 Specific */
/* #define __NR_adjtime 140 SunOS Specific
*/
#define __NR_sendfile64 140
/* adjtime under SunOS
*/
#define __NR_getpeername 141
/* Common */
/* #define __NR_gethostid 142 SunOS Specific */
#define __NR_gettid 143
/* ENOSYS under SunOS */
...
...
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