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
8208a22b
Commit
8208a22b
authored
Jul 25, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch sys_mknodat(2) to umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
dabe0dc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
fs/namei.c
fs/namei.c
+2
-2
include/linux/syscalls.h
include/linux/syscalls.h
+2
-2
No files found.
fs/namei.c
View file @
8208a22b
...
...
@@ -2489,7 +2489,7 @@ static int may_mknod(mode_t mode)
}
}
SYSCALL_DEFINE4
(
mknodat
,
int
,
dfd
,
const
char
__user
*
,
filename
,
in
t
,
mode
,
SYSCALL_DEFINE4
(
mknodat
,
int
,
dfd
,
const
char
__user
*
,
filename
,
umode_
t
,
mode
,
unsigned
,
dev
)
{
struct
dentry
*
dentry
;
...
...
@@ -2536,7 +2536,7 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, int, mode,
return
error
;
}
SYSCALL_DEFINE3
(
mknod
,
const
char
__user
*
,
filename
,
in
t
,
mode
,
unsigned
,
dev
)
SYSCALL_DEFINE3
(
mknod
,
const
char
__user
*
,
filename
,
umode_
t
,
mode
,
unsigned
,
dev
)
{
return
sys_mknodat
(
AT_FDCWD
,
filename
,
mode
,
dev
);
}
...
...
include/linux/syscalls.h
View file @
8208a22b
...
...
@@ -475,7 +475,7 @@ asmlinkage long sys_mincore(unsigned long start, size_t len,
asmlinkage
long
sys_pivot_root
(
const
char
__user
*
new_root
,
const
char
__user
*
put_old
);
asmlinkage
long
sys_chroot
(
const
char
__user
*
filename
);
asmlinkage
long
sys_mknod
(
const
char
__user
*
filename
,
in
t
mode
,
asmlinkage
long
sys_mknod
(
const
char
__user
*
filename
,
umode_
t
mode
,
unsigned
dev
);
asmlinkage
long
sys_link
(
const
char
__user
*
oldname
,
const
char
__user
*
newname
);
...
...
@@ -755,7 +755,7 @@ asmlinkage long sys_spu_run(int fd, __u32 __user *unpc,
asmlinkage
long
sys_spu_create
(
const
char
__user
*
name
,
unsigned
int
flags
,
mode_t
mode
,
int
fd
);
asmlinkage
long
sys_mknodat
(
int
dfd
,
const
char
__user
*
filename
,
in
t
mode
,
asmlinkage
long
sys_mknodat
(
int
dfd
,
const
char
__user
*
filename
,
umode_
t
mode
,
unsigned
dev
);
asmlinkage
long
sys_mkdirat
(
int
dfd
,
const
char
__user
*
pathname
,
int
mode
);
asmlinkage
long
sys_unlinkat
(
int
dfd
,
const
char
__user
*
pathname
,
int
flag
);
...
...
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