mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 07:07:33 -04:00
unix: add Renameat2 on Linux
Renameat2 is Linux-specific and allows to pass an additional flags argument to the renameat syscall. Also add the corresponding RENAME_* flag mask values. Change-Id: Ib4baa46fdd0b07ccd0988ac624862ce69d5c3ad5 Reviewed-on: https://go-review.googlesource.com/127763 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
34b17bdb43
commit
2be389f392
@@ -1436,6 +1436,9 @@ const (
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RENAME_EXCHANGE = 0x2
|
||||
RENAME_NOREPLACE = 0x1
|
||||
RENAME_WHITEOUT = 0x4
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
||||
Reference in New Issue
Block a user