c/syscall/unix
This commit is contained in:
10
c/syscall/unix/at_sysnum_darwin.go
Normal file
10
c/syscall/unix/at_sysnum_darwin.go
Normal file
@@ -0,0 +1,10 @@
|
||||
// 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
|
||||
|
||||
const AT_REMOVEDIR = 0x80
|
||||
const AT_SYMLINK_NOFOLLOW = 0x0020
|
||||
|
||||
const UTIME_OMIT = -0x2
|
||||
16
c/syscall/unix/at_sysnum_dragonfly.go
Normal file
16
c/syscall/unix/at_sysnum_dragonfly.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// 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
|
||||
const openatTrap uintptr = syscall.SYS_OPENAT
|
||||
const fstatatTrap uintptr = syscall.SYS_FSTATAT
|
||||
|
||||
const AT_REMOVEDIR = 0x2
|
||||
const AT_SYMLINK_NOFOLLOW = 0x1
|
||||
|
||||
const UTIME_OMIT = -0x1
|
||||
18
c/syscall/unix/at_sysnum_freebsd.go
Normal file
18
c/syscall/unix/at_sysnum_freebsd.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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 (
|
||||
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
|
||||
)
|
||||
11
c/syscall/unix/at_sysnum_fstatat64_linux.go
Normal file
11
c/syscall/unix/at_sysnum_fstatat64_linux.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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
|
||||
11
c/syscall/unix/at_sysnum_fstatat_linux.go
Normal file
11
c/syscall/unix/at_sysnum_fstatat_linux.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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
|
||||
19
c/syscall/unix/at_sysnum_linux.go
Normal file
19
c/syscall/unix/at_sysnum_linux.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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
|
||||
const openatTrap uintptr = syscall.SYS_OPENAT
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x200
|
||||
AT_FDCWD = -0x64
|
||||
AT_REMOVEDIR = 0x200
|
||||
AT_SYMLINK_NOFOLLOW = 0x100
|
||||
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
)
|
||||
16
c/syscall/unix/at_sysnum_netbsd.go
Normal file
16
c/syscall/unix/at_sysnum_netbsd.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// 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
|
||||
const openatTrap uintptr = syscall.SYS_OPENAT
|
||||
const fstatatTrap uintptr = syscall.SYS_FSTATAT
|
||||
|
||||
const AT_REMOVEDIR = 0x800
|
||||
const AT_SYMLINK_NOFOLLOW = 0x200
|
||||
|
||||
const UTIME_OMIT = (1 << 30) - 2
|
||||
11
c/syscall/unix/at_sysnum_newfstatat_linux.go
Normal file
11
c/syscall/unix/at_sysnum_newfstatat_linux.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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
|
||||
16
c/syscall/unix/at_sysnum_openbsd.go
Normal file
16
c/syscall/unix/at_sysnum_openbsd.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// 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
|
||||
const openatTrap uintptr = syscall.SYS_OPENAT
|
||||
const fstatatTrap uintptr = syscall.SYS_FSTATAT
|
||||
|
||||
const AT_REMOVEDIR = 0x08
|
||||
const AT_SYMLINK_NOFOLLOW = 0x02
|
||||
|
||||
const UTIME_OMIT = -0x1
|
||||
Reference in New Issue
Block a user