[CVE-2009-0029] System call wrappers part 09

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
Heiko Carstens
2009-01-14 14:14:11 +01:00
parent 17da2bd90a
commit a5f8fa9e9b
2 changed files with 11 additions and 16 deletions

View File

@ -36,7 +36,7 @@ static void do_sync(unsigned long wait)
laptop_sync_completion();
}
asmlinkage long sys_sync(void)
SYSCALL_DEFINE0(sync)
{
do_sync(1);
return 0;
@ -144,12 +144,12 @@ static int do_fsync(unsigned int fd, int datasync)
return ret;
}
asmlinkage long sys_fsync(unsigned int fd)
SYSCALL_DEFINE1(fsync, unsigned int, fd)
{
return do_fsync(fd, 0);
}
asmlinkage long sys_fdatasync(unsigned int fd)
SYSCALL_DEFINE1(fdatasync, unsigned int, fd)
{
return do_fsync(fd, 1);
}