mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
The newer renameat2 syscall provides all the functionality provided by the renameat syscall and adds flags, so future architectures won't need to include renameat. Therefore drop the renameat syscall from the generic syscall list unless __ARCH_WANT_RENAMEAT is defined by the architecture's unistd.h prior to including asm-generic/unistd.h, and adjust all architectures using the generic syscall list to define it so that no in-tree architectures are affected. Signed-off-by: James Hogan <[email protected]> Acked-by: Vineet Gupta <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Cc: Mark Salter <[email protected]> Cc: Aurelien Jacquiot <[email protected]> Cc: [email protected] Cc: Richard Kuo <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Jonas Bonn <[email protected]> Cc: [email protected] Cc: Chen Liqin <[email protected]> Cc: Lennox Wu <[email protected]> Cc: Chris Metcalf <[email protected]> Cc: Guan Xuetao <[email protected]> Cc: Ley Foon Tan <[email protected]> Cc: [email protected] Cc: Yoshinori Sato <[email protected]> Cc: [email protected] Signed-off-by: Arnd Bergmann <[email protected]>
38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
/*
|
|
* Copyright 2010 Tilera Corporation. All Rights Reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation, version 2.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
|
|
* NON INFRINGEMENT. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#define __ARCH_WANT_RENAMEAT
|
|
#if !defined(__LP64__) || defined(__SYSCALL_COMPAT)
|
|
/* Use the flavor of this syscall that matches the 32-bit API better. */
|
|
#define __ARCH_WANT_SYNC_FILE_RANGE2
|
|
#endif
|
|
|
|
/* Use the standard ABI for syscalls. */
|
|
#include <asm-generic/unistd.h>
|
|
|
|
#define NR_syscalls __NR_syscalls
|
|
|
|
/* Additional Tilera-specific syscalls. */
|
|
#define __NR_cacheflush (__NR_arch_specific_syscall + 1)
|
|
__SYSCALL(__NR_cacheflush, sys_cacheflush)
|
|
|
|
#ifndef __tilegx__
|
|
/* "Fast" syscalls provide atomic support for 32-bit chips. */
|
|
#define __NR_FAST_cmpxchg -1
|
|
#define __NR_FAST_atomic_update -2
|
|
#define __NR_FAST_cmpxchg64 -3
|
|
#define __NR_cmpxchg_badaddr (__NR_arch_specific_syscall + 0)
|
|
__SYSCALL(__NR_cmpxchg_badaddr, sys_cmpxchg_badaddr)
|
|
#endif
|