blob: a5f183cfecb175eb3ed95dbd7c6c33097d3d6286 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * linux/arch/arm/kernel/sys_arm.c
4 *
5 * Copyright (C) People who wrote linux/arch/i386/kernel/sys_i386.c
6 * Copyright (C) 1995, 1996 Russell King.
7 *
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 * This file contains various random system calls that
9 * have a non-standard calling sequence on the Linux/arm
10 * platform.
11 */
Paul Gortmakerecea4ab2011-07-22 10:58:34 -040012#include <linux/export.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#include <linux/errno.h>
14#include <linux/sched.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#include <linux/mm.h>
16#include <linux/sem.h>
17#include <linux/msg.h>
18#include <linux/shm.h>
19#include <linux/stat.h>
20#include <linux/syscalls.h>
21#include <linux/mman.h>
22#include <linux/fs.h>
23#include <linux/file.h>
Adrian Bunkcba4fbb2007-10-16 23:29:24 -070024#include <linux/ipc.h>
Russell King33fa9b12008-09-06 11:35:55 +010025#include <linux/uaccess.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090026#include <linux/slab.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
Nicolas Pitre68d91022005-09-01 12:37:13 +010028/*
Simon Arlott6cbdc8c2007-05-11 20:40:30 +010029 * Since loff_t is a 64 bit type we avoid a lot of ABI hassle
Nicolas Pitre68d91022005-09-01 12:37:13 +010030 * with a different argument ordering.
31 */
32asmlinkage long sys_arm_fadvise64_64(int fd, int advice,
33 loff_t offset, loff_t len)
34{
Dominik Brodowski9d5b7c92018-03-11 11:34:45 +010035 return ksys_fadvise64_64(fd, offset, len, advice);
Nicolas Pitre68d91022005-09-01 12:37:13 +010036}