aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/unix/fcntl_darwin.go
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-01-02 18:56:31 +0100
committerLibravatar Rutger Broekhoff2024-01-02 18:56:31 +0100
commit8db41da676ac8368ef7c2549d56239a5ff5eedde (patch)
tree09c427fd66de2ec1ebffc8342f5fdbb84b0701b5 /vendor/golang.org/x/sys/unix/fcntl_darwin.go
parentd4f75fb6db22e57577867445a022227e70958931 (diff)
downloadgitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.tar.gz
gitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.zip
Delete vendor directory
Diffstat (limited to 'vendor/golang.org/x/sys/unix/fcntl_darwin.go')
-rw-r--r--vendor/golang.org/x/sys/unix/fcntl_darwin.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/vendor/golang.org/x/sys/unix/fcntl_darwin.go b/vendor/golang.org/x/sys/unix/fcntl_darwin.go
deleted file mode 100644
index a9911c7..0000000
--- a/vendor/golang.org/x/sys/unix/fcntl_darwin.go
+++ /dev/null
@@ -1,24 +0,0 @@
1// Copyright 2019 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
5package unix
6
7import "unsafe"
8
9// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
10func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
11 return fcntl(int(fd), cmd, arg)
12}
13
14// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
15func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
16 _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk))))
17 return err
18}
19
20// FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command.
21func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error {
22 _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore))))
23 return err
24}