1 // Copyright 2025 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4 5 //go:build linux && (loong64 || riscv64)
6 7 package unix
8 9 import "syscall"
10 11 const (
12 // loong64 and riscv64 only have renameat2.
13 // renameat2 has an extra flags parameter.
14 // When called with a 0 flags it is identical to renameat.
15 renameatTrap uintptr = syscall.SYS_RENAMEAT2
16 )
17