summaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 14:14:32 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-18 10:35:39 -0800
commit8038ad7d7b2dff612d587f47ee3d867c5347f28c (patch)
treeb773e9658ea976c816f5dfaba7902b60957e1f3c /fs/open.c
parent0bcd03dcd8dd3842bdba07a4b202cc4cdbfa275e (diff)
downloadlinux-stable-8038ad7d7b2dff612d587f47ee3d867c5347f28c.tar.gz
linux-stable-8038ad7d7b2dff612d587f47ee3d867c5347f28c.tar.bz2
linux-stable-8038ad7d7b2dff612d587f47ee3d867c5347f28c.zip
System call wrappers part 30
commit 6559eed8ca7db0531a207cd80be5e28cd6f213c5 upstream. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/open.c b/fs/open.c
index d9dcb41d8a39..975ce3e9f3a1 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -442,7 +442,7 @@ SYSCALL_ALIAS(sys_fallocate, SyS_fallocate);
* We do this by temporarily clearing all FS-related capabilities and
* switching the fsuid/fsgid around to the real ones.
*/
-asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode)
+SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode)
{
struct path path;
struct inode *inode;
@@ -633,8 +633,7 @@ out:
return err;
}
-asmlinkage long sys_fchmodat(int dfd, const char __user *filename,
- mode_t mode)
+SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, mode_t, mode)
{
struct path path;
struct inode *inode;
@@ -712,8 +711,8 @@ out:
return error;
}
-asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user,
- gid_t group, int flag)
+SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user,
+ gid_t, group, int, flag)
{
struct path path;
int error = -EINVAL;
@@ -1060,8 +1059,8 @@ SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, int, mode)
return ret;
}
-asmlinkage long sys_openat(int dfd, const char __user *filename, int flags,
- int mode)
+SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags,
+ int, mode)
{
long ret;