| 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 |
// Implemented as sysvicall6 in runtime/syscall_solaris.go. |
| 10 |
func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) |
| 11 |
|
| 12 |
// Implemented as rawsysvicall6 in runtime/syscall_solaris.go. |
| 13 |
func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) |
| 14 |
|
| 15 |
//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" |
| 16 |
//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" |
| 17 |
//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" |
| 18 |
//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" |
| 19 |
//go:cgo_import_dynamic libc_linkat linkat "libc.so" |
| 20 |
//go:cgo_import_dynamic libc_openat openat "libc.so" |
| 21 |
//go:cgo_import_dynamic libc_renameat renameat "libc.so" |
| 22 |
//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" |
| 23 |
//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" |
| 24 |
//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" |
| 25 |
//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" |
| 26 |
//go:cgo_import_dynamic libc_uname uname "libc.so" |
| 27 |
|
| 28 |
const ( |
| 29 |
AT_EACCESS = 0x4 |
| 30 |
AT_FDCWD = 0xffd19553 |
| 31 |
AT_REMOVEDIR = 0x1 |
| 32 |
AT_SYMLINK_NOFOLLOW = 0x1000 |
| 33 |
|
| 34 |
UTIME_OMIT = -0x2 |
| 35 |
) |