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
Kirill Smelkov
linux
Commits
bc5a2e64
Commit
bc5a2e64
authored
Jul 18, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Add sys_fallocate() entries.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
a3761780
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
20 deletions
+24
-20
arch/sparc/kernel/systbls.S
arch/sparc/kernel/systbls.S
+4
-5
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+9
-3
arch/sparc64/kernel/systbls.S
arch/sparc64/kernel/systbls.S
+5
-6
include/asm-sparc/unistd.h
include/asm-sparc/unistd.h
+3
-3
include/asm-sparc64/unistd.h
include/asm-sparc64/unistd.h
+3
-3
No files found.
arch/sparc/kernel/systbls.S
View file @
bc5a2e64
/*
$Id
:
systbls
.
S
,
v
1
.103
2002
/
02
/
08
03
:
57
:
14
davem
Exp
$
*
systbls
.
S
:
System
call
entry
point
tables
for
OS
compatibility
.
/*
systbls.S
:
System
call
entry
point
tables
for
OS
compatibility
.
*
The
native
Linux
system
call
table
lives
here
also
.
*
*
Copyright
(
C
)
1995
David
S
.
Miller
(
davem
@
caip
.
rutgers
.
edu
)
*
Copyright
(
C
)
1995
,
2007
David
S
.
Miller
(
davem
@
davemloft
.
net
)
*
*
Based
upon
preliminary
work
which
is
:
*
...
...
@@ -80,7 +79,7 @@ sys_call_table:
/*
295
*/
.
long
sys_fchmodat
,
sys_faccessat
,
sys_pselect6
,
sys_ppoll
,
sys_unshare
/*
300
*/
.
long
sys_set_robust_list
,
sys_get_robust_list
,
sys_migrate_pages
,
sys_mbind
,
sys_get_mempolicy
/*
305
*/
.
long
sys_set_mempolicy
,
sys_kexec_load
,
sys_move_pages
,
sys_getcpu
,
sys_epoll_pwait
/*
310
*/
.
long
sys_utimensat
,
sys_signalfd
,
sys_timerfd
,
sys_eventfd
/*
310
*/
.
long
sys_utimensat
,
sys_signalfd
,
sys_timerfd
,
sys_eventfd
,
sys_fallocate
#ifdef CONFIG_SUNOS_EMUL
/
*
Now
the
SunOS
syscall
table
.
*/
...
...
@@ -198,6 +197,6 @@ sunos_sys_table:
.
long
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
long
sunos_nosys
/*
310
*/
.
long
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
long
sunos_nosys
.
long
sunos_nosys
,
sunos_nosys
#endif
arch/sparc64/kernel/sys_sparc32.c
View file @
bc5a2e64
/* $Id: sys_sparc32.c,v 1.184 2002/02/09 19:49:31 davem Exp $
* sys_sparc32.c: Conversion between 32bit and 64bit native syscalls.
/* sys_sparc32.c: Conversion between 32bit and 64bit native syscalls.
*
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1997
David S. Miller (davem@caip.rutgers.edu
)
* Copyright (C) 1997
, 2007 David S. Miller (davem@davemloft.net
)
*
* These routines maintain argument size conversion between 32bit and 64bit
* environment.
...
...
@@ -1028,3 +1027,10 @@ long compat_sync_file_range(int fd, unsigned long off_high, unsigned long off_lo
(
nb_high
<<
32
)
|
nb_low
,
flags
);
}
asmlinkage
long
compat_sys_fallocate
(
int
fd
,
int
mode
,
u32
offhi
,
u32
offlo
,
u32
lenhi
,
u32
lenlo
)
{
return
sys_fallocate
(
fd
,
mode
,
((
loff_t
)
offhi
<<
32
)
|
offlo
,
((
loff_t
)
lenhi
<<
32
)
|
lenlo
);
}
arch/sparc64/kernel/systbls.S
View file @
bc5a2e64
/*
$Id
:
systbls
.
S
,
v
1
.81
2002
/
02
/
08
03
:
57
:
14
davem
Exp
$
*
systbls
.
S
:
System
call
entry
point
tables
for
OS
compatibility
.
/*
systbls.S
:
System
call
entry
point
tables
for
OS
compatibility
.
*
The
native
Linux
system
call
table
lives
here
also
.
*
*
Copyright
(
C
)
1995
,
1996
David
S
.
Miller
(
davem
@
caip
.
rutgers
.
edu
)
*
Copyright
(
C
)
1995
,
1996
,
2007
David
S
.
Miller
(
davem
@
davemloft
.
net
)
*
Copyright
(
C
)
1997
Jakub
Jelinek
(
jj
@
sunsite
.
mff
.
cuni
.
cz
)
*
*
Based
upon
preliminary
work
which
is
:
...
...
@@ -81,7 +80,7 @@ sys_call_table32:
.
word
sys_fchmodat
,
sys_faccessat
,
compat_sys_pselect6
,
compat_sys_ppoll
,
sys_unshare
/*
300
*/
.
word
compat_sys_set_robust_list
,
compat_sys_get_robust_list
,
compat_sys_migrate_pages
,
compat_sys_mbind
,
compat_sys_get_mempolicy
.
word
compat_sys_set_mempolicy
,
compat_sys_kexec_load
,
compat_sys_move_pages
,
sys_getcpu
,
compat_sys_epoll_pwait
/*
310
*/
.
word
compat_sys_utimensat
,
compat_sys_signalfd
,
compat_sys_timerfd
,
sys_eventfd
/*
310
*/
.
word
compat_sys_utimensat
,
compat_sys_signalfd
,
compat_sys_timerfd
,
sys_eventfd
,
compat_sys_fallocate
#endif /* CONFIG_COMPAT */
...
...
@@ -153,7 +152,7 @@ sys_call_table:
.
word
sys_fchmodat
,
sys_faccessat
,
sys_pselect6
,
sys_ppoll
,
sys_unshare
/*
300
*/
.
word
sys_set_robust_list
,
sys_get_robust_list
,
sys_migrate_pages
,
sys_mbind
,
sys_get_mempolicy
.
word
sys_set_mempolicy
,
sys_kexec_load
,
sys_move_pages
,
sys_getcpu
,
sys_epoll_pwait
/*
310
*/
.
word
sys_utimensat
,
sys_signalfd
,
sys_timerfd
,
sys_eventfd
/*
310
*/
.
word
sys_utimensat
,
sys_signalfd
,
sys_timerfd
,
sys_eventfd
,
sys_fallocate
#if defined(CONFIG_SUNOS_EMUL) || defined(CONFIG_SOLARIS_EMUL) || \
defined
(
CONFIG_SOLARIS_EMUL_MODULE
)
...
...
@@ -272,6 +271,6 @@ sunos_sys_table:
.
word
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
word
sunos_nosys
/*
310
*/
.
word
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
word
sunos_nosys
.
word
sunos_nosys
,
sunos_nosys
#endif
include/asm-sparc/unistd.h
View file @
bc5a2e64
/* $Id: unistd.h,v 1.74 2002/02/08 03:57:18 davem Exp $ */
#ifndef _SPARC_UNISTD_H
#define _SPARC_UNISTD_H
...
...
@@ -9,7 +8,7 @@
* think of right now to force the arguments into fixed registers
* before the trap into the system call with gcc 'asm' statements.
*
* Copyright (C) 1995
David S. Miller (davem@caip.rutgers.edu
)
* Copyright (C) 1995
, 2007 David S. Miller (davem@davemloft.net
)
*
* SunOS compatibility based upon preliminary work which is:
*
...
...
@@ -330,8 +329,9 @@
#define __NR_signalfd 311
#define __NR_timerfd 312
#define __NR_eventfd 313
#define __NR_fallocate 314
#define NR_SYSCALLS 31
4
#define NR_SYSCALLS 31
5
#ifdef __KERNEL__
#define __ARCH_WANT_IPC_PARSE_VERSION
...
...
include/asm-sparc64/unistd.h
View file @
bc5a2e64
/* $Id: unistd.h,v 1.50 2002/02/08 03:57:18 davem Exp $ */
#ifndef _SPARC64_UNISTD_H
#define _SPARC64_UNISTD_H
...
...
@@ -9,7 +8,7 @@
* think of right now to force the arguments into fixed registers
* before the trap into the system call with gcc 'asm' statements.
*
* Copyright (C) 1995
David S. Miller (davem@caip.rutgers.edu
)
* Copyright (C) 1995
, 2007 David S. Miller (davem@davemloft.net
)
*
* SunOS compatibility based upon preliminary work which is:
*
...
...
@@ -332,8 +331,9 @@
#define __NR_signalfd 311
#define __NR_timerfd 312
#define __NR_eventfd 313
#define __NR_fallocate 314
#define NR_SYSCALLS 31
4
#define NR_SYSCALLS 31
5
#ifdef __KERNEL__
/* sysconf options, for SunOS compatibility */
...
...
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