| 1 |
// Copyright 2018 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 |
package unix |
| 6 |
|
| 7 |
import "syscall" |
| 8 |
|
| 9 |
const ( |
| 10 |
unlinkatTrap uintptr = syscall.SYS_UNLINKAT |
| 11 |
openatTrap uintptr = syscall.SYS_OPENAT |
| 12 |
readlinkatTrap uintptr = syscall.SYS_READLINKAT |
| 13 |
mkdiratTrap uintptr = syscall.SYS_MKDIRAT |
| 14 |
fchownatTrap uintptr = syscall.SYS_FCHOWNAT |
| 15 |
linkatTrap uintptr = syscall.SYS_LINKAT |
| 16 |
symlinkatTrap uintptr = syscall.SYS_SYMLINKAT |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
AT_EACCESS = 0x200 |
| 21 |
AT_FDCWD = -0x64 |
| 22 |
AT_REMOVEDIR = 0x200 |
| 23 |
AT_SYMLINK_NOFOLLOW = 0x100 |
| 24 |
|
| 25 |
UTIME_OMIT = 0x3ffffffe |
| 26 |
|
| 27 |
O_PATH = 0x200000 |
| 28 |
) |