162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Syscall support for Hexagon
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
862306a36Sopenharmony_ci * it under the terms of the GNU General Public License version 2 and
962306a36Sopenharmony_ci * only version 2 as published by the Free Software Foundation.
1062306a36Sopenharmony_ci *
1162306a36Sopenharmony_ci * This program is distributed in the hope that it will be useful,
1262306a36Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of
1362306a36Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1462306a36Sopenharmony_ci * GNU General Public License for more details.
1562306a36Sopenharmony_ci *
1662306a36Sopenharmony_ci * You should have received a copy of the GNU General Public License
1762306a36Sopenharmony_ci * along with this program; if not, write to the Free Software
1862306a36Sopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
1962306a36Sopenharmony_ci * 02110-1301, USA.
2062306a36Sopenharmony_ci */
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci/*
2362306a36Sopenharmony_ci *  The kernel pulls this unistd.h in three different ways:
2462306a36Sopenharmony_ci *  1.  the "normal" way which gets all the __NR defines
2562306a36Sopenharmony_ci *  2.  with __SYSCALL defined to produce function declarations
2662306a36Sopenharmony_ci *  3.  with __SYSCALL defined to produce syscall table initialization
2762306a36Sopenharmony_ci *  See also:  syscalltab.c
2862306a36Sopenharmony_ci */
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci#define sys_mmap2 sys_mmap_pgoff
3162306a36Sopenharmony_ci#define __ARCH_WANT_RENAMEAT
3262306a36Sopenharmony_ci#define __ARCH_WANT_STAT64
3362306a36Sopenharmony_ci#define __ARCH_WANT_SET_GET_RLIMIT
3462306a36Sopenharmony_ci#define __ARCH_WANT_SYS_EXECVE
3562306a36Sopenharmony_ci#define __ARCH_WANT_SYS_CLONE
3662306a36Sopenharmony_ci#define __ARCH_WANT_SYS_VFORK
3762306a36Sopenharmony_ci#define __ARCH_WANT_SYS_FORK
3862306a36Sopenharmony_ci#define __ARCH_WANT_TIME32_SYSCALLS
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci#include <asm-generic/unistd.h>
41