mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
For #67002 Change-Id: I223f3f2dbc8b02726f4ce5a017c628c4a20f109a Reviewed-on: https://go-review.googlesource.com/c/go/+/659757 Reviewed-by: Quim Muntal <quimmuntal@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
27 lines
757 B
Go
27 lines
757 B
Go
// Copyright 2018 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package unix
|
|
|
|
import "syscall"
|
|
|
|
const (
|
|
unlinkatTrap uintptr = syscall.SYS_UNLINKAT
|
|
openatTrap uintptr = syscall.SYS_OPENAT
|
|
fstatatTrap uintptr = syscall.SYS_FSTATAT
|
|
readlinkatTrap uintptr = syscall.SYS_READLINKAT
|
|
mkdiratTrap uintptr = syscall.SYS_MKDIRAT
|
|
fchmodatTrap uintptr = syscall.SYS_FCHMODAT
|
|
fchownatTrap uintptr = syscall.SYS_FCHOWNAT
|
|
renameatTrap uintptr = syscall.SYS_RENAMEAT
|
|
linkatTrap uintptr = syscall.SYS_LINKAT
|
|
|
|
AT_EACCESS = 0x4
|
|
AT_FDCWD = 0xfffafdcd
|
|
AT_REMOVEDIR = 0x2
|
|
AT_SYMLINK_NOFOLLOW = 0x1
|
|
|
|
UTIME_OMIT = -0x2
|
|
)
|