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
f482e1b4
Commit
f482e1b4
authored
Dec 25, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch compat_sys_open* to COMPAT_SYSCALL_DEFINE
parent
495dfbf7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
fs/compat.c
fs/compat.c
+4
-7
include/linux/compat.h
include/linux/compat.h
+1
-1
No files found.
fs/compat.c
View file @
f482e1b4
...
@@ -1278,8 +1278,7 @@ compat_sys_vmsplice(int fd, const struct compat_iovec __user *iov32,
...
@@ -1278,8 +1278,7 @@ compat_sys_vmsplice(int fd, const struct compat_iovec __user *iov32,
* Exactly like fs/open.c:sys_open(), except that it doesn't set the
* Exactly like fs/open.c:sys_open(), except that it doesn't set the
* O_LARGEFILE flag.
* O_LARGEFILE flag.
*/
*/
asmlinkage
long
COMPAT_SYSCALL_DEFINE3
(
open
,
const
char
__user
*
,
filename
,
int
,
flags
,
umode_t
,
mode
)
compat_sys_open
(
const
char
__user
*
filename
,
int
flags
,
umode_t
mode
)
{
{
return
do_sys_open
(
AT_FDCWD
,
filename
,
flags
,
mode
);
return
do_sys_open
(
AT_FDCWD
,
filename
,
flags
,
mode
);
}
}
...
@@ -1288,8 +1287,7 @@ compat_sys_open(const char __user *filename, int flags, umode_t mode)
...
@@ -1288,8 +1287,7 @@ compat_sys_open(const char __user *filename, int flags, umode_t mode)
* Exactly like fs/open.c:sys_openat(), except that it doesn't set the
* Exactly like fs/open.c:sys_openat(), except that it doesn't set the
* O_LARGEFILE flag.
* O_LARGEFILE flag.
*/
*/
asmlinkage
long
COMPAT_SYSCALL_DEFINE4
(
openat
,
int
,
dfd
,
const
char
__user
*
,
filename
,
int
,
flags
,
umode_t
,
mode
)
compat_sys_openat
(
unsigned
int
dfd
,
const
char
__user
*
filename
,
int
flags
,
umode_t
mode
)
{
{
return
do_sys_open
(
dfd
,
filename
,
flags
,
mode
);
return
do_sys_open
(
dfd
,
filename
,
flags
,
mode
);
}
}
...
@@ -1785,9 +1783,8 @@ asmlinkage long compat_sys_timerfd_gettime(int ufd,
...
@@ -1785,9 +1783,8 @@ asmlinkage long compat_sys_timerfd_gettime(int ufd,
* Exactly like fs/open.c:sys_open_by_handle_at(), except that it
* Exactly like fs/open.c:sys_open_by_handle_at(), except that it
* doesn't set the O_LARGEFILE flag.
* doesn't set the O_LARGEFILE flag.
*/
*/
asmlinkage
long
COMPAT_SYSCALL_DEFINE3
(
open_by_handle_at
,
int
,
mountdirfd
,
compat_sys_open_by_handle_at
(
int
mountdirfd
,
struct
file_handle
__user
*
,
handle
,
int
,
flags
)
struct
file_handle
__user
*
handle
,
int
flags
)
{
{
return
do_handle_open
(
mountdirfd
,
handle
,
flags
);
return
do_handle_open
(
mountdirfd
,
handle
,
flags
);
}
}
...
...
include/linux/compat.h
View file @
f482e1b4
...
@@ -534,7 +534,7 @@ asmlinkage long compat_sys_vmsplice(int fd, const struct compat_iovec __user *,
...
@@ -534,7 +534,7 @@ asmlinkage long compat_sys_vmsplice(int fd, const struct compat_iovec __user *,
unsigned
int
nr_segs
,
unsigned
int
flags
);
unsigned
int
nr_segs
,
unsigned
int
flags
);
asmlinkage
long
compat_sys_open
(
const
char
__user
*
filename
,
int
flags
,
asmlinkage
long
compat_sys_open
(
const
char
__user
*
filename
,
int
flags
,
umode_t
mode
);
umode_t
mode
);
asmlinkage
long
compat_sys_openat
(
unsigned
int
dfd
,
const
char
__user
*
filename
,
asmlinkage
long
compat_sys_openat
(
int
dfd
,
const
char
__user
*
filename
,
int
flags
,
umode_t
mode
);
int
flags
,
umode_t
mode
);
asmlinkage
long
compat_sys_open_by_handle_at
(
int
mountdirfd
,
asmlinkage
long
compat_sys_open_by_handle_at
(
int
mountdirfd
,
struct
file_handle
__user
*
handle
,
struct
file_handle
__user
*
handle
,
...
...
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