c/syscall/unix: remove deps of syscall
This commit is contained in:
@@ -4,12 +4,6 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
const unlinkatTrap uintptr = syscall.SYS_UNLINKAT
|
||||
const openatTrap uintptr = syscall.SYS_OPENAT
|
||||
const fstatatTrap uintptr = syscall.SYS_FSTATAT
|
||||
|
||||
const AT_REMOVEDIR = 0x2
|
||||
const AT_SYMLINK_NOFOLLOW = 0x1
|
||||
|
||||
|
||||
@@ -4,15 +4,9 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AT_REMOVEDIR = 0x800
|
||||
AT_SYMLINK_NOFOLLOW = 0x200
|
||||
|
||||
UTIME_OMIT = -0x2
|
||||
|
||||
unlinkatTrap uintptr = syscall.SYS_UNLINKAT
|
||||
openatTrap uintptr = syscall.SYS_OPENAT
|
||||
posixFallocateTrap uintptr = syscall.SYS_POSIX_FALLOCATE
|
||||
)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
// 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.
|
||||
|
||||
//go:build arm || mips || mipsle || 386
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
const fstatatTrap uintptr = syscall.SYS_FSTATAT64
|
||||
@@ -1,11 +0,0 @@
|
||||
// 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.
|
||||
|
||||
//go:build arm64 || riscv64
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
const fstatatTrap uintptr = syscall.SYS_FSTATAT
|
||||
@@ -4,11 +4,6 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
const unlinkatTrap uintptr = syscall.SYS_UNLINKAT
|
||||
const openatTrap uintptr = syscall.SYS_OPENAT
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x200
|
||||
AT_FDCWD = -0x64
|
||||
|
||||
@@ -4,12 +4,6 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
const unlinkatTrap uintptr = syscall.SYS_UNLINKAT
|
||||
const openatTrap uintptr = syscall.SYS_OPENAT
|
||||
const fstatatTrap uintptr = syscall.SYS_FSTATAT
|
||||
|
||||
const AT_REMOVEDIR = 0x800
|
||||
const AT_SYMLINK_NOFOLLOW = 0x200
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
// 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.
|
||||
|
||||
//go:build amd64 || mips64 || mips64le || ppc64 || ppc64le || s390x
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
const fstatatTrap uintptr = syscall.SYS_NEWFSTATAT
|
||||
@@ -4,12 +4,6 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
const unlinkatTrap uintptr = syscall.SYS_UNLINKAT
|
||||
const openatTrap uintptr = syscall.SYS_OPENAT
|
||||
const fstatatTrap uintptr = syscall.SYS_FSTATAT
|
||||
|
||||
const AT_REMOVEDIR = 0x08
|
||||
const AT_SYMLINK_NOFOLLOW = 0x02
|
||||
|
||||
|
||||
Reference in New Issue
Block a user