18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/arch/arm/kernel/sys_arm.c 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) People who wrote linux/arch/i386/kernel/sys_i386.c 68c2ecf20Sopenharmony_ci * Copyright (C) 1995, 1996 Russell King. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * This file contains various random system calls that 98c2ecf20Sopenharmony_ci * have a non-standard calling sequence on the Linux/arm 108c2ecf20Sopenharmony_ci * platform. 118c2ecf20Sopenharmony_ci */ 128c2ecf20Sopenharmony_ci#include <linux/export.h> 138c2ecf20Sopenharmony_ci#include <linux/errno.h> 148c2ecf20Sopenharmony_ci#include <linux/sched.h> 158c2ecf20Sopenharmony_ci#include <linux/mm.h> 168c2ecf20Sopenharmony_ci#include <linux/sem.h> 178c2ecf20Sopenharmony_ci#include <linux/msg.h> 188c2ecf20Sopenharmony_ci#include <linux/shm.h> 198c2ecf20Sopenharmony_ci#include <linux/stat.h> 208c2ecf20Sopenharmony_ci#include <linux/syscalls.h> 218c2ecf20Sopenharmony_ci#include <linux/mman.h> 228c2ecf20Sopenharmony_ci#include <linux/fs.h> 238c2ecf20Sopenharmony_ci#include <linux/file.h> 248c2ecf20Sopenharmony_ci#include <linux/ipc.h> 258c2ecf20Sopenharmony_ci#include <linux/uaccess.h> 268c2ecf20Sopenharmony_ci#include <linux/slab.h> 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci/* 298c2ecf20Sopenharmony_ci * Since loff_t is a 64 bit type we avoid a lot of ABI hassle 308c2ecf20Sopenharmony_ci * with a different argument ordering. 318c2ecf20Sopenharmony_ci */ 328c2ecf20Sopenharmony_ciasmlinkage long sys_arm_fadvise64_64(int fd, int advice, 338c2ecf20Sopenharmony_ci loff_t offset, loff_t len) 348c2ecf20Sopenharmony_ci{ 358c2ecf20Sopenharmony_ci return ksys_fadvise64_64(fd, offset, len, advice); 368c2ecf20Sopenharmony_ci} 37